This script is designed to spoof the storage capacity of a USB flash drive, mimicking the behavior of scammers who sell spoofed flash drives on platforms like Amazon, Aliexpress, even local marketplaces. It allows users to select a connected drive and create a fake storage space on it (1 Terabyte), making it appear larger than its actual capacity. This script also changes the device label to 1TB_DRIVE, readable on the connected device.
I got the idea for this script after watching a video on YouTube about the scam of spoofed flash drives on Amazon. I wanted to emulate how those scammers perform this scam in order to raise awareness about it.
Please use this script only for educational purposes.
bash
: The script is written in Bash and requires a Bash-compatible shell to run.mkdosfs
: Used to create the temporary file system on the drive.blockdev
: Used to get information about block devices, such as drive size.mlabel
: Used to set the label for the drive.lsblk
: Used to list block devices and their properties.
-
Clone the repository:
git clone https://github.com/e1digitalpf/spoof-my-drive.git
-
Navigate to the directory:
cd spoof-my-drive
-
Make the script executable:
chmod +x main.sh
-
Connect the USB flash drive to your computer.
-
Run the script:
sudo ./main.sh
-
Follow the on-screen instructions to select the drive and complete the spoofing process.