From b18f5f82b02aa80cc19c11b2bd0d6680c40cf9ea Mon Sep 17 00:00:00 2001 From: Louis Wolfers Date: Sun, 20 Mar 2022 11:56:53 +0100 Subject: [PATCH] Add directory listing to diff Co-authored-by: Andrea Cardaci --- _gtfobins/diff.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_gtfobins/diff.md b/_gtfobins/diff.md index ab33d2f..9388165 100644 --- a/_gtfobins/diff.md +++ b/_gtfobins/diff.md @@ -4,6 +4,11 @@ functions: - code: | LFILE=file_to_read diff --line-format=%L /dev/null $LFILE + - description: 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. + code: | + LFOLDER=folder_to_list + TF=$(mktemp -d) + diff --recursive $TF $LFOLDER suid: - code: | LFILE=file_to_read