Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Project environment files.
.DS_Store
.env
.idea
.vscode

# Python virtual environment.
.venv
venv

# Compilation folder.
__pycache__
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.6
4 changes: 0 additions & 4 deletions l2cap_fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")




7 changes: 2 additions & 5 deletions l2fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -306,7 +306,4 @@ def bluetooth_services_and_protocols_search(bt_addr):
print("Not Supported")







4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ouilookup==0.2.4
PyBluez==0.23
python-statemachine==1.0.3
scapy==2.4.4