We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e23acf8 commit 67efa76Copy full SHA for 67efa76
modules/auxiliary/admin/oracle/oracle_login.rb
@@ -52,10 +52,8 @@ def run
52
connect
53
disconnect
54
rescue ::OCIError => e
55
- if (e.to_s == 'ORA-12170: TNS:Connect timeout occurred')
56
- break
57
- else
58
- if (not e)
+ break if e.to_s =~ /^ORA-12170:\s/
+ unless e
59
report_auth_info(
60
:host => "#{datastore['RHOST']}",
61
:port => "#{datastore['RPORT']}",
@@ -65,8 +63,7 @@ def run
65
63
:active => true
66
64
)
67
print_status("Found user/pass of: #{datastore['DBUSER']}/#{datastore['DBPASS']} on #{datastore['RHOST']} with sid #{datastore['SID']}")
68
- end
69
+ end
70
end
71
72
0 commit comments