1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Update drupal_views_user_enum

This commit is contained in:
wchen-r7 2015-06-16 00:02:02 -05:00
parent 0b88e86a49
commit b6379b4d24
2 changed files with 6 additions and 9 deletions

View File

@ -75,9 +75,7 @@ class Metasploit3 < Msf::Auxiliary
credential_data = {
origin_type: :service,
module_fullname: fullname,
username: opts[:user],
private_data: opts[:password],
private_type: :password
username: opts[:user]
}.merge(service_data)
login_data = {
@ -129,11 +127,10 @@ class Metasploit3 < Msf::Auxiliary
final_results.each do |user|
print_good("Found User: #{user}")
report_auth_info(
:host => Rex::Socket.getaddress(datastore['RHOST']),
:port => datastore['RPORT'],
:user => user,
:type => "drupal_user"
report_cred(
ip: Rex::Socket.getaddress(datastore['RHOST']),
port: datastore['RPORT'],
user: user
)
end

View File

@ -50,7 +50,7 @@ class Metasploit3 < Msf::Auxiliary
def test_drupal_views_user_enum
mod = framework.auxiliary.create('scanner/http/drupal_views_user_enum')
mod.report_cred(ip: FAKE_IP, port: FAKE_PORT, user: FAKE_USER, password: FAKE_PASS)
mod.report_cred(ip: FAKE_IP, port: FAKE_PORT, user: FAKE_USER)
end
def test_dolibarr_login