Documentation is key in every penetration test! You end up doing a lot of random stuff when you’re performing a test and it can be very tough or annoying to retrace your steps.
That is why for years now I have automatically logged my terminal every time I open it! To do this too on Kali (and I HIGHLY suggest you do) just do the following!
- cd ~
- nano .bashrc
- Go to the bottom of the file
Paste the following at the bottom
- test “$(ps -ocommand= -p $PPID | awk ‘{print $1}’)” == ‘script’ || (script -f $HOME/$(date +”%d-%b-%y_%H-%M-%S”)_shell.log)
- CRTL+O
- Hit enter
- DONE!
Until next time!
See all the entries in this series!
- Reinstall Grub Bootloader on a Dual boot laptop Kali Tips #1
- Automatically Log Terminal Kali Tips #2
- Add Message to Terminal Kali Tips #3
- Code Editor Kali Tips #4
- Convert MSG to PDF Kali Tips #5
- Run Metasploit Module One Liner Kali Tips #6
- Check External IP Kali Tips #7
- Search Packages in Common Package Managers Kali Tips #8
END TRANSMISSION