-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtester.py
25 lines (20 loc) · 885 Bytes
/
tester.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python3
import subprocess
import os
from pprint import pprint
for file in ['buenosaires']:
for enc in ['aes128', 'aes192', 'aes256']:
for steg in ['LSB4', 'LSB1', 'LSBE']:
for mode in ['ecb', 'cfb', 'ofb', 'cbc']:
print("Testing: file: %s enc:%s steg:%s mode:%s" % (file, enc, steg, mode))
out_file = "enc%s-steg%s-mode%s" % (enc, steg, mode)
cmd = ["./cmake-build-debug/stegobmp", '-extract',
'-p', "sample/%s.bmp" % file,
'-out', "sample/budapest." + out_file,
"-steg", steg,
"-a", enc,
"-m", mode,
"-pass", "wanted"]
a = subprocess.run(cmd, cwd=os.path.dirname(os.path.realpath(__file__)))
#
# pprint(a)