Skip to content

Commit b6379b4

Browse files
committed
Update drupal_views_user_enum
1 parent 0b88e86 commit b6379b4

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

modules/auxiliary/scanner/http/drupal_views_user_enum.rb

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ def report_cred(opts)
7575
credential_data = {
7676
origin_type: :service,
7777
module_fullname: fullname,
78-
username: opts[:user],
79-
private_data: opts[:password],
80-
private_type: :password
78+
username: opts[:user]
8179
}.merge(service_data)
8280

8381
login_data = {
@@ -129,11 +127,10 @@ def run_host(ip)
129127
final_results.each do |user|
130128
print_good("Found User: #{user}")
131129

132-
report_auth_info(
133-
:host => Rex::Socket.getaddress(datastore['RHOST']),
134-
:port => datastore['RPORT'],
135-
:user => user,
136-
:type => "drupal_user"
130+
report_cred(
131+
ip: Rex::Socket.getaddress(datastore['RHOST']),
132+
port: datastore['RPORT'],
133+
user: user
137134
)
138135
end
139136

test/modules/auxiliary/test/report_auth_info.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_ektron_cms400net
5050

5151
def test_drupal_views_user_enum
5252
mod = framework.auxiliary.create('scanner/http/drupal_views_user_enum')
53-
mod.report_cred(ip: FAKE_IP, port: FAKE_PORT, user: FAKE_USER, password: FAKE_PASS)
53+
mod.report_cred(ip: FAKE_IP, port: FAKE_PORT, user: FAKE_USER)
5454
end
5555

5656
def test_dolibarr_login

0 commit comments

Comments
 (0)