Interacting with the Metasploit framework from python

The MsfRpcClient class provides the core functionality to navigate through the Metasploit framework.

Like the Metasploit framework, MsfRpcClient is segmented into different management modules:

  • auth: Manages the authentication of clients for the msfrpcd daemon.
  • consoles: Manages interaction with consoles/shells created by the Metasploit modules.
  • core: Manages the Metasploit framework core.
  • db: Manages the backend database connectivity for msfrpcd.
  • modules: Manages the interaction and configuration of Metasploit modules (such as exploits and auxiliaries).
  • plugins: Manages the plugins associated with the Metasploit core.
  • sessions: Manages the interaction with the Metasploit meterpreter sessions. ...

Get Mastering Python for Networking and Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.