A sleek, Linux-only USB file recovery and forensic analysis tool using PYTHON. This tool performs deep scans on USB devices to recover lost or deleted files using file carving techniques based on file signatures.
Designed for ethical forensic recovery of formatted USB drives.
- 🔍 Deep file carving scan (even from formatted USBs)
- 🧠 Detects known file types by magic headers/footers
- ✅ Selective recovery with checkboxes
- 🖥️ Modern PyQt5 GUI with dark mode
- 📦 Export recovered files to a selected directory
- 💾 Automatic hash for duplicate tracking
Tested on Ubuntu. Requires
python3andpip.
- Python 3.6+
- Linux (Ubuntu, Debian, Fedora, etc.)
sudoaccess (to read raw devices)- Git
git clone https://github.com/thoufeelx/USB-forensic_Recovery.git
python3 -m venv myenv source myenv/bin/activate
pip install PyQt5 pyudev
or
pip install -r requirements.txt
sudo python usb_forensic_tool.py
-
Scans the raw USB device (block-by-block)
-
Detects and extracts files using known signatures:
-
JPG, PNG, PDF, MP3, MP4, ZIP, DOCX, etc.
-
Shows:
-
File name
-
Size
-
Offset
-
Type
-
Hash (MD5 short)
-
Allows selective recovery to a folder of your choice
By default, recovered files go to:
~/RecoveredFiles/
You can change the location via "Set Output Directory" in the GUI.
📜 License License — free to use, modify, and distribute.
R Muhammed Thoufeel




