Fix possible "can't convert Fixnum into String" error
This commit is contained in:
parent
348da8e5a6
commit
fd2e4c12a2
|
@ -194,7 +194,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
j_memory = rand_text_alpha(rand(100) + 1)
|
||||
j_counter = rand_text_alpha(rand(30) + 2)
|
||||
|
||||
host = Rex::Socket.source_address(cli.peerhost) + ":" + datastore["SRVPORT"]
|
||||
host = Rex::Socket.source_address(cli.peerhost) + ":" + (datastore["SRVPORT"].to_s)
|
||||
gif_uri = "http#{(datastore['SSL'] ? 's' : '')}://#{host}"
|
||||
if ("/" == get_resource[-1,1])
|
||||
gif_uri << get_resource[0, get_resource.length - 1]
|
||||
|
|
Loading…
Reference in New Issue