steghide字典爆破密码

作者: Du1in9 | 来源:发表于2020-04-30 14:09 被阅读0次

    爆破脚本

    #python3运行
    from subprocess import *
    
    def foo():
        stegoFile='1.jpg'#隐写的图片
        extractFile='passwd.txt'#爆破的密码
        passFile='dic.txt'#字典
    
        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
    

    我用的字典

    链接:https://pan.baidu.com/s/1MWd4-Ct8rsyuz3614UyFtQ
    提取码:r22x

    试用一下

    图片.png

    相关文章

      网友评论

        本文标题:steghide字典爆破密码

        本文链接:https://www.haomeiwen.com/subject/sruzwhtx.html