Skip to content

Commit c575582

Browse files
David MaloneyDavid Maloney
authored andcommitted
pass in vhost and useragent
have http loginscanner modules pass in VHOST and Useragent to the LoginScanner classes
1 parent 28427cc commit c575582

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

modules/auxiliary/scanner/http/axis_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def run_host(ip)
8080
cred_details: cred_collection,
8181
stop_on_success: datastore['STOP_ON_SUCCESS'],
8282
connection_timeout: 5,
83+
user_agent: datastore['UserAgent'],
84+
vhost: datastore['VHOST']
8385
)
8486

8587
scanner.scan! do |result|

modules/auxiliary/scanner/http/http_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ def run_host(ip)
138138
cred_details: cred_collection,
139139
stop_on_success: datastore['STOP_ON_SUCCESS'],
140140
connection_timeout: 5,
141+
user_agent: datastore['UserAgent'],
142+
vhost: datastore['VHOST']
141143
)
142144

143145
scanner.scan! do |result|

modules/auxiliary/scanner/http/ipboard_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def run_host(ip)
4444
cred_details: cred_collection,
4545
stop_on_success: datastore['STOP_ON_SUCCESS'],
4646
connection_timeout: 5,
47+
user_agent: datastore['UserAgent'],
48+
vhost: datastore['VHOST']
4749
)
4850

4951
scanner.scan! do |result|

modules/auxiliary/scanner/http/tomcat_mgr_login.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ def run_host(ip)
109109
proxies: datastore['PROXIES'],
110110
cred_details: cred_collection,
111111
stop_on_success: datastore['STOP_ON_SUCCESS'],
112-
connection_timeout: 10
112+
connection_timeout: 10,
113+
user_agent: datastore['UserAgent'],
114+
vhost: datastore['VHOST']
113115
)
114116

115117
scanner.scan! do |result|

0 commit comments

Comments
 (0)