Skip to content

Instantly share code, notes, and snippets.

@H4niz
Created February 8, 2018 15:44
Show Gist options
  • Save H4niz/2cd84e1ec0d30543671893bdc4269419 to your computer and use it in GitHub Desktop.
Save H4niz/2cd84e1ec0d30543671893bdc4269419 to your computer and use it in GitHub Desktop.
push offset aGiveMyYourShel ; "Give my your shellcode:"
call _printf
add esp, 10h
sub esp, 4
push 0C8h
push offset shellcode
push 0
call _read
add esp, 10h
mov eax, offset shellcode
call eax ; shellcode
mov eax, 0
mov ecx, [ebp+var_4]
leave
lea esp, [ecx-4]
retn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment