Skip to content

Commit

Permalink
Add alternatives to minicom.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed Oct 21, 2023
1 parent 894326d commit 126cb95
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions _gtfobins/minicom.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,42 @@
---
description: Note that in some versions, `Meta-Z` is used in place of `Ctrl-A`.
functions:
shell:
- description: |
Start the following command to open the TUI interface, then:
1. press `Ctrl-A o` and select `Filenames and paths`;
2. press `E` and type `/bin/sh`;
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`. Note that in some versions, `Meta-Z` is used in place of `Ctrl-A`.
After the shell, exit with `Ctrl-A x`.
code: |
minicom -D /dev/null
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
shell:

Check failure on line 34 in _gtfobins/minicom.md

View workflow job for this annotation

GitHub Actions / Tests

34:3 [key-duplicates] duplication of key "shell" in mapping
- 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
---

0 comments on commit 126cb95

Please sign in to comment.