Fix possible "can't convert Fixnum into String" error

This commit is contained in:
sinn3r 2012-04-30 13:49:24 -05:00
parent 348da8e5a6
commit fd2e4c12a2
1 changed files with 1 additions and 1 deletions

View File

@ -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]