Advertisement
Guest User

Untitled

a guest
Oct 19th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # pip install robobrowser
  3. # just prints the html response of a successful login. for use with thebrute.py
  4.  
  5. from robobrowser import RoboBrowser
  6.  
  7. form_url = raw_input("[Form URL] --->")
  8. username = raw_input("[Valid username] ---> ")
  9. password = raw_input("[Valid password] ---> ")
  10.  
  11. browser = RoboBrowser(history=False, user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36')
  12. browser.open(str(form_url))
  13. form = browser.get_form()
  14.  
  15. # change 'username' and 'password' values to the input names on the form
  16. form['username'].value = username
  17. form['password'].value = password
  18. browser.submit_form(form)
  19.  
  20. # find a string in the successful login reponse to use in the bruteforce tool.
  21. print browser.parsed()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement