forked from antojoseph/droid-ff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
droid-ff.py
executable file
·52 lines (40 loc) · 1.3 KB
/
droid-ff.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
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
import os
import banner
import gen_data
import run_campaign
import collect_crashes
import parse_tombstone
import triage
import start_gdb
def welcome_banner():
banner.horizontal("DroiD-FF")
def error():
os.system('clear')
print "Invalid Data , Try Again !"
show_options()
def show_options():
options = ['(0) Generate Files', '(1) Start running fuzzer', '(2) View Crashes', '(3) Triage Crashes','(4) View Source of Crashes','(5) Exploitability Test']
for x in range(len(options)):
print " " + options[x]
try:
user_selection = raw_input("Please enter your selection : ")
if (int(user_selection) >= len(options)):
error()
else:
print "Your Option is : " + options[int(user_selection)]
if int(user_selection) == 0:
gen_data.fuzzer_options()
elif int(user_selection) ==1 :
run_campaign.start()
elif int(user_selection) ==2 :
collect_crashes.start()
elif int(user_selection) ==3 :
triage.start()
elif int(user_selection) ==4 :
parse_tombstone.start()
elif int(user_selection)== 5 :
start_gdb.start()
except ValueError:
error()
welcome_banner()
show_options()