First pass at style cleanup

bug/bundler_fix
Jon Hart 2015-08-28 14:19:28 -07:00
parent 3fd18e4844
commit 45c2422981
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 50 additions and 49 deletions

View File

@ -11,7 +11,6 @@ class Metasploit3 < Msf::Auxiliary
def initialize
super(
'Name' => 'UPnP AddPortMapping',
'Version' => '$Revision: 1 $',
'Description' => 'UPnP AddPortMapping SOAP request',
'Author' => 'St0rn <fabien@anbu-pentest.com>',
'License' => MSF_LICENSE
@ -22,10 +21,12 @@ class Metasploit3 < Msf::Auxiliary
OptString.new('INTERNAL_CLIENT', [ true, 'New Internal Client']),
OptInt.new('INTERNAL_PORT', [ true, 'New Internal Port']),
OptInt.new('EXTERNAL_PORT', [ true, 'New External Port'])
], self.class)
],
self.class
)
end
def run()
def run
ctrlurl = datastore['CTRL_URL']
soapaction = "urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"
@ -57,7 +58,7 @@ class Metasploit3 < Msf::Auxiliary
header << content
print_status("Sending SOAP Request")
connect()
connect
sock.puts(header)
resp = sock.recv(1024)
if resp.include? "200 OK"