diff --git a/modules/auxiliary/admin/http/nexpose_xxe_file_read.rb b/modules/auxiliary/admin/http/nexpose_xxe_file_read.rb index e86c1e62f4..78b6971587 100644 --- a/modules/auxiliary/admin/http/nexpose_xxe_file_read.rb +++ b/modules/auxiliary/admin/http/nexpose_xxe_file_read.rb @@ -42,12 +42,14 @@ class Metasploit4 < Msf::Auxiliary OptString.new('USERNAME', [true, "The Nexpose user", "user"]), OptString.new('PASSWORD', [true, "The Nexpose password", "pass"]), OptString.new('FILEPATH', [true, "The filepath to read on the server", "/etc/shadow"]), + OptBool.new('SSL', [true, 'Use SSL', true]) ], self.class) end def run user = datastore['USERNAME'] pass = datastore['PASSWORD'] + prot = datastore['SSL'] ? 'https' : 'http' nsc = Nexpose::Connection.new(rhost, user, pass, rport) @@ -57,7 +59,7 @@ class Metasploit4 < Msf::Auxiliary report_auth_info( :host => rhost, :port => rport, - :sname => 'https', + :sname => prot, :user => user, :pass => pass, :proof => '',