BMZCTF:hide
  TEZNKK3IfmPf 29天前 23 0

 

http:///challenges#hide

BMZCTF:hide

hide.jpg

BMZCTF:hide

 

题目提示是hide,尝试steghide,试了几个弱密码没出,尝试用脚本爆破密码

#python3运行
from subprocess import *

def foo():
    stegoFile='hide.jpg'#source pic path
    extractFile='flag.txt'#steghide extract result
    passFile='english.dic'#dist path

    errors=['could not extract','steghide --help','Syntax error']
    cmdFormat='steghide extract -sf "%s" -xf "%s" -p "%s"'
    f=open(passFile,'r')

    for line in f.readlines():
        cmd=cmdFormat %(stegoFile,extractFile,line.strip())
        p=Popen(cmd,shell=True,stdout=PIPE,stderr=STDOUT)
        content=str(p.stdout.read(),'gbk')
        for err in errors:
            if err in content:
                break
        else:
            print (content),
            print ('the passphrase is %s' %(line.strip()))
            f.close()
            return

if __name__ == '__main__':
    foo()
    print ('ok')
    pass

直接就出了

BMZCTF:hide

flag{St3gh1d3_1s_N1u_B1}
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 29天前 0

暂无评论

推荐阅读
  TEZNKK3IfmPf   29天前   17   0   0 python
  TEZNKK3IfmPf   18小时前   5   0   0 关键字python
TEZNKK3IfmPf