1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 08:16:02 +02:00
GTFOBins.github.io/_gtfobins/file.md
2020-02-09 11:44:34 +01:00

1.3 KiB

functions
file-read suid sudo
description code
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. LFILE=file_to_read file -f $LFILE
description code
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. LFILE=file_to_read file -m $LFILE
description code
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. LFILE=file_to_read ./file -f $LFILE
description code
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. LFILE=file_to_read sudo file -f $LFILE