modules/exploits/osx/mdns/upnp_location.rb
Method initialize
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'Mac OS X mDNSResponder UPnP Location Overflow',
'Description' => %q{
This module exploits a buffer overflow that occurs when processing
Method scan_for_upnp_port
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def scan_for_upnp_port
@upnp_port = 0
@found_upnp_port = false
upnp_port = 0
Method exploit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
#
# It is very important that we scan for the upnp port. We must
# receive the TCP connection and hold it open, otherwise the
# code path that uses the overwritten function pointer most