# Portproxy error on Metasploit

**URL:** https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543
**Category:** Penetration Testing Professional
**Tags:** red, security, cybersec
**Created:** [June 12, 2021, 11:09am UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543 "2021-06-12T11:09:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![nimanthad8-68ad32cfb](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nimanthad8-68ad32cfb](https://legacy-community.ine.com/u/nimanthad8-68ad32cfb)
#### Post date: [June 12, 2021, 11:09am UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543/1 "2021-06-12T11:09:59Z")

</div>

-] 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’

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/7cd65b61e9848bb8e8253a58c674fa57786c0b5e.png)

any idea why this error coming up?

---

<div class="post-metadata">

### Author: ![adoreste-cee223bb97c](https://sea1.discourse-cdn.com/flex015/user_avatar/legacy-community.ine.com/adoreste-cee223bb97c/32/319_2.png) [@adoreste-cee223bb97c](https://legacy-community.ine.com/u/adoreste-cee223bb97c)
#### Post date: [June 15, 2021, 10:46am UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543/2 "2021-06-15T10:46:50Z")

</div>

Hello,

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

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/73d27b5669fd299ce1204f77d6da1fb1e5225066.jpeg)

Regards,

---

<div class="post-metadata">

### Author: ![JasonNguyen](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JasonNguyen](https://legacy-community.ine.com/u/JasonNguyen)
#### Post date: [September 4, 2021, 11:23am UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543/3 "2021-09-04T11:23:54Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/b3f002ee7a4831d2cd0b7784a590db4fd005d632.png)  
Hi I have the same problem,  
My options is above  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/e38305f2ab3f494dc667ddd7e3b5ae11b93df526.png)  
I also have the window session

---

<div class="post-metadata">

### Author: ![X0RW3LL](https://sea1.discourse-cdn.com/flex015/user_avatar/legacy-community.ine.com/x0rw3ll/32/190_2.png) [@X0RW3LL](https://legacy-community.ine.com/u/X0RW3LL)
#### Post date: [September 6, 2021, 2:33am UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543/4 "2021-09-06T02:33:17Z")

</div>

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

---

<div class="post-metadata">

### Author: ![JasonNguyen](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JasonNguyen](https://legacy-community.ine.com/u/JasonNguyen)
#### Post date: [September 6, 2021, 3:11am UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543/5 "2021-09-06T03:11:43Z")

</div>

yes I did. I have already tested it with proxychain

---

<div class="post-metadata">

### Author: ![X0RW3LL](https://sea1.discourse-cdn.com/flex015/user_avatar/legacy-community.ine.com/x0rw3ll/32/190_2.png) [@X0RW3LL](https://legacy-community.ine.com/u/X0RW3LL)
#### Post date: [September 6, 2021, 6:22pm UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543/6 "2021-09-06T18:22:50Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![JasonNguyen](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JasonNguyen](https://legacy-community.ine.com/u/JasonNguyen)
#### Post date: [September 8, 2021, 1:54am UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543/7 "2021-09-08T01:54:50Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![ryan.yager.ry-0e6ad5](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@ryan.yager.ry-0e6ad5](https://legacy-community.ine.com/u/ryan.yager.ry-0e6ad5)
#### Post date: [September 19, 2021, 6:49am UTC](https://legacy-community.ine.com/t/portproxy-error-on-metasploit/543/8 "2021-09-19T06:49:11Z")

</div>

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