From 3212ee424c7830c7b8366fa41f49646039a0423c Mon Sep 17 00:00:00 2001 From: anon Date: Tue, 10 Dec 2024 20:33:39 +0100 Subject: [PATCH] +bash history abuse --- Misc./bash_history_abuse/abuser_helper | 4 ++++ Misc./bash_history_abuse/history_abuser.sh | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Misc./bash_history_abuse/abuser_helper create mode 100644 Misc./bash_history_abuse/history_abuser.sh diff --git a/Misc./bash_history_abuse/abuser_helper b/Misc./bash_history_abuse/abuser_helper new file mode 100644 index 0000000..dd03daa --- /dev/null +++ b/Misc./bash_history_abuse/abuser_helper @@ -0,0 +1,4 @@ +rm .bash_history +cbash -i < history_abuser.sh + +# HISTTIMEFORMAT='%y/%m/%d %T: ' diff --git a/Misc./bash_history_abuse/history_abuser.sh b/Misc./bash_history_abuse/history_abuser.sh new file mode 100644 index 0000000..85a3227 --- /dev/null +++ b/Misc./bash_history_abuse/history_abuser.sh @@ -0,0 +1,19 @@ +# below me is not a comment +echo test +HISTTIMEFORMAT='%y/%m/%d %T: ' +#1700000000 +echo test +for i in *; do + echo "a" +done +for i in *; do # harder +echo "ouch" +done +shopt -s lithist +for i in *; do +echo "ouch" +done +for i in *; do +#1700000000 +echo "ouch" +done