CedArctic / DigiSpark-Scripts

USB Rubber Ducky type scripts written for the DigiSpark.
MIT License
1.9k stars 604 forks source link

feature request: Os detection #64

Open Supermagnum opened 2 years ago

Supermagnum commented 2 years ago

Theoretically it is possible to detect which OS the USB stick is running on. While the OS itself never identifies any Information about the OS or host hardware, it does use a handshake to authenticate with the USB device.

The sequence of this handshake is slightly different in every OS and has got some unique properties. The only thing we would need to autodetect the OS is to code the ducky to save the handshake. Reference: https://youtu.be/nuruzFqMgIw