Fix possible port conflict
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
@@ -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}")
|
||||
|
||||
|
||||
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user