Skip to content

Commit

Permalink
Remove extra invocation of prepend_db_passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Sep 2, 2021
1 parent 01882da commit 5138e1c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions modules/auxiliary/scanner/http/chef_webui_login.rb
Expand Up @@ -130,11 +130,10 @@ def do_report(ip, port, result)
end

def init_loginscanner(ip)
cred_collection = build_credential_collection(
@cred_collection = build_credential_collection(
username: datastore['USERNAME'],
password: datastore['PASSWORD']
)
@cred_collection = prepend_db_passwords(cred_collection)

# Always try the default first
@cred_collection.prepend_cred(
Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/scanner/http/glassfish_login.rb
Expand Up @@ -77,11 +77,10 @@ def is_password_required?(version)


def init_loginscanner(ip)
cred_collection = build_credential_collection(
@cred_collection = build_credential_collection(
username: datastore['USERNAME'],
password: datastore['PASSWORD']
)
@cred_collection = prepend_db_passwords(cred_collection)

@scanner = Metasploit::Framework::LoginScanner::Glassfish.new(
configure_http_login_scanner(
Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/scanner/http/hp_sys_mgmt_login.rb
Expand Up @@ -71,11 +71,10 @@ def anonymous_access?(res)
end

def init_loginscanner(ip)
cred_collection = build_credential_collection(
@cred_collection = build_credential_collection(
username: datastore['HttpUsername'],
password: datastore['HttpPassword']
)
@cred_collection = prepend_db_passwords(cred_collection)

@scanner = Metasploit::Framework::LoginScanner::Smh.new(
configure_http_login_scanner(
Expand Down
Expand Up @@ -29,11 +29,10 @@ def initialize(info={})

# Initializes CredentialCollection and ManageEngineDesktopCentral
def init(ip)
cred_collection = build_credential_collection(
@cred_collection = build_credential_collection(
username: datastore['USERNAME'],
password: datastore['PASSWORD']
)
@cred_collection = prepend_db_passwords(cred_collection)

@scanner = Metasploit::Framework::LoginScanner::ManageEngineDesktopCentral.new(
configure_http_login_scanner(
Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/scanner/http/zabbix_login.rb
Expand Up @@ -131,11 +131,10 @@ def do_report(ip, port, result)
end

def init_loginscanner(ip)
cred_collection = build_credential_collection(
@cred_collection = build_credential_collection(
username: datastore['USERNAME'],
password: datastore['PASSWORD']
)
@cred_collection = prepend_db_passwords(cred_collection)

# Always try the default first
@cred_collection.prepend_cred(
Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/scanner/nessus/nessus_rest_login.rb
Expand Up @@ -37,11 +37,10 @@ def initialize(info={})

# Initializes CredentialCollection and Nessus Scanner
def init(ip)
cred_collection = build_credential_collection(
@cred_collection = build_credential_collection(
password: datastore['PASSWORD'],
username: datastore['USERNAME']
)
@cred_collection = prepend_db_passwords(cred_collection)

@scanner = Metasploit::Framework::LoginScanner::Nessus.new(
host: ip,
Expand Down

0 comments on commit 5138e1c

Please sign in to comment.