Identifier / Programs / Linux and Unix
screen
Hold a session open on a remote server. Manage multiple windows with a single SSH connection. tldr-pages
GTFOBins file-write 3 documented commands
How screen is abused
file-write
echo
-L-Logfilefile-write
echo
-LEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for screen.
3 documented commands
file-write unprivileged, with sudo
Data is appended to the file and \n is converted to \r\n.
screen -L -Logfile /path/to/output-file echo DATAIdentifyfile-write unprivileged, with sudo
Data is appended to the file and \n is converted to \r\n.
screen -L /path/to/output-file echo DATAIdentifyshell unprivileged, with sudo
screenIdentifyNone of the 3 commands the identifier reads trips a Sigma process-creation rule. These commands are, 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 screen. The identifier reads the line of each that runs screen.
Everyday use
Start a new screen session
screenIdentifyStart a new named screen session
screen -S session_nameIdentifyStart a new daemon and log the output to screenlog.x
screen -dmLS session_name commandIdentifyNone of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.