First pass at style cleanup
parent
3fd18e4844
commit
45c2422981
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue