diff --git a/modules/post/windows/manage/portproxy.rb b/modules/post/windows/manage/portproxy.rb index 7930e1ac4c..faea0592df 100644 --- a/modules/post/windows/manage/portproxy.rb +++ b/modules/post/windows/manage/portproxy.rb @@ -41,6 +41,12 @@ class Metasploit3 < Msf::Post return end + # Due to a bug in Windows XP you need to install IPv6 + # http://support.microsoft.com/kb/555744/en-us + if sysinfo["OS"] =~ /XP/ + return unless check_ipv6 + end + return unless enable_portproxy fw_enable_ports @@ -53,12 +59,6 @@ class Metasploit3 < Msf::Post 'Columns' => ['LOCAL IP', 'LOCAL PORT', 'REMOTE IP', 'REMOTE PORT'] ) - # Due to a bug in Windows XP you need to install IPv6 - # http://support.microsoft.com/kb/555744/en-us - if sysinfo["OS"] =~ /XP/ - return false if not check_ipv6 - end - print_status("Setting PortProxy ...") netsh_args = "interface portproxy " netsh_args << "add #{datastore['TYPE']} "