Identifier / Programs / Linux and Unix
date
Set or display the system date. tldr-pages
GTFOBins file-read 1 documented command
How date is abused
file-read
-fEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for date.
1 documented command
file-read unprivileged, with sudo, as SUID
Each line is corrupted by a prefix string and wrapped inside quotes.
date -f /path/to/input-fileIdentifyThe 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 date. The identifier reads the line that runs date.
Everyday use
Display the current date using the default locale's format
date +%cIdentifyDisplay the current date in UTC, using the ISO 8601 format
date --utc +%Y-%m-%dT%H:%M:%SZIdentifyDisplay the current date as a Unix timestamp (seconds since the Unix epoch)
date +%sIdentifyNone of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.
Options
Show every option of date
-d DATEShow DATE instead of current time (convert date format)-D SET_FORMAT+FORMAT for SET or -d (instead of MMDDhhmm[[CC]YY][.ss])-I RESISO 8601 with RESolution d=date/h=hours/m=minutes/s=seconds/n=ns-r FILEUse modification time of FILE instead of current date-s DATESet the system clock to DATE.-uUse UTC instead of current timezone