Move the check_ipv6 call to the run metod

bug/bundler_fix
jvazquez-r7 2013-08-28 17:20:11 -05:00
parent 05863cb1cc
commit 43badfaa1c
1 changed files with 6 additions and 6 deletions

View File

@ -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']} "