Skip to content

Commit 00ec47f

Browse files
David MaloneyDavid Maloney
authored andcommitted
call new prepend cred methods
add method calls o all the lgoinscanner modules so that they call the prepend_db_* methods as approrpiate these methods automatically check to see if DB_ALL_CREDS was selected
1 parent 093f488 commit 00ec47f

File tree

16 files changed

+40
-2
lines changed

16 files changed

+40
-2
lines changed

modules/auxiliary/scanner/afp/afp_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def run_host(ip)
5454
user_as_pass: datastore['USER_AS_PASS'],
5555
)
5656

57+
cred_collection = prepend_db_passwords(cred_collection)
58+
5759
scanner = Metasploit::Framework::LoginScanner::AFP.new(
5860
host: ip,
5961
port: rport,

modules/auxiliary/scanner/db2/db2_auth.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def run_host(ip)
5252
realm: datastore['DATABASE']
5353
)
5454

55+
cred_collection = prepend_db_passwords(cred_collection)
56+
5557
scanner = Metasploit::Framework::LoginScanner::DB2.new(
5658
host: ip,
5759
port: rport,

modules/auxiliary/scanner/ftp/ftp_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def run_host(ip)
6666
prepended_creds: anonymous_creds
6767
)
6868

69+
cred_collection = prepend_db_passwords(cred_collection)
70+
6971
scanner = Metasploit::Framework::LoginScanner::FTP.new(
7072
host: ip,
7173
port: rport,

modules/auxiliary/scanner/http/axis_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def run_host(ip)
7272
user_as_pass: datastore['USER_AS_PASS'],
7373
)
7474

75+
cred_collection = prepend_db_passwords(cred_collection)
76+
7577
scanner = Metasploit::Framework::LoginScanner::Axis2.new(
7678
host: ip,
7779
port: rport,

modules/auxiliary/scanner/http/http_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def run_host(ip)
129129
user_as_pass: datastore['USER_AS_PASS'],
130130
)
131131

132+
cred_collection = prepend_db_passwords(cred_collection)
133+
132134
scanner = Metasploit::Framework::LoginScanner::HTTP.new(
133135
host: ip,
134136
port: rport,

modules/auxiliary/scanner/http/tomcat_mgr_login.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,17 @@ def run_host(ip)
103103
user_as_pass: datastore['USER_AS_PASS'],
104104
)
105105

106+
cred_collection = prepend_db_passwords(cred_collection)
107+
106108
scanner = Metasploit::Framework::LoginScanner::Tomcat.new(
107109
host: ip,
108110
port: rport,
109111
proxies: datastore['PROXIES'],
110112
cred_details: cred_collection,
111113
stop_on_success: datastore['STOP_ON_SUCCESS'],
112-
connection_timeout: 10
114+
connection_timeout: 10,
115+
user_agent: datastore['UserAgent'],
116+
vhost: datastore['VHOST']
113117
)
114118

115119
scanner.scan! do |result|

modules/auxiliary/scanner/mssql/mssql_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def run_host(ip)
4343
realm: datastore['DOMAIN']
4444
)
4545

46+
cred_collection = prepend_db_passwords(cred_collection)
47+
4648
scanner = Metasploit::Framework::LoginScanner::MSSQL.new(
4749
host: ip,
4850
port: rport,

modules/auxiliary/scanner/mysql/mysql_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def run_host(ip)
4747
user_as_pass: datastore['USER_AS_PASS'],
4848
)
4949

50+
cred_collection = prepend_db_passwords(cred_collection)
51+
5052
scanner = Metasploit::Framework::LoginScanner::MySQL.new(
5153
host: ip,
5254
port: rport,

modules/auxiliary/scanner/pop3/pop3_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def run_host(ip)
6262
user_as_pass: datastore['USER_AS_PASS'],
6363
)
6464

65+
cred_collection = prepend_db_passwords(cred_collection)
66+
6567
scanner = Metasploit::Framework::LoginScanner::POP3.new(
6668
host: ip,
6769
port: rport,

modules/auxiliary/scanner/postgres/postgres_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def run_host(ip)
6060
realm: datastore['DATABASE']
6161
)
6262

63+
cred_collection = prepend_db_passwords(cred_collection)
64+
6365
scanner = Metasploit::Framework::LoginScanner::Postgres.new(
6466
host: ip,
6567
port: rport,

0 commit comments

Comments
 (0)