Technical requirements
The code for this chapter can be found at https://github.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/tree/main/Chapter16.
This chapter will utilize a Kali virtual machine with GitLab and Bash scripts for running security checks and monitoring. Configure your Kali Linux virtual machine with at least the following:
- 4 GB RAM
- 30 GB storage
- Two virtual CPUs
Once you have a working Kali installation that meets or exceeds the preceding specifications, run the ch16_setup_environment.sh
script found in this chapter’s GitHub directory. We’ll review the script later in this chapter.
Next, configure the system email:
- Run the
ch16_setup_mail.sh
script. This script can be found in the GitHub repository directory for this chapter. - Test sending yourself mail:
$ echo "Test message" | mail -s "Test Subject" $USER
- Check your mail:
- Enter the
mail
command in the terminal - Press the Enter/Return...
- Enter the