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, but with Python it is also possible to take advantage of the benefits that this framework has thanks to the use of libraries such as python-msfrpc.
Connecting the Metasploit framework and Python
Introduction to MessagePack
Before beginning to explain the operation of this module, it is convenient to understand the MessagePack format, which is used by the MSGRPC interface for the exchange of information between the client and server.
MessagePack is a specialized format for the serialization of information, which allows messages to be more compact in order to transmit...