Portproxy error on Metasploit

-] Post failed: NoMethodError undefined method cmd_exec' for #<Msf::Modules::Post__Windows__Manage__Portproxy::MetasploitModule:0x0000560fc4f05878> [-] Call stack: [-] /usr/share/metasploit-framework/modules/post/windows/manage/portproxy.rb:65:in enable_portproxy’
[-] /usr/share/metasploit-framework/modules/post/windows/manage/portproxy.rb:46:in `run’

any idea why this error coming up?


Seems to me that you are missing some options here. Also, what kind of session do you have?


Hi I have the same problem,
My options is above

I also have the window session

Quick question: did you add internal routes via the autoroute module?

yes I did. I have already tested it with proxychain

Does the issue persist across lab resets?

Also, do you have the latest metasploit-framework update? v6.1.4 just dropped today.
Try updating, and retry the payload.

Thank you for your response, I found out there something wrong with the new version from 6.1.2 to 6.1.4.
I have downgrade the version to 6.0.34 and it worked fine.

Go to pimp my kali and downgrade again to version 5. A lot of exploits do not work properly on version 6