File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
modules/auxiliary/scanner/oracle Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,22 @@ def run_host(ip)
41
41
42
42
data = sock . get_once
43
43
44
- if ( data and data =~ /\\ *.TNSLSNR for (.*)/ )
44
+ if ( data && data =~ /\\ *.TNSLSNR for (.*)/ )
45
45
ora_version = data . match ( /\\ *.TNSLSNR for (.*)/ ) [ 1 ]
46
46
report_service (
47
- :host => ip ,
48
- :port => datastore [ 'RPORT' ] ,
49
- :name => "oracle" ,
50
- :info => ora_version
47
+ :host => ip ,
48
+ :port => datastore [ 'RPORT' ] ,
49
+ :name => "oracle" ,
50
+ :info => ora_version
51
51
)
52
52
print_good ( "#{ ip } :#{ datastore [ 'RPORT' ] } Oracle - Version: " + ora_version )
53
+ elsif ( data && data =~ /\( ERR=(\d +)\) / )
54
+ case $1. to_i
55
+ when 1189
56
+ print_error ( "#{ ip } :#{ datastore [ 'RPORT' ] } Oracle - Version: Unknown - Error code #{ $1} - The listener could not authenticate the user" )
57
+ else
58
+ print_error ( "#{ ip } :#{ datastore [ 'RPORT' ] } Oracle - Version: Unknown - Error code #{ $1} " )
59
+ end
53
60
else
54
61
print_error ( "#{ ip } :#{ datastore [ 'RPORT' ] } Oracle - Version: Unknown" )
55
62
end
You can’t perform that action at this time.
0 commit comments