get started
查看嵌入文件信息
steghide info test.jpg
提取嵌入文件
steghide extract -sf test.jpg
steghide extract -sf test.jpg -p 123456
嵌入文件
steghide embed -cf test.jpg -ef secret.txt -p 123456
爆破密码脚本
#!/usr/bin/python
# -*- coding:utf8 -
from subprocess import *
def foo():
stegoFile='C:\Users\ppp\Desktop\rose.jpg'
extractFile='C:\Users\ppp\Desktop\hide.txt'
passFile='C:\Users\ppp\Desktop\linshi.txt'
errors = ['could not extract', 'steghide --help', 'Syntax error']
cmdFormat = "D:\CTF\CTF工具合集\隐写\图像隐写\steghide>steghide.exe 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 = unicode(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