Skip to content

Commit e23acf8

Browse files
committed
fix for oracle_login not checking connection status and stopping on timeout
1 parent 6e3739a commit e23acf8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/auxiliary/admin/oracle/oracle_login.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def run
5252
connect
5353
disconnect
5454
rescue ::OCIError => e
55+
if (e.to_s == 'ORA-12170: TNS:Connect timeout occurred')
56+
break
5557
else
5658
if (not e)
5759
report_auth_info(
@@ -64,6 +66,7 @@ def run
6466
)
6567
print_status("Found user/pass of: #{datastore['DBUSER']}/#{datastore['DBPASS']} on #{datastore['RHOST']} with sid #{datastore['SID']}")
6668
end
69+
end
6770
end
6871
end
6972
end

0 commit comments

Comments
 (0)