This is a Windows port of the popular F3 (Fight Flash Fraud) tool, which helps detect counterfeit flash drives and memory cards.

Counterfeit flash drives are common in the market - these drives report a larger capacity than they actually have. F3 provides tools to test if your USB flash drive or memory card is genuine.
This Windows port includes three main tools:
- f3write: Writes test files to the flash drive
- f3read: Verifies test files written by f3write
- f3probe: Directly probes the device at a hardware level (requires admin privileges)
For convenience, you can download pre-compiled Windows binaries from the Releases section of this repository.
- MinGW-w64 (for Windows builds)
- GCC (for Linux/WSL builds)
- Make
-
Clone the repository:
git clone https://github.com/crack666/f3-windows-port.git cd f3-windows-port -
Run the build script:
chmod +x build-win.sh ./build-win.sh -
The Windows executables (*.exe) will be created in the current directory.
-
Install MinGW-w64:
-
Clone the repository or download the source files
-
Compile the source files:
gcc -std=c99 -Wall -o f3write.exe f3write-win.c gcc -std=c99 -Wall -o f3read.exe f3read-win.c gcc -std=c99 -Wall -o f3probe.exe f3probe-win.c
-
Write test files:
f3write.exe J:This will fill drive J: with test pattern files. You can also specify how many MB to write:
f3write.exe J: 1000 -
Verify test files:
f3read.exe J:This reads back the test files and checks if they're intact. If any corruption is detected, the drive may be counterfeit or damaged.
f3probe.exe J:
For more thorough testing (may overwrite data):
f3probe.exe --destructive J:
Note: f3probe requires administrator privileges and direct access to the drive. Some security software or write-protection mechanisms may interfere with its operation.
You can use the included batch files for easier testing:
f3-test.bat J- Runs f3write and f3read on drive J:f3probe-test.bat J- Runs f3probe on drive J:
To create a release with pre-compiled binaries:
-
Build the executables following the instructions above
-
Create a ZIP archive containing:
- f3write.exe
- f3read.exe
- f3probe.exe
- f3-test.bat
- f3probe-test.bat
- README.md
- README_WINDOWS.txt
-
Upload the ZIP file to the GitHub Releases section of this repository
This Windows port has some limitations compared to the Linux version:
- f3probe may have limited functionality on some systems due to Windows' restrictions on direct disk access
- f3fix and f3brew (Linux-only tools) are not available
- Performance may vary compared to the Linux version
The Windows port was created by:
- Cross-compiling the f3write and f3read tools with MinGW
- Reimplementing f3probe for Windows using direct disk access
- Ensuring compatibility with Windows' file and path conventions
- Always backup your data before testing drives with f3probe's destructive mode
- Be sure to run Command Prompt as Administrator when using f3probe
- Original F3 tools by Michel Machado (https://github.com/AltraMayor/f3)
- Windows port created with Claude AI assistance
The F3 tools are licensed under the GNU General Public License v3.0