Post Exploitation
Ok, now what do we do??
Kill shell without saving history file
1
kill -9 $ # The $ var always returns the PID of running shell
2
HISTSIZE=0 # Prevent system from storing any entered commands
3
PATH=$PATH:/root/newhackingtool # Adds new folder to path, preserves existing path
4
shred -f -n 10 /var/log/auth.log.* # shread all auth logs ten times :)
5
service rsyslog stop # disable all system logging
Copied!
​
Copy link