Closed lokesh1095 closed 6 years ago
Do you have Metasploit service running? service metasploit start
yes I do have metasploit service running I have updated to the suggested version and I see nothing but this Error above as well
This library was just working for me after adding the try/excepts for the ssl library from another issue. Now 100% of the time I'm getting connection refused as well. Restart metasploit, tried running metasploit as a daemon, and it's just constantly saying connection refused.
I can confirm metasploit is running and msfrpcd is running as well.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ruby 17384 root 9u IPv4 243289 0t0 TCP *:55553 (LISTEN)
OK well, apparently adding the port option to MsfRpcClient will fix this.
client = MsfRpcClient(password, port=55553) # works.
client = MsfRpcClient(password) # does not
What's weird is that in the code it says port will default to 55553 so I have no idea why adding that parameter with the value it already has by default makes it work.
I, can Share my Solution via Email. As well I'm 90% done with my Tool just had a few issues IRL that required my attention. I'd say no more than a week check my github it will be there its called th3surg30n
thanks for all Your help guys.
On Sat, Mar 3, 2018 at 1:26 PM, Dan McInerney notifications@github.com wrote:
OK well, apparently adding the port option to MsfRpcClient will fix this.
client = MsfRpcClient(password, port=55553) works. client = MsfRpcClient(password) does not.
What's weird is that in the code it says port will default to 55553 so I have no idea why adding that parameter with the value it already has by default makes it work.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/allfro/pymetasploit/issues/6#issuecomment-370181064, or mute the thread https://github.com/notifications/unsubscribe-auth/AhJZgXYPMB4WEWnMwPZk0I9mBNhiTg19ks5tawp4gaJpZM4IcPSZ .
when i try to run command
client = MsfRpcClient('lokesh1095')
i get following error. i tried many things but error is persistent. cant solve it. any help??