Skip to content

Instantly share code, notes, and snippets.

@nomuken
Created December 6, 2015 12:51
Show Gist options
  • Save nomuken/3bd194cf7caa26bcee68 to your computer and use it in GitHub Desktop.
Save nomuken/3bd194cf7caa26bcee68 to your computer and use it in GitHub Desktop.
seccon2015のやつを半ば自動化するスクリプト
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