mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Use latin-1 as encoding for iconv
This commit is contained in:
parent
aca4fbe67b
commit
256794389d
@ -1,21 +1,20 @@
|
|||||||
---
|
---
|
||||||
|
description: The `8859_1` encoding is used as it accepts any single-byte sequence, thus it allows to read/write arbitrary files. Other encoding combinations may corrupt the result.
|
||||||
functions:
|
functions:
|
||||||
file-write:
|
file-write:
|
||||||
- description: Write ASCII data to file.
|
- code: |
|
||||||
code: |
|
|
||||||
LFILE=file_to_write
|
LFILE=file_to_write
|
||||||
echo "DATA" | iconv -o "$LFILE"
|
echo "DATA" | iconv -f 8859_1 -t 8859_1 -o "$LFILE"
|
||||||
file-read:
|
file-read:
|
||||||
- description: Read data from file as UTF-8.
|
- code: |
|
||||||
code: |
|
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
iconv -f UTF8 "$LFILE"
|
iconv -f 8859_1 -t 8859_1 "$LFILE"
|
||||||
suid:
|
suid:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
./iconv -f UTF8 "$LFILE"
|
./iconv -f 8859_1 -t 8859_1 "$LFILE"
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
sudo iconv -f UTF8 "$LFILE"
|
./iconv -f 8859_1 -t 8859_1 "$LFILE"
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user