Skip to content

Conversation

Akil-x
Copy link

@Akil-x Akil-x commented Sep 20, 2025

Summary

This PR adds compatibility for both legacy (hciconfig) and modern (btmgmt) Bluetooth management tools, ensuring BlueDucky works across different Linux distributions and BlueZ versions. Additionally, it includes significant improvements to connection stability and error handling.

Key Changes

Auto-detection: Works with both legacy (hciconfig) and modern (btmgmt) tools
D-Bus integration: Handles adapter properties via D-Bus for btmgmt
Connection stability: Graceful handling of connection resets (errno 104)
Retry logic: Limited reconnection attempts with progressive delays

Files Changed

  • utils/bluetooth_tools.py (new) - Bluetooth management utility
  • BlueDucky.py - Updated Adapter class and error handling
  • README.md - Added compatibility documentation

Benefits

  • Works on more Linux distributions
  • Handles connection resets gracefully
  • No breaking changes
  • Better user feedback

Testing

Tested on systems with btmgmt, verified tool detection, adapter settings, and payload execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant