Temporary Advertisements:
Ad
Ad
Ad
HTB Lovely Malware - Sherlock
by trevor69000 - Thursday January 2, 2025 at 06:25 AM
#1
Hidden Content
You must register or login to view this content.
Reply
#2
can u unlock it
Reply
#3
how did you decrypt for last q? Found key in pcap but cant seem to decrypt
Reply
#4
(Jan 03, 2025, 06:07 PM)xsi5kqdb Wrote: how did you decrypt for last q? Found key in pcap but cant seem to decrypt

Pcap key is not a valid one. I found the iv. But didnt get how key is generated
Reply
#5
i dont have enough credits for this Undecided
Reply
#6
stuck on the last question o.O
Reply
#7
the key in pcap is not valid. The following is obfuscation part inside it.
```cpp
__int64 convert_aeskey_tobase64()
{
  unsigned int i; // [rsp+34h] [rbp-24h]
  unsigned int v2; // [rsp+38h] [rbp-20h] BYREF
  __int64 mem; // [rsp+40h] [rbp-18h]

  if ( !qword_7FF77F68F388 )
    get_crypt32_baseaddr();
  v2 = 0;
  for ( i = 0; i < 0x20; ++i )
    *(_BYTE *)(random_aes_key + i) ^= 0xBBu;
  if ( !(unsigned __int8)CryptBinaryToString(random_aes_key, 0x20u, 0x40000001u, 0i64, (__int64)&v2) )
    return 0i64;
  mem = allocate_mem(v2);
  if ( (unsigned __int8)CryptBinaryToString(random_aes_key, 0x20u, 0x40000001u, mem, (__int64)&v2) )
    return mem;
  else
    return 0i64;
}
```
Hope this help someone
Reply
#8
each execution the key is unique and will be sent to the c2. but is the key the plaintext key? (BB)
Reply
#9
(Feb 18, 2025, 04:57 PM)noter Wrote: each execution the key is unique and will be sent to the c2. but is the key the plaintext key? (BB)
use get the key from pcap, as I remember, it's base64 format. decode it then xor with 0xBB
Reply
#10
i dont have enough credits for this Sad
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 84 11,171 9 hours ago
Last Post: groningen1981
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 165 34,671 9 hours ago
Last Post: groningen1981
  Finding solutions/flags/writeups for challenges meomeothantai 0 136 Today, 04:13 AM
Last Post: meomeothantai
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 625 115,343 Today, 03:26 AM
Last Post: kevin25hxl
  [FREE] CPTS 12 FLAGS pulsebreaker 168 19,546 Today, 12:57 AM
Last Post: blooper1337

Forum Jump:


 Users browsing this forum: