1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-08 06:56:15 +01:00
GTFOBins.github.io/_gtfobins/iconv
2026-01-05 22:26:55 +01:00

20 lines
490 B
Plaintext

---
comment: |-
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:
file-read:
- code: |-
iconv -f 8859_1 -t 8859_1 /path/to/input-file
contexts:
sudo:
suid:
unprivileged:
file-write:
- code: |-
echo DATA | iconv -f 8859_1 -t 8859_1 -o /path/to/output-file
contexts:
sudo:
suid:
unprivileged:
...