
Proxy Socks4a che sfrutta PIC, Websockets e offuscamento statico a livello di assembly
Questo progetto implementa un proxy Socka4a basato su websockets.
Il componente client è implementato in C e viene compilato fino a ottenere codice completamente position independent (PIC).
Durante il processo di compilazione, l'offuscamento viene applicato a livello di assembly tramite un secondo strumento: SpiderPIC situato in LastenPIC/SpiderPIC
L'offuscamento include:
Questo serve a rompere le firme statiche, tuttavia bisogna tenere presente che gli hash delle API, le stringhe e altre costanti non vengono offuscati durante questo processo.
Il makefile produce sia il client SOCKS PIC sia un loader di esempio per lo shellcode. È possibile chiamare lo shellcode usando il seguente prototipo:
DWORD lastenzug(wchar_t* wServerName, PWSTR wPath, DWORD port, PWSTR proxy, PWSTR pUserName, PWSTR pPassword);
Il loader di esempio incorpora lo shellcode nel suo segmento .text e può essere chiamato come segue:
.\LastenLoader.exe --server [host] --path [path used by server] --port [port]
cd Server && go build -o LastenServer
./LastenServer server --addr ws://0.0.0.0:8080/lastenzug