This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
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
synced
2025-11-02 01:38:57 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
07dca76e953c0f5513fa8453ea493df6e45aee8a
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
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
Reference in New Issue
View Git Blame
Copy Permalink