48
Chapter 2 Installing Snort and Getting Started
41 ALERT_FILE_OLD=$LOG_DIR/alert.old
42 ADDRESS="255.255.255.255"
43
44 clear
45
46 echo "###############################################################"
47 echo "# Script to test Snort Installation #"
48 echo "# Written By #"
49 echo "# #"
50 echo "# Rafeeq Rehman #"
51 echo "# rr@argusnetsec.com #"
52 echo "# Argus Network Security Services Inc. #"
53 echo "# http://www.argusnetsec.com #"
54 echo "###############################################################"
55 echo
56
57 echo
58 echo "###############################################################"
59 echo "The script generates three alerts in file /tmp/alert"
60 echo "Each alert should start with message like the following:"
61 echo
62 echo " \"ATTACK RESPONSES id check returned root\" "
63 echo "###############################################################"
64 echo
65
66 if [ ! d $LOG_DIR ]
67 then
68 echo "Creating log directory ..."
69 mkdir $LOG_DIR
70
71 if [ $? ne 0 ]
72 then
73 echo "Directory $LOGDIR creation failed"
74 echo "Aborting ..."
75 exit 1
76 fi
77 fi
78
79 if [ f $ALERT_FILE ]
80 then
81 mv f $ALERT_FILE $ALERT_FILE_OLD
82
83 if [ $? ne 0 ]
84 then
85 echo "Can t rename old alerts file."
86 echo "Aborting ..."
87 exit 1
88 fi
89 fi
90
91 if [ ! f $SNORT ]
92 then
footer
Our partners:
PHP: Hypertext Preprocessor Cheap Web Hosting
JSP Web Hosting
Ontario Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Java Hosting
Cheapest Hosting
Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved