1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
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
---