This website requires JavaScript.
Explore
Help
Register
Sign In
mirror
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced
2025-12-28 19:21:41 +01:00
Code
Issues
90960c8ea4
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
Raw
Blame
History
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