Handling execption by MSFTIDY

This commit is contained in:
Dhiraj Mishra 2018-04-06 22:54:21 +05:30 committed by GitHub
parent 4e6afd49ed
commit 201cdfb189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ class MetasploitModule < Msf::Auxiliary
'Name' => "Private IP Leakage to WebPage using WebRTC Function.", 'Name' => "Private IP Leakage to WebPage using WebRTC Function.",
'Description' => %q( 'Description' => %q(
This module uses WebRTC component to gather complete client information and browser can This module uses WebRTC component to gather complete client information and browser can
disclose a private IP address in a STUN request. disclose a private IP address in a STUN request
), ),
'License' => MSF_LICENSE, 'License' => MSF_LICENSE,
'Author' => [ 'Author' => [
@ -130,13 +130,13 @@ getIPs(function(ip){
def on_request_uri(cli, request) def on_request_uri(cli, request)
case request.method.downcase case request.method.downcase
when 'get' when 'get'
print_good("#{cli.peerhost}: Sending response (#{@html.size} bytes)") print_status("#{cli.peerhost}: Sending response (#{@html.size} bytes)")
send_response(cli, @html) send_response(cli, @html)
when 'post' when 'post'
print_good("#{cli.peerhost}: Received reply:") print_status("#{cli.peerhost}: Received reply:")
puts request.to_s print_line("#{puts request.to_s}")
else else
print_good("#{cli.peerhost}: Unhandled method: #{request.method}") print_error("#{cli.peerhost}: Unhandled method: #{request.method}")
end end
end end
end end