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.
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.