pentestfunctions / BlueDucky

🚨 CVE-2023-45866 - BlueDucky Implementation (Using DuckyScript) 🔓 Unauthenticated Peering Leading to Code Execution (Using HID Keyboard)
953 stars 162 forks source link

Failed to execute command: sudo hciconfig hci0 name Robot POC. #31

Open omgaikwad3001 opened 2 months ago

omgaikwad3001 commented 2 months ago

Traceback (most recent call last): File "/home/kali/BlueDucky/BlueDucky.py", line 697, in main() File "/home/kali/BlueDucky/BlueDucky.py", line 670, in main adapter = setup_bluetooth(target_address, adapter_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/BlueDucky/BlueDucky.py", line 604, in setup_bluetooth adapter.set_property("name", "Robot POC") File "/home/kali/BlueDucky/BlueDucky.py", line 88, in set_property self._run_command(command) File "/home/kali/BlueDucky/BlueDucky.py", line 82, in _run_command raise ConnectionFailureException(f"Failed to execute command: {' '.join(command)}. Error: {result.stderr}") ConnectionFailureException: Failed to execute command: sudo hciconfig hci0 name Robot POC. Error: Can't change local name on hci0: Network is down (100)

daframe2r commented 2 months ago

You need to had sleep time because the bluetooth is probably not restarted yet. https://github.com/pentestfunctions/BlueDucky/issues/25#issuecomment-2041835416