Skip to content

Commit 38c36b4

Browse files
committed
Report when nothing is rescued
1 parent 81406de commit 38c36b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/auxiliary/admin/oracle/oracle_login.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ def run
5454
if e.to_s =~ /^ORA-12170:\s/
5555
print_error("#{datastore['RHOST']}:#{datastore['RPORT']} Connection timed out")
5656
break
57-
elsif not e
58-
report_auth_info(
57+
end
58+
else
59+
report_auth_info(
5960
:host => "#{datastore['RHOST']}",
6061
:port => "#{datastore['RPORT']}",
6162
:sname => 'oracle',
6263
:user => "#{datastore['SID']}/#{datastore['DBUSER']}",
6364
:pass => "#{datastore['DBPASS']}",
6465
:active => true
65-
)
66-
print_status("Found user/pass of: #{datastore['DBUSER']}/#{datastore['DBPASS']} on #{datastore['RHOST']} with sid #{datastore['SID']}")
67-
end
66+
)
67+
print_status("Found user/pass of: #{datastore['DBUSER']}/#{datastore['DBPASS']} on #{datastore['RHOST']} with sid #{datastore['SID']}")
6868
end
6969
end
7070
end

0 commit comments

Comments
 (0)