Automating Metasploit

Metasploit supports automation in different ways. One such way we will cover here is resource script.

A resource script is basically a set of commands that run automatically when a script is loaded. Metasploit already contains a set of prebuilt scripts that prove to be most useful in a corporate pentesting environment. The complete list of scripts available can be seen in the /usr/share/metasploit-framework/scripts/resource directory: