Learned about HISTSIZE environment variable and how to manipulate it to dictate how many commands to store in the history file. If you set it to 0 then no commands are remembered. This is very useful from an offensive standpoint to hide any evidence of past commands as well as from a defensive standpoint to securely not leave any fingerprints in my system that would aid in enumeration. Very sneaky and very useful.
— Mar 09, 2021 08:07PM
Add a comment