Hardware Hacking
flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips, commonly used for BIOS/EFI/firmware extraction, backup, and flashing.
sudo apt install flashrom
flashrom [options]
flashrom is a universal flash programming utility used to detect, read, write, verify, and erase flash chips. It supports hundreds of chips, chipsets, and mainboards, making it the standard tool for firmware security research.
Security researchers use flashrom to extract BIOS/UEFI firmware for vulnerability analysis, implant persistent backdoors, recover bricked devices, and analyze embedded device firmware at the hardware level.
| Command | Purpose |
|---|---|
flashrom -R | Print version information. |
flashrom -L | List supported chips and programmers. |
flashrom -p dummy:emulate=W25Q128FV -r test.bin | Read an emulated chip for offline learning. |
flashrom -p ch341a_spi | Probe through a CH341A programmer after wiring validation. |
flashrom -LList all supported flash chips, programmers, boards, and chipsetsflashrom -p internalProbe the onboard BIOS/UEFI flash via the internal programmerflashrom -p ch341a_spiProbe the connected chip using a CH341A USB SPI programmerflashrom -p ch341a_spi -r backup.binRead the flash contents and save them to a backup fileflashrom -p ch341a_spi -c "MX25L6405" -r backup.binForce a specific chip when auto-detection is ambiguousflashrom -p ch341a_spi -w firmware.binWrite an image to flash (contents are auto-verified afterward)flashrom -p ch341a_spi -v firmware.binVerify the flash contents against a fileflashrom -p ch341a_spi -EErase the entire flash chipflashrom -p ch341a_spi -w firmware.bin -nWrite an image but skip the automatic verify stepflashrom -p internal --flash-namePrint the detected flash chip nameflashrom -p internal --flash-sizePrint the detected flash size in bytesflashrom -p ft2232_spi:type=2232H,port=A -r backup.binRead flash through an FT2232H-based SPI adapterflashrom -p buspirate_spi:dev=/dev/ttyUSB0 -r backup.binRead flash using a Bus Pirate in SPI modeflashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -r backup.binRead flash through the Linux spidev interfaceflashrom -p serprog:dev=/dev/ttyUSB0:4000000 -r backup.binRead flash using a serprog-compatible deviceflashrom -p internal --ifd -i bios -r bios.binRead only the BIOS region using the Intel Flash Descriptor layoutflashrom -p internal --fmap -i COREBOOT -r coreboot.binRead a region defined by an embedded fmapflashrom -p internal -l layout.txt -i bios -w firmware.binWrite only the region named bios from a custom layout fileflashrom -p ch341a_spi -l layout.txt -xExtract each region defined by the layout into its own fileflashrom -p ch341a_spi --progress -w firmware.binShow a progress percentage while writingflashrom -p ch341a_spi -o flashrom.log -r backup.binLog the full operation output to a fileflashrom -p internal --wp-statusShow the current write protection statusflashrom -p internal --wp-disableDisable flash write protectionflashrom -p internal --wp-range=0x0,0x80000Set a write-protected range on the chipflashrom -p dummy:emulate=W25Q128FV -r test.binExercise flashrom against an emulated chip with the dummy programmerflashrom -p ch341a_spi -V -r backup.binRead with verbose output for debuggingExtract BIOS/UEFI firmware for analysis.
Write modified firmware to chips.
Restore corrupted BIOS firmware.
Backdoor firmware for persistent access.
Hardware Hacking
Arduino IDE and tools for programming microcontrollers used in hardware hacking, BadUSB attacks, and IoT testing.
Forensics
Learn how to use Binwalk to scan a firmware image, read the signature table, extract embedded filesystems, and spot encrypted regions — a beginner tutorial for Kali Linux.
Exploitation
MSFVenom is a standalone payload generator and encoder utility within the Metasploit Framework, first introduced in Metasploit 4.0 (2015) to replace the legacy msfpayload and msfencode tools with a single unified interface. It enables security professionals, penetration testers, and students to create, customize, and encode payloads for multiple platforms including Windows, Linux, macOS, Android, and PHP. MSFVenom is widely used in CTF competitions, security training labs, authorized penetration testing engagements, and red team operations to generate reverse shells, Meterpreter payloads, shellcode, and encoded executables. Understanding MSFVenom helps both offensive and defensive security professionals learn payload construction techniques, encoding methods, and detection strategies used in modern cybersecurity.
Reverse Engineering
ADB, or Android Debug Bridge, is a versatile command-line tool that acts as a client-server program, facilitating communication between your development machine (the client) and an Android device (running the adbd daemon) via a server process binding TCP port 5037. It ships as part of the Android SDK Platform Tools, and on Kali Linux, it's available as the `android-tools-adb` package. ADB is the standard device bridge for Android mobile pentesting and forensics, enabling actions like deploying Frida servers, pulling APKs, and capturing detailed logcat output for analysis.
Forensics
ExifTool is a platform-independent tool for reading, writing, and editing metadata in a wide variety of files including images, audio, and video.
Reverse Engineering
Frida is a dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers. It allows you to inject snippets of JavaScript or your own library into native apps on various platforms — making it the industry standard for runtime analysis and mobile app security testing.
Learn reverse engineering from scratch: analyze binaries with Ghidra and GDB, read assembly, crack a practice binary, and build a starter toolkit.
Security · BeginnerLearn about social engineering attacks including phishing, pretexting, and manipulation techniques with defense strategies.
Web Security · IntermediateLearn API hacking step by step: discover endpoints, test authentication and authorization, find BOLA flaws with a worked crAPI example, test JWTs and GraphQL, and report findings — with tools, a cheat sheet and a checklist.
Security · IntermediateLearn about brute force attacks, their variations, tools used, and comprehensive defense strategies including rate limiting, lockouts, and password policies.
Provides terminal updates regarding hardware identification, data transfer percentages, and final checksum verifications.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.