Fixes comments in regards to #{peer}
parent
ce8317294f
commit
50746eec29
|
@ -109,7 +109,7 @@ class Metasploit4 < Msf::Exploit::Remote
|
|||
|
||||
service_url = 'http://' + srv_host + ':' + datastore['SRVPORT'].to_s + resource_uri
|
||||
|
||||
vprint_status("#{rhost}:#{rport} - Starting up our web service on #{service_url} ...")
|
||||
vprint_status("#{peer} - Starting up our web service on #{service_url} ...")
|
||||
start_service({'Uri' => {
|
||||
'Proc' => Proc.new { |cli, req|
|
||||
on_request_uri(cli, req)
|
||||
|
@ -153,10 +153,10 @@ class Metasploit4 < Msf::Exploit::Remote
|
|||
# Handle incoming requests from the server
|
||||
def on_request_uri(cli, request)
|
||||
if (not @pl)
|
||||
print_error("#{rhost}:#{rport} - A request came in, but the payload wasn't ready yet!")
|
||||
print_error("#{peer} - A request came in, but the payload wasn't ready yet!")
|
||||
return
|
||||
end
|
||||
vprint_status("#{rhost}:#{rport} - Sending the payload to the server...")
|
||||
vprint_status("#{peer} - Sending the payload to the server...")
|
||||
send_response(cli, @pl)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue