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