Created
December 6, 2015 12:51
-
-
Save nomuken/3bd194cf7caa26bcee68 to your computer and use it in GitHub Desktop.
seccon2015のやつを半ば自動化するスクリプト
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 subprocess,time | |
from shlex import quote | |
key='waUqjjDGnYxVyvUOLN8HquEO0J5Dqkh/zr/3KXJCEnw=' | |
seeds='qazwsxedcrfvtgbyhnujmik,ol.p;/[\']`\\=-0987654321!QAZ@WSX#EDC$RFV%TGB^YHN&UJM*IK<(OL>)P:?_{"+}|~' | |
flag='SECCON{Cry_Pto_Oo_Oo1Oo_oo_Oo_' | |
skip=False | |
for a in list(seeds): | |
for b in list(seeds): | |
#if key.find(subprocess.getoutput("./cryptooo "+quote(flag+a))[:-1]) > -1: | |
print('\n\nEncrypted(99): '+key) | |
print(subprocess.getoutput("./cryptooo "+quote(flag+a+b))+"("+flag+a+b+")") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment