Installing Snort
49
93 echo "Snort executable file $SNORT does not exist."
94 echo "Aborting ..."
95 exit 1
96 fi
97
98 if [ ! f $SNORT_CONFIG ]
99 then
100 echo "Snort configuration file $SNORT_CONFIG does not exist."
101 echo "Aborting ..."
102 exit 1
103 fi
104
105 if [ ! x $SNORT ]
106 then
107 echo "Snort file $SNORT is not executable."
108 echo "Aborting ..."
109 exit 1
110 fi
111
112 echo "Starting Snort ..."
113 $SNORT c $SNORT_CONFIG D l /tmp 2>/dev/null
114
115 if [ $? ne 0 ]
116 then
117 echo "Snort startup failed."
118 echo "Aborting ..."
119 exit 1
120 fi
121
122 echo
123 echo "Now generating alerts."
124
125 ping i 0.3 n r b $ADDRESS p "7569643d3028726f6f74290a" c3 2>/dev/
null >/dev/null
126
127 if [ $? ne 0 ]
128 then
129 echo "Alerting generation failed."
130 echo "Aborting ..."
131 exit 1
132 else
133 echo
134 echo "Alert generation complete"
135 echo
136 fi
137
138 sleep 2
139
140 tail n18 $ALERT_FILE 2>/dev/null | grep "ATTACK RESPONSES id check" >/
dev/null
141
142 if [ $? ne 0 ]
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