rapid7/metasploit-framework — pull request #709 by sempervictus (2012-08-21 04:07:15+00:00)
Title: Add Rex compatible methods for Net::DNS

This pull request adds a Rex compatible set of methods
to Net::DNS::Resolver. Standard sockets have been replaced
with Rex::Socket classes and methods for setting/getting proxies
have been added. Additional changes to net/dns should not invoke
new socket calls but instead use the send method (or if need be
use protocol specific send methods).

The enum DNS module has been modified accordingly to make use of
the overload.

Testing: Open a framework session and get a meterpreter session
into an isolated network. Add the appropriate routes, and run
against the internal NS' with the internal domain set to test
pivot functionality. Once complete start the socks proxy module.

Open a second instance of the framework, repeat enumeration with
the proxy option set to the first framework's proxy server
(option not included in module due to issues with Opt::Proxy
causing framework errors - see ssh proxy commits).