forked from b3dk7/StegExpose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstegexpose.sh
More file actions
executable file
·55 lines (47 loc) · 1.08 KB
/
stegexpose.sh
File metadata and controls
executable file
·55 lines (47 loc) · 1.08 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
usage="$(basename "$0") [-h] [-f filename ] -- Analyze image for Stenographic encryption
where:
-h show this help text
-f filename (required)
-o output file, (optional)
"
filename=""
speed="default"
threshold="default"
output=""
while getopts ':h:f:fo:' option; do
case "$option" in
h) echo "$usage" >&1
exit 0
;;
f) filename=$OPTARG
;;
s) speed="fast"
;;
t) threshold=$OPTARG
;;
o) output=$OPTARG
;;
\?) "Unknown option -$OPTARG" >&2;
echo "$usage" >&2
exit 1
;;
*) echo "Unimplemented option -$OPTARG" >&2;
echo "$usage" >&2
exit 1
;;
esac
done
shift $(($OPTIND - 1))
if [[ -z $filename ]] ; then
echo "Must specify a file to test." >&2;
echo "$usage" >&2
exit 1
fi
if [[ -z $output ]] ; then
java -jar StegExpose.jar $filename $speed $threshold >&1;
exit 0
else
java -jar StegExpose.jar $filename $speed $threshold >$output
exit 0
fi