blob: 51c23e98c9606a5125b259f7230c6a8fdcd57024 (
plain)
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
56
57
|
#!/usr/bin/sh
readonly VERSION="v2.6.3"
readonly NAME=`basename $0`
usage() {
echo "${NAME} :
encode -i <file> [-o <file>] [-l <keyboardlayout>] : More info with '${NAME} encode -h'
decode -f <file> [-l <keyboardlayout>] : More info with '${NAME} decode -h'
flash <file> : Flash your ducky with hexadecimal object file
ducky-flasher : Easily flash your USB Rubber ducky from Hak5
dump <file> : Dump your ducky into hexadecimal object file
-h,--help : Print this message
-v,--version : Print the program's version
Hexadecimal files: /opt/USB-Rubber-Ducky/Firmware"
}
version() {
echo $VERSION
}
case "$1" in
decode)
shift
/opt/USB-Rubber-Ducky/Decode/ducky-decode.pl $*
;;
encode)
shift
java -jar /opt/USB-Rubber-Ducky/Encoder/encoder.jar $*
;;
flash)
shift
sh /opt/USB-Rubber-Ducky/Flash/flash.sh $*
;;
ducky-flasher)
python2 /opt/USB-Rubber-Ducky/ducky-flasher/ducky-flasher
;;
dump)
shift
sh /opt/USB-Rubber-Ducky/Flash/dump.sh $*
;;
-h | --help | "")
usage
exit 0
;;
-v | --version)
version
exit 0
;;
*)
echo "Wrong argument !"
usage
exit 1
;;
esac
|