Modified from https://github.com/samyk/usbdriveby
Hardware: Teensy 2.0 (likely works on the ++ and 3.0 versions as well)
Acts as a pseudo-keyboard and inserts a reverse shell into the crontab.
For research & learning purposes only.
- Removes DNS spoofing
- Removes Little Snitch workaround
- Changes timing
- Uses bash instead of perl
- Setup your Arduino IDE to use Teensy (see teensy site).
- Under Tools > USB Type : choose Serial, Keyboard, Mouse, Joystick
- Update the sketch to point to your listening server
- Burn sketch to device
- Plug into Mac OSX Machine when unlocked. Device will blink when finished.
- On your machine run netcat in listening mode on whatever port you defined in your sketch. ..* If using OSX for this machine, you may need to run as 'nc -l -p ', depends on if you installed via brew or ports.