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.
- 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.
- XOR encrypt your shellcode and save in
src/sc.bin. - Update the XOR decryption key on line 12 with your key.
- Compile.
- ???
- Profit.