In this section, we review Metasploit and how we can integrate this framework with Python. The programming language used to develop modules in Metasploit is ruby, however with Python it is also possible to take advantage of the benefits that this framework has thanks to the use of libraries such as pyMetasploit.
Connecting Metasploit with pyMetasploit
Introduction to PyMetasploit
PyMetasploit is a msfrpc library for Python and allowus us to automate the exploitation tasks with Python. It is meant to interact with the msfrpcd daemon that comes with the latest versions of Metasploit. Therefore, before you can begin to use this library, you'll need to initialize msfrpcd and optionally (highly recommended) PostgreSQL: https...