Skip to content

Commit

Permalink
Normalize service names
Browse files Browse the repository at this point in the history
Downcases lots and standardizes a few.  Notably, modules that reported a
service name of "TNS" are now "oracle".  Modules that report http
now check for SSL and report https instead.

[Fixes #6437]
  • Loading branch information
egypt committed Feb 22, 2012
1 parent 7ca573a commit 464cf7f
Show file tree
Hide file tree
Showing 57 changed files with 154 additions and 156 deletions.
4 changes: 2 additions & 2 deletions modules/auxiliary/admin/oracle/oracle_login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ def run
report_auth_info(
:host => "#{datastore['RHOST']}",
:port => "#{datastore['RPORT']}",
:sname => 'tns',
:sname => 'oracle',
:user => "#{datastore['SID']}/#{datastore['DBUSER']}",
:pass => "#{datastore['DBPASS']}",
:active => true
)
print_status("Found user/pass of: #{datastore['DBUSER']}/#{datastore['DBPASS']} on #{datastore['RHOST']} with sid #{datastore['SID']}")
print_status("Found user/pass of: #{datastore['DBUSER']}/#{datastore['DBPASS']} on #{datastore['RHOST']} with sid #{datastore['SID']}")
end
end
end
Expand Down
58 changes: 29 additions & 29 deletions modules/auxiliary/admin/oracle/oraenum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Component Version: #{v.chomp}",
Expand All @@ -81,7 +81,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Audit Trail: Disabled",
Expand All @@ -92,7 +92,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Audit Trail: Enabled",
Expand All @@ -105,7 +105,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Audit SYS Ops: Disabled",
Expand All @@ -116,7 +116,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Audit SYS Ops: Enabled",
Expand All @@ -136,7 +136,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "SQL92: Disabled",
Expand All @@ -147,7 +147,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "SQL92: Enabled",
Expand All @@ -163,7 +163,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Link Encryption: Disabled",
Expand All @@ -174,7 +174,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Link Encryption: Enabled",
Expand All @@ -187,7 +187,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "UTL_DIR: #{ vparm["utl_file_dir"]}"
Expand All @@ -197,7 +197,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Audit Log Location: #{ vparm["audit_file_dest"]}"
Expand All @@ -220,7 +220,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account Lockout Time: #{lockout[0].chomp}",
Expand All @@ -245,7 +245,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account Fail Logins Permitted: #{failed_logins[0].chomp}",
Expand All @@ -270,7 +270,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account Password Grace Time: #{grace_time[0].chomp}",
Expand All @@ -295,7 +295,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Password Life Time: #{passlife_time[0].chomp}",
Expand All @@ -320,7 +320,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Password Reuse Time: #{passreuse[0].chomp}",
Expand All @@ -345,7 +345,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Password Maximun Reuse Time: #{passreusemax[0].chomp}",
Expand All @@ -372,7 +372,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Password Complexity is not being checked for new passwords",
Expand All @@ -383,7 +383,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Password Complexity is being checked for new passwords",
Expand Down Expand Up @@ -415,7 +415,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Active Account #{aa.chomp}",
Expand All @@ -435,7 +435,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Active Account #{aa.chomp}",
Expand Down Expand Up @@ -464,7 +464,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Disabled Account #{da.chomp}",
Expand All @@ -484,7 +484,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Disabled Account #{da.chomp}",
Expand Down Expand Up @@ -512,7 +512,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account with DBA Priv #{dba.chomp}",
Expand All @@ -539,7 +539,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account with ALTER SYSTEM Priv #{as.chomp}",
Expand All @@ -565,7 +565,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account with JAVA ADMIN Priv #{j.chomp}",
Expand Down Expand Up @@ -593,7 +593,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account with CREATE LIBRARY Priv #{lp.chomp}",
Expand All @@ -620,7 +620,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account with Default Password #{dp.chomp}",
Expand Down Expand Up @@ -648,7 +648,7 @@ def run
report_note(
:host => datastore['RHOST'],
:proto => 'tcp',
:sname => 'TNS',
:sname => 'oracle',
:port => datastore['RPORT'],
:type => 'ORA_ENUM',
:data => "Account with Default Password #{accrcrd[0]} is #{accrcrd[1]}",
Expand Down
Loading

0 comments on commit 464cf7f

Please sign in to comment.