Skip to content

Commit e651f3f

Browse files
committed
Land rapid7#5886, ensure disconnect in sid_brute.rb, method #do_sid_check
2 parents 11db9c2 + 8785083 commit e651f3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/scanner/oracle/sid_brute.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ def do_sid_check(sid,ip)
8585
vprint_status "#{hostport} Oracle - Refused '#{sid}'"
8686
return :fail
8787
end
88-
disconnect
8988
rescue ::Rex::ConnectionError, ::Errno::EPIPE
9089
print_error("#{hostport} Oracle - unable to connect to a TNS listener")
9190
return :abort
91+
ensure
92+
disconnect
9293
end
9394
end
9495

0 commit comments

Comments
 (0)