Skip to content
Snippets Groups Projects
Commit c7a24442 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

upraveno pro warden-server-2.1; potreba pridat pripadny soubor UPDATE aby se...

upraveno pro warden-server-2.1; potreba pridat pripadny soubor UPDATE aby se zkopiroval do adresare doc
parent 3fb33814
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ modules_chck()
make_warden_dir()
{
echo -n "Creating warden server directory ... "
echo -n "Creating Warden server directory ... "
test -d $prefix || mkdir -p $prefix
if cp -R ${dirname}/warden-server $prefix 2> $err; then
echo "OK"
......@@ -140,7 +140,7 @@ make_warden_dir()
err_clean
fi
files=(CHANGELOG INSTALL LICENSE README)
files=(AUTHORS CHANGELOG INSTALL LICENSE README)
for file in ${files[@]};
do
cp ${dirname}/$file ${server_path}/doc
......@@ -195,44 +195,55 @@ make_server_conf()
#-------------------------------------------------------------------------------
# BASEDIR - base directory of Warden server
#-------------------------------------------------------------------------------
\$BASEDIR = \"${server_path}\";
\$BASEDIR = \'${server_path}\';
#-------------------------------------------------------------------------------
# FACILITY - syslog facility
# SYSLOG - enable/disable syslog logging
#-------------------------------------------------------------------------------
\$FACILITY = \"local7\";
\$SYSLOG = 1;
#-------------------------------------------------------------------------------
# DB_NAME - database name of Warden server
# SYSLOG_VERBOSE - enable/disable logging in verbose mode (stack info added)
#-------------------------------------------------------------------------------
\$DB_NAME = \"warden\";
\$SYSLOG_VERBOSE = 1;
#-------------------------------------------------------------------------------
# DB_USER - user of Warden server database
# SYSLOG_FACILITY - syslog facility
#-------------------------------------------------------------------------------
\$DB_USER = \"username\";
\$YSLOG_FACILITY = \'local7\';
#-------------------------------------------------------------------------------
# DB_PASS - password of Warden server database
# DB_NAME - MySQL database name of Warden server
#-------------------------------------------------------------------------------
\$DB_PASS = \"\";
\$DB_NAME = \'warden\';
#-------------------------------------------------------------------------------
# DB_HOST - what IP address to listen on of Warden server
# DB_USER - MySQL database user of Warden server
#-------------------------------------------------------------------------------
\$DB_HOST = \"localhost\";
\$DB_USER = \'username\';
#-------------------------------------------------------------------------------
# MAX_EVENTS_LIMIT - maximum number of events that can be downloaded from
# Warden server in a single getNewEvents client function call
# DB_PASS - MySQL database password of Warden server
#-------------------------------------------------------------------------------
\$MAX_EVENTS_LIMIT = \"1000000\";
\$DB_PASS = \'\';
#-------------------------------------------------------------------------------
# DB_HOST - MySQL database host
#-------------------------------------------------------------------------------
\$DB_HOST = \'localhost\';
#-------------------------------------------------------------------------------
# MAX_EVENTS_LIMIT - server limit of maximum number of events that can be
# delivered to one client in one batch
#-------------------------------------------------------------------------------
\$MAX_EVENTS_LIMIT = \'1000000\';
#-------------------------------------------------------------------------------
# VALID_STRINGS - validation hash containing allowed event attributes
#-------------------------------------------------------------------------------
%VALID_STRINGS = (
\"type\" => [\"portscan\", \"bruteforce\", \"probe\", \"spam\", \"phishing\", \"botnet_c_c\", \"dos\", \"malware\", \"copyright\", \"webattack\", \"test\", \"other\", \"_any_\"],
\%VALID_STRINGS = (
\'type\' => [\'portscan\', \'bruteforce\', \'probe\', \'spam\', \'phishing\', \'botnet_c_c\', \'dos\', \'malware\', \'copyright\', \'webattack\', \'test\', \'other\', \'_any_\'],
\'source_type' => ['IP', 'URL', 'Reply-To:']
);
" > $server_conf 2> $err; ret_val=`echo $?`
......@@ -288,7 +299,7 @@ create_symlinks()
#-------------------------------------------------------------------------------
# list of used Perl modules
modules=(SOAP::Lite SOAP::Transport::HTTP DBI DBD::mysql Format::Human::Bytes Sys::Syslog File::Basename Net::CIDR::Lite DateTime Getopt::Std Switch IO::Socket::SSL MIME::Base64 Crypt::X509)
modules=(SOAP::Lite SOAP::Transport::HTTP DBI DBD::mysql Format::Human::Bytes Sys::Syslog File::Basename Net::CIDR::Lite DateTime Getopt::Std Switch IO::Socket::SSL MIME::Base64 Crypt::X509 Carp)
# read input
while getopts "d:k:c:a:Vh" options; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment