Automation of cybersecurity tools using Python
We started this chapter by showing all the benefits of automation. Now, it's time to see how we can leverage Python to achieve automation.
Python is a super-intuitive language that is widely used for scripting and automation, and we can also leverage it to automate some cybersecurity-related tasks.
In fact, you can automate almost everything you want with Python, including automating well-known cybersecurity tools such as Nessus, Nexpose, Shodan, Nmap, Metasploit, Sqlmap, and more.
However, in this section, we are going to discover other ways to automate cybersecurity tasks with Python.
Local file search
There are cases where you need to search for a given file or folder on a given workstation—for example, to achieve compliance, as part of an audit, or as part of a forensics investigation.
So, if you are an auditor, it would be great to have a script to look for those files and folders, and that can be easily...