This file contains 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
import base64 | |
import struct | |
from Crypto.Cipher import AES | |
# reduce 2^48 to 2^27-ish using time-memory tradeoff | |
def crack(plaintext1, ciphertext1, plaintext2, ciphertext2): | |
print "Cracking plaintext '%s'" % plaintext1 | |
zeroes = "\x00"*29 | |
for table in range(0,7): |
This file contains 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
import sys | |
lines = open(sys.argv[1]).readlines() | |
double_if=False | |
print "#include <avr/io.h>" | |
print ".global encrypt" | |
print ".global decrypt" | |
for line in lines: | |
if '.endmacro' in line: | |
line = line.replace("endmacro", "endm") | |
if '.db' in line: |
This file contains 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
# - requires git, svn, hg installed | |
# - will just build the bleeding edge of everything | |
export PREFIX=`pwd` | |
export PATH=$PATH:$PREFIX/bin/ | |
export SRCDIR=$PREFIX/src/ | |
# todo test if SRCDIR exists, then get the source | |
mkdir -p $SRCDIR | |
# get binutils/gdb, gmp, mpfr, mpc |
OlderNewer