File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
modules/auxiliary/admin/oracle Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,17 @@ def run
54
54
if e . to_s =~ /^ORA-12170:\s /
55
55
print_error ( "#{ datastore [ 'RHOST' ] } :#{ datastore [ 'RPORT' ] } Connection timed out" )
56
56
break
57
- elsif not e
58
- report_auth_info (
57
+ end
58
+ else
59
+ report_auth_info (
59
60
:host => "#{ datastore [ 'RHOST' ] } " ,
60
61
:port => "#{ datastore [ 'RPORT' ] } " ,
61
62
:sname => 'oracle' ,
62
63
:user => "#{ datastore [ 'SID' ] } /#{ datastore [ 'DBUSER' ] } " ,
63
64
:pass => "#{ datastore [ 'DBPASS' ] } " ,
64
65
: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' ] } " )
68
68
end
69
69
end
70
70
end
You can’t perform that action at this time.
0 commit comments