wp写的可以说是相当简单了
    题目给了个top10000 password,使用outguess爆破

    1. from os import system
    2. f = open("top1000_password.txt",'r').read().splitlines()
    3. i=0
    4. def getNextKey():
    5. global key
    6. global i
    7. key = f[i]
    8. i += 1
    9. return 1
    10. def main():
    11. while getNextKey():
    12. cmd = "outguess -k " + key + " -r out.jpg ./output/" + key +".txt"
    13. print(cmd)
    14. system(cmd)
    15. if __name__ == "__main__":
    16. main()

    outguess弄出来一堆文件后,再写个脚本查看哪个文件里有flag即可

    1. import os
    2. for dir,root,files in os.walk('./output'):
    3. for file in files:
    4. with open(os.path.join(dir,file),'r',encoding='utf-8') as f:
    5. try:
    6. text = f.read()
    7. if 'flag' in text:
    8. print(text)
    9. except:
    10. pass