Skip to content

Instantly share code, notes, and snippets.

@lfyzjck
lfyzjck / sample.py
Last active January 25, 2016 14:44
simple script to generate random matrix and export to csv
import random
import csv
def export_matrix(box, output_file='matrix.csv'):
with open(output_file, 'w') as f:
writer = csv.writer(f, delimiter=',')
for line in box:
writer.writerow(line)
@lfyzjck
lfyzjck / crack.py
Created August 8, 2015 10:53
Simple password crack with captcha ( using tesseract )
#!/usr/bin/python
# encoding=utf-8
import gevent
import gevent.monkey
gevent.monkey.patch_all()
import re
import functools
from cStringIO import StringIO
from itertools import permutations
from Queue import Queue