mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-01-15 00:01:45 +01:00
Add xxd
This commit is contained in:
parent
80abdca9d1
commit
f6e3f6898a
20
_gtfobins/xxd.md
Normal file
20
_gtfobins/xxd.md
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
functions:
|
||||
sudo-enabled:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
sudo xxd "$LFILE" | xxd -r
|
||||
suid-enabled:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
./xxd "$LFILE" | xxd -r
|
||||
file-read:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
xxd "$LFILE" | xxd -r
|
||||
file-write:
|
||||
- description: The content of the file to write is given in hex dump (`data\n` is `646174610a`)
|
||||
code: |
|
||||
LFILE=file_to_write
|
||||
echo "0: 646174610a" | xxd -r - "$LFILE"
|
||||
---
|
Loading…
Reference in New Issue
Block a user