mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 22:09:35 +01:00
Added file -f for reading files
This commit is contained in:
parent
a59e79e31c
commit
b19420d1fd
@ -1,21 +1,27 @@
|
|||||||
---
|
---
|
||||||
description: |
|
|
||||||
Each line is corrupted by a prefix string and wrapped inside quotes, so this may not be suitable for binary files.
|
|
||||||
|
|
||||||
If a line in the target file begins with a `#`, it will not be printed as these lines are parsed as comments.
|
|
||||||
|
|
||||||
It can also be provided with a directory and will read each file in the directory.
|
|
||||||
functions:
|
functions:
|
||||||
file-read:
|
file-read:
|
||||||
- code: |
|
- description: Each input line is treated as a filename for the `file` command and the output is corrupted by a suffix `:` followed by the result or the error of the operation, so this may not be suitable for binary files.
|
||||||
|
code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
file -f $LFILE
|
||||||
|
- description: |
|
||||||
|
Each line is corrupted by a prefix string and wrapped inside quotes, so this may not be suitable for binary files.
|
||||||
|
|
||||||
|
If a line in the target file begins with a `#`, it will not be printed as these lines are parsed as comments.
|
||||||
|
|
||||||
|
It can also be provided with a directory and will read each file in the directory.
|
||||||
|
code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
file -m $LFILE
|
file -m $LFILE
|
||||||
suid:
|
suid:
|
||||||
- code: |
|
- description: Each input line is treated as a filename for the `file` command and the output is corrupted by a suffix `:` followed by the result or the error of the operation, so this may not be suitable for binary files.
|
||||||
|
code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
./file -m $LFILE
|
./file -f $LFILE
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- description: Each input line is treated as a filename for the `file` command and the output is corrupted by a suffix `:` followed by the result or the error of the operation, so this may not be suitable for binary files.
|
||||||
|
code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
sudo file -m $LFILE
|
sudo file -f $LFILE
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user