SkillAgentSearch skills...

Btexec

Execute shellcode via Bluetooth device authentication

Install / Use

/learn @djackreuter/Btexec
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

btexec

Blog post

In offices and coffee shops, there are likely going to be many Bluetooth devices nearby like TVs, headphones, speakers, etc. Why not use them to execute shellcode? Btexec is a shellcode loader that triggers a nearby Bluetooth device to silently authenticate to the users machine, which will execute the shellcode.

How does it work?

  • The program first checks if Bluetooth is enabled on the victim machine. This is also good for anti-emulation because sandboxes and VMs may not have the hardware for Bluetooth, where as user laptops and workstations will.
  • It will then perform a search for nearby Bluetooth devices. Just something discoverable in the area. If no discoverable devices are found, it will exit. Again, good for anti-emulation.
  • It will register an authentication callback containing a function pointer to the shellcode to execute.
  • It triggers the discovered device to authenticate to the victim machine which will execute the callback and run the shellcode. No user interaction is required for the device authentication to occur, and no popups are displayed to the user.

Usage instructions

  1. XOR encrypt your shellcode and save in src/sc.bin.
  2. Update the XOR decryption key on line 12 with your key.
  3. Compile.
  4. ???
  5. Profit.

btexecdemo

Related Skills

View on GitHub
GitHub Stars40
CategoryDevelopment
Updated2d ago
Forks3

Languages

Rust

Security Score

75/100

Audited on Mar 31, 2026

No findings