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