GTFOBins.github.io/_gtfobins/history.md
2018-09-01 13:07:26 +02:00

656 B

functions
file-write file-read sudo-enabled
description code
Resulting file will contain additional timestamp lines in the format of `#1535795174` for each data line. LFILE=file_to_write HISTIGNORE='history *' history -c DATA history -w $LFILE
description code
The file content will be surrounded by your current bash history session content. LFILE=file_to_read HISTTIMEFORMAT=$'\r\e[K' history -r $LFILE history
code
LFILE=file_to_read sudo bash -c "HISTTIMEFORMAT=$'\r\e[K' && history -r $LFILE && history"