diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c775494 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Project environment files. +.DS_Store +.env +.idea +.vscode + +# Python virtual environment. +.venv +venv + +# Compilation folder. +__pycache__ diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..d70c8f8 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.6 diff --git a/l2cap_fuzzer.py b/l2cap_fuzzer.py index 6539a1c..fa92272 100644 --- a/l2cap_fuzzer.py +++ b/l2cap_fuzzer.py @@ -835,7 +835,3 @@ def l2cap_fuzzing(bt_addr, profile, port, test_info): logger["end_time"] = str(datetime.now()) logger["count"] = {"all" : pkt_cnt, "crash" : crash_cnt, "passed" : pkt_cnt-crash_cnt} json.dump(logger, f, indent="\t") - - - - diff --git a/l2fuzz.py b/l2fuzz.py index b6a33b4..6f2578a 100644 --- a/l2fuzz.py +++ b/l2fuzz.py @@ -229,7 +229,7 @@ def bluetooth_classic_scan(): while(True): user_input = int(input("\nChoose Device : ")) - if user_input < len(nearby_devices) or user_input > -1: + if user_input < len(nearby_devices) and user_input > -1: idx = user_input break else: @@ -306,7 +306,4 @@ def bluetooth_services_and_protocols_search(bt_addr): print("Not Supported") - - - - + \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..03931aa --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +ouilookup==0.2.4 +PyBluez==0.23 +python-statemachine==1.0.3 +scapy==2.4.4