forked from googleprojectzero/functionsimsearch
-
Notifications
You must be signed in to change notification settings - Fork 3
/
entrypoint.sh
executable file
·56 lines (54 loc) · 1.49 KB
/
entrypoint.sh
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
case "$1" in
addfunctionstoindex)
/code/functionsimsearch/bin/addfunctionstoindex "${@:2}";
;;
addsinglefunctiontoindex)
/code/functionsimsearch/bin/addsinglefunctiontoindex "${@:2}";
;;
createfunctionindex)
/code/functionsimsearch/bin/createfunctionindex "${@:2}";
;;
disassemble)
/code/functionsimsearch/bin/disassemble "${@:2}";
;;
dotgraphs)
/code/functionsimsearch/bin/dotgraphs "${@:2}";
;;
dumpfunctionindex)
/code/functionsimsearch/bin/dumpfunctionindex "${@:2}";
;;
dumpfunctionindexinfo)
/code/functionsimsearch/bin/dumpfunctionindexinfo "${@:2}";
;;
dumpsinglefunctionfeatures)
/code/functionsimsearch/bin/dumpsinglefunctionfeatures "${@:2}";
;;
evalsimhashweights)
/code/functionsimsearch/bin/evalsimhashweights "${@:2}";
;;
functionfingerprints)
/code/functionsimsearch/bin/functionfingerprints "${@:2}";
;;
graphhashes)
/code/functionsimsearch/bin/graphhashes "${@:2}";
;;
growfunctionindex)
/code/functionsimsearch/bin/growfunctionindex "${@:2}";
;;
matchfunctionsfromindex)
/code/functionsimsearch/bin/matchfunctionsfromindex "${@:2}";
;;
queryindexforhash)
/code/functionsimsearch/bin/queryindexforhash "${@:2}";
;;
trainsimhashweights)
/code/functionsimsearch/bin/trainsimhashweights "${@:2}";
;;
visualizeflowgraphs)
/code/functionsimsearch/bin/visualizeflowgraphs "${@:2}";
;;
*)
echo "Unsupported command: $1";
;;
esac