1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/cmp.md
Andrea Cardaci b1a33432e9 Simplify cmp
2021-07-13 08:53:44 +02:00

450 B

description functions
Dump the bytes of the input file that are different from the NUL byte in a tabular format, hence this may not be suitable to read arbitrary binary files.
file-read suid sudo
code
LFILE=file_to_read cmp $LFILE /dev/zero -b -l
code
LFILE=file_to_read ./cmp $LFILE /dev/zero -b -l
code
LFILE=file_to_read sudo cmp $LFILE /dev/zero -b -l