Fix possible port conflict

bug/bundler_fix
jvazquez-r7 2013-09-18 12:24:36 -05:00
parent dc9246a770
commit 1988085a94
3 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ class Metasploit3 < Msf::Exploit::Remote
end
def exploit
telnetport = rand(65535)
telnetport = rand(32767) + 32768
print_status("#{rhost}:#{rport} - Telnet port used: #{telnetport}")

View File

@ -129,7 +129,7 @@ class Metasploit3 < Msf::Exploit::Remote
end
def exploit_telnet
telnetport = rand(65535)
telnetport = rand(32767) + 32768
print_status("#{rhost}:#{rport} - Telnetport: #{telnetport}")

View File

@ -76,9 +76,9 @@ class Metasploit3 < Msf::Exploit::Remote
def exploit
@new_portmapping_descr = rand_text_alpha(8)
@new_external_port = rand(65535)
@new_internal_port = rand(65535)
telnetport = rand(65535)
@new_external_port = rand(32767) + 32768
@new_internal_port = rand(32767) + 32768
telnetport = rand(32767) + 32768
vprint_status("#{rhost}:#{rport} - Telnetport: #{telnetport}")