GTFOBins.github.io/_gtfobins/cmp.md

17 lines
450 B
Markdown
Raw Normal View History

2021-07-13 07:33:49 +02:00
---
2021-07-13 08:50:51 +02:00
description: 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.
2021-07-13 07:33:49 +02:00
functions:
file-read:
- code: |
2021-07-13 08:50:51 +02:00
LFILE=file_to_read
cmp $LFILE /dev/zero -b -l
2021-07-13 07:33:49 +02:00
suid:
- code: |
2021-07-13 08:50:51 +02:00
LFILE=file_to_read
./cmp $LFILE /dev/zero -b -l
2021-07-13 07:33:49 +02:00
sudo:
- code: |
2021-07-13 08:50:51 +02:00
LFILE=file_to_read
sudo cmp $LFILE /dev/zero -b -l
2021-07-13 07:33:49 +02:00
---