GTFOBins.github.io/_gtfobins/diff.md

21 lines
594 B
Markdown
Raw Permalink Normal View History

2018-06-02 17:02:38 +02:00
---
functions:
file-read:
2018-07-16 15:01:50 +02:00
- 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
2018-10-05 19:55:38 +02:00
suid:
2018-07-16 15:01:50 +02:00
- code: |
LFILE=file_to_read
./diff --line-format=%L /dev/null $LFILE
2018-10-05 19:55:38 +02:00
sudo:
2018-07-16 15:01:50 +02:00
- code: |
LFILE=file_to_read
sudo diff --line-format=%L /dev/null $LFILE
2018-06-02 17:02:38 +02:00
---