Flipper Bad usb

Author:

About every other month I pull anything important off of my laptop and reinstall Ubuntu. The hard drive Is very small and very quickly gets filled up with software I’ve been testing and new configurations.

It’s much faster than installing Windows and only takes about 30-ish minutes. most of my time is wasted when I have to reinstall my terminal customizations and locating/remembering the package name. I’ve had this plan for a while right some sort of script to simulate the keystrokes of installing my terminal theme and all my software.

So I started looking into whether ducky script could do this and the answer was obviously yes. It’s what ducky does best keystroke injection.

I got the idea from either a YouTube video or podcast can’t remember which. The basic idea is that when some IT guy had to work on a fresh laptop or had to travel somewhere where they didn’t have his software configured, they could download the script from Github That would download and configure the software and have themselves up and running within 15 minutes.

It’s still in the testing phase but the basic idea is I run one command just so the script has my sudo password, plug the USB in it types a string of commands were any software downloaded with apt opens another terminal, installs anything with snap etc. There is one piece of software that I thought I was going to have to use curl and I was running into issues trying to get it downloaded but then I found out I could just build it from source.

You’re able to write ducky script in Notepad or VS code but there’s no way to test it as far as I know, without a rubber ducky or similar device with a spare computer(This last one is not always necessary). you have to constantly reboot the QFlipper software and swap the different versions of the script you are testing. Also there’s a lot of testing I need to do with how long the delays need to be based on the computer speed and Internet download speed.