#!/usr/local/bin/perl # # $Header: webcache_esm.pl 03-may-2005.04:27:15 rkuriako Exp $ # # webcache_esm.pl # # Copyright (c) 2003, 2005, Oracle. All rights reserved. # # NAME # webcache_esm.pl - # # DESCRIPTION # ESM script for webcache security violations # # NOTES # # # MODIFIED (MM/DD/YY) # rkuriako 05/03/05 - bug-4188709 # kchander 12/16/03 - fix bug 3318453 # kchander 11/26/03 - kchander_esm_scripts_for_ias # kchander 11/06/03 - # kchander 10/28/03 - Creation # use File::Find; use Digest::MD5; use strict; my $oraHome = $ENV{ORACLE_HOME}; our $writeableFileCount = 0; my $sep = $^O =~ m/MSWin32/ ? "\\" : "\/"; my $webcache = $oraHome.$sep."webcache".$sep."webcache.xml"; if (open WEBCACHECONF, "<$webcache") { my @confarray = (); while (my $in = ) { chomp($in); $in =~ s/^\s+//; $in =~ s/\s+$//; push(@confarray, $in); } close WEBCACHECONF; #check whether access logging is enabled or not my @array = grep(/= 0) { print "em_result=WebCacheWritableFile|$writeableFileCount\n"; } #check for usage of default wallet my @port = (); my @wallet = (); my $line; for (my $i =0; $i<$#confarray; $i++) { $line = $confarray[$i]; chomp($line); $line =~s/^\s+//; $line =~ s/\s+$//; if (!grep(/