From 75007d78d5c4af7909ccaeaa2b9fd80c98a469ec Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 21 Oct 2023 13:55:55 +0200 Subject: [PATCH] Fix minicom.md --- _gtfobins/minicom.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/_gtfobins/minicom.md b/_gtfobins/minicom.md index 20a92ef..dad21af 100644 --- a/_gtfobins/minicom.md +++ b/_gtfobins/minicom.md @@ -11,6 +11,13 @@ functions: After the shell, exit with `Ctrl-A x`. code: | minicom -D /dev/null + - 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 sudo: - description: | Start the following command to open the TUI interface, then: @@ -31,12 +38,4 @@ functions: 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 ---