diff --git a/lib/rex/parser/unattend.rb b/lib/rex/parser/unattend.rb index fdce92220e..0f8c3f27f7 100644 --- a/lib/rex/parser/unattend.rb +++ b/lib/rex/parser/unattend.rb @@ -39,7 +39,7 @@ class Unattend # def self.extract_deployment(deployment) return [] if deployment.nil? - domain = deployment.elements['Login/Credentials/Domain'].get_text.value rescue '' + domain = deployment.elements['Login/Credentials/Domain'].get_text.value rescue '' username = deployment.elements['Login/Credentials/Username'].get_text.value rescue '' password = deployment.elements['Login/Credentials/Password'].get_text.value rescue '' plaintext = deployment.elements['Login/Credentials/Password/PlainText'].get_text.value rescue 'true' @@ -57,7 +57,7 @@ class Unattend # def self.extract_domain_join(credentials) return [] if credentials.nil? - domain = credentials.elements['Domain'].get_text.value rescue '' + domain = credentials.elements['Domain'].get_text.value rescue '' username = credentials.elements['Username'].get_text.value rescue '' password = credentials.elements['Password'].get_text.value rescue '' @@ -70,7 +70,7 @@ class Unattend def self.extract_autologon(auto_logon) return [] if auto_logon.nil? - domain = auto_logon.elements['Domain'].get_text.value rescue '' + domain = auto_logon.elements['Domain'].get_text.value rescue '' username = auto_logon.elements['Username'].get_text.value rescue '' password = auto_logon.elements['Password/Value'].get_text.value rescue '' plaintext = auto_logon.elements['Password/PlainText'].get_text.value rescue 'true' diff --git a/modules/auxiliary/parser/unattend.rb b/modules/auxiliary/parser/unattend.rb index afbd13e6b2..ae443334ef 100644 --- a/modules/auxiliary/parser/unattend.rb +++ b/modules/auxiliary/parser/unattend.rb @@ -12,17 +12,18 @@ class Metasploit3 < Msf::Auxiliary def initialize(info={}) super( update_info( info, - 'Name' => 'Auxilliary Parser Windows Unattend Passwords', - 'Description' => %q{ + 'Name' => 'Auxilliary Parser Windows Unattend Passwords', + 'Description' => %q{ This module parses Unattend files in the target directory. See also: post/windows/gather/enum_unattend }, - 'License' => MSF_LICENSE, - 'Author' =>[ - 'Ben Campbell ', + 'License' => MSF_LICENSE, + 'Author' => + [ + 'Ben Campbell ', ], - 'References' => + 'References' => [ ['URL', 'http://technet.microsoft.com/en-us/library/ff715801'], ['URL', 'http://technet.microsoft.com/en-us/library/cc749415(v=ws.10).aspx'],