Friday, 23 September 2011

simple-shellcode-generator.py By Didier Stevens

To generate this shellcode with simple-shellcode-generator.py, create a text file (call it createfile.def) with these 2 lines:
 kernel32.dll CreateFileA str 0x0 0x0 0x0 0x2 0x80 0x0
kernel32.dll CloseHandle eax

Each line in this definition file instructs the generator to generate assembler code to lookup the address of the WIN32 API function, and to call it with the arguments you provide.

No comments:

Post a Comment