Harden l2flood, document field test findings, add hcitool fallback#1
Open
suteny0r wants to merge 5 commits into
Open
Harden l2flood, document field test findings, add hcitool fallback#1suteny0r wants to merge 5 commits into
suteny0r wants to merge 5 commits into
Conversation
- Replace getopt with manual arg parsing to avoid GNU getopt permutation issues - Add BD_ADDR format validation (rejects malformed addresses instead of segfaulting) - Add bounds checking on all numeric options (-s, -t, -d, -n) - Detect and report extra positional arguments with hint to use -i - Add complete usage text with option descriptions and examples - Add -h flag for help - Rename stat() to sigint_handler() to avoid POSIX name collision - Build with -no-pie to work around i686 PIE stack corruption bug in glibc Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tested l2flood against K07 Bluetooth speaker. Key finding: the actual disruption mechanism is ACL link preemption, not CPU overload as the upstream README claims. l2flood blocks reconnection but cannot break existing connections. EMP mode (-R) causes persistent state corruption requiring a full power cycle to recover from. Also documents the i686 PIE stack corruption bug and its fix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Most consumer Bluetooth devices are discoverable. A standard inquiry scan (bluetoothctl/hcitool) returns the full BD_ADDR directly, making UAP brute-forcing unnecessary. Added a section to the README explaining this and when BBF + Ubertooth is actually needed. Also added hcitool scan fallback in cli.py so bbf no longer hard-exits when ubertooth-rx is missing -- it offers to scan for discoverable devices instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EMP mode previously spun silently when connect() failed (e.g., target already connected to another device). Now prints the error on first failure and on every new error type, throttled to every 50th attempt for repeated errors. Reports attempt count on successful reconnect. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Phone reconnected to K07 after stopping l2flood -R without resetting either device. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
Thanks for all the work on this! The improvements look solid . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
Generated with Claude Code