-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall-dependencies
executable file
·50 lines (38 loc) · 1.53 KB
/
install-dependencies
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
#!/bin/bash
# Have to run with sudo, if you are non-root user.
# Packet Capture Engine Dependencies section
source sources/colors.sh
echo -e "${YELLOW}${STAR}${NRML} Started installation"
echo "========================="
DEPENDS=( build-essential autoconf automake libtool pkg-config libnl-3-dev libnl-genl-3-dev libssl-dev ethtool shtool rfkill zlib1g-dev libpcap-dev libsqlite3-dev libpcre3-dev libhwloc-dev libcmocka-dev hostapd wpasupplicant tcpdump screen iw usbutils wireless-tools firmware-ath9k-htc firmware-ath9k-htc-dbgsym tshark python3-pip )
for pkg in ${DEPENDS[@]};
do
echo -e "${YELLOW}${STAR}${NRML} Installing package: ${pkg}"
apt install -y ${pkg} &> /dev/null && echo -e "${GREEN}${GOOD}${NRML} Successfully installed ${pkg}" || echo -e "${RED}${ERR}${NRML} Error installing ${pkg}"
echo "========================="
done
# Yara Validataion and Mailing Alert Engine Dependencies section
PY3PATH=$( which python3 )
REQDEP=( yara-python colorama )
for LINE in ${REQDEP[@]};
do
echo -e "${YELLOW}${STAR}${NRML} Installing package: ${LINE}"
${PY3PATH} -m pip install ${LINE} &> /dev/null && echo -e "${GREEN}${GOOD}${NRML} Successfully installed" || echo -e "${RED}${ERR}${NRML} Error installing ${LINE}"
echo "========================="
done
installAircrack()
{
echo "Changing to /tmp/ directory.."
cd /tmp/
wget https://download.aircrack-ng.org/aircrack-ng-1.6.tar.gz
tar -zxf aircrack-ng-1.6.tar.gz
cd aircrack-ng-1.6/
autoreconf -i
./configure
make
make check
make integration
make install
ldconfig
}
installAircrack