allfro / pymetasploit

A full-fledged msfrpc library for Metasploit framework.
298 stars 141 forks source link

Create msfrpcdHandler.py #7

Open kyle-fd opened 8 years ago

kyle-fd commented 8 years ago

When using PyMetasploit, I normally run a handler to check if the MSFRPCD is already running, otherwise if I forget to check netstat I throw an error in my console when starting the service out of habit. This small bit of functionality would allow users to start the service and handle if it is already running, as well as be able to restart it if there is a connectivity issue later on.

Additional functionality has been added to msfrpc.py to allow for runtime arguments at execution, so as to allow for arguments relating to a payload, such as LHOST or LPORT for a reverse_tcp connection.

JohnTroony commented 8 years ago

Awesome! I'm testing this on my Arch-Linux... Though MSFRPCD starts by default at boot time on my machine.