Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # pip install robobrowser
- # just prints the html response of a successful login. for use with thebrute.py
- from robobrowser import RoboBrowser
- form_url = raw_input("[Form URL] --->")
- username = raw_input("[Valid username] ---> ")
- password = raw_input("[Valid password] ---> ")
- 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')
- browser.open(str(form_url))
- form = browser.get_form()
- # change 'username' and 'password' values to the input names on the form
- form['username'].value = username
- form['password'].value = password
- browser.submit_form(form)
- # find a string in the successful login reponse to use in the bruteforce tool.
- print browser.parsed()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement