Identifier / Programs / Linux and Unix
debugfs
An interactive ext2/ext3/ext4 filesystem debugger. tldr-pages
GTFOBins shell 1 documented command
How debugfs is abused
shell
Each abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for debugfs.
1 documented command
shell unprivileged, with sudo, as SUID
debugfs
!/bin/shIdentifyThe command the identifier reads trips no Sigma process-creation rule. This command is from GTFOBins, at commit acd524623f9c of 2026-05-27, under the GPL-3.0, with no warranty. Changed: Markdown is shown formatted. The source is in lolbas-gtfobins-commands.json.gz, and the full entry is on GTFOBins’s page for debugfs. The identifier reads the line that runs debugfs.
Everyday use
Open the filesystem in read only mode
debugfs /dev/sdXNIdentifyOpen the filesystem in read write mode
debugfs -w /dev/sdXNIdentifyRead commands from a specified file, execute them, and then exit
debugfs -f path/to/cmd_file /dev/sdXNIdentifyNone of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.