mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
b18f5f82b0
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
21 lines
594 B
Markdown
21 lines
594 B
Markdown
---
|
|
functions:
|
|
file-read:
|
|
- 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
|
|
./diff --line-format=%L /dev/null $LFILE
|
|
sudo:
|
|
- code: |
|
|
LFILE=file_to_read
|
|
sudo diff --line-format=%L /dev/null $LFILE
|
|
---
|