This repository has been archived by the owner on Feb 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tool build.txt
58 lines (43 loc) · 1.56 KB
/
tool build.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ASSIGN COMMAND LINE VARIABLES
#ADD MARIADB 10.0 DATABASE
echo "[mariadb]" > /etc/yum.repos.d/MariaDB.repo
echo "name = MariaDB" >> /etc/yum.repos.d/MariaDB.repo
echo "baseurl = http://yum.mariadb.org/10.0/centos7-amd64" >> /etc/yum.repos.d/MariaDB.repo
echo "gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB" >> /etc/yum.repos.d/MariaDB.repo
echo "gpgcheck=1" >> /etc/yum.repos.d/MariaDB.repo
#Install EPEL repo
sudo yum install -y epel-release
#INSTALL ALL REQUIRED PACKAGES
sudo yum update -y
sudo yum install -y wget mlocate
#Install MariaDB and start
sudo yum install -y mariadb-server mariadb-client
sudo systemctl enable mysql
sudo systemctl start mysql
#Install Python packages for Alexa tool
sudo yum install -y python-devel python python-beautifulsoup4 python-requests
#Install PHP packages
sudo yum install -y php php-mssql php-mysqlnd
#Install Bro prerequiste packages
sudo yum install -y cmake make gcc gcc-c++ flex bison libpcap-devel openssl-devel swig zlib-devel GeoIP-devel GeoIP GeoIP-update gperftools-devel gperftools
#INSTALL BRO FROM SOURCE
wget https://www.bro.org/downloads/release/bro-2.4.1.tar.gz
tar -xvzf bro-2.4.1.tar.gz
cd bro-2.4.1
sudo ./configure
sudo make
sudo make install
cd aux
cd bro-aux
sudo ./configure
sudo make
sudo make install
#INSTALL LINKS TO BRO
cd /usr/local/bin/
sudo ln -s /usr/local/bro/bin/bro
sudo ln -s /usr/local/bro/bin/bro-cut
sudo ln -s /usr/local/bro/bin/broctl
#SECURE MYSQL DB
sudo mysql_secure_installation
sudo mysql --password=<password>
create database test;