Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/ettercap/installer.sh
1303 views
1
#!/usr/bin/bash
2
# nu11secur1ty 1.01.2020.4
3
#
4
apt update -y
5
################################################################
6
apt install -y debhelper bison check cmake flex ghostscript libbsd-dev libcurl4-openssl-dev
7
apt install -y libgeoip-dev libltdl-dev libluajit-5.1-dev libncurses5-dev libnet1-dev libpcap-dev
8
apt install -y libpcre3-dev libssl-dev libgtk-3-dev libgtk2.0-dev
9
################################################################
10
rm -rf /usr/local/lib/etter*
11
rm -rf /usr/bin/ettercap*
12
# Remove old ettercap "libettercap"
13
apt remove ettercap-common ettercap-graphical -y
14
rm -rf /usr/local/bin/ettercap*
15
rm -rf /etc/ettercap
16
17
apt update -y
18
apt autoremove -y
19
apt install gcc -y
20
21
cd /opt/
22
rm -rf *ettercap*
23
24
# nu11secur1ty fork source
25
# git clone https://github.com/nu11secur1ty/ettercap.git
26
27
# Original source
28
git clone https://github.com/Ettercap/ettercap.git
29
30
cd ettercap
31
mkdir build
32
cd build
33
cmake ../
34
make && make install
35
ln -s /usr/local/bin/ettercap /usr/bin/ettercap-nu11secur1ty
36
37
# If the build fails because you're missing a dependency:
38
# (Install any missing dependencies.)
39
# make clean-all
40
# cmake ../
41
# make
42
# make install
43
44
45
#### Bundled libraries
46
# Ettercap now bundles the following libraries with the source distribution:
47
# libnet 1.1.6
48
# curl 7.44.0
49
# luajit 2.0.4
50
# check 0.10.0
51
52
53
# We will build bundled libraries that Ettercap depends upon, so you
54
# don't have to!
55
56
# By default, the build system will search for system-provided libraries. If it
57
# doesn't find the particular library it wants, it will build the library, itself.
58
59
# To disable the use of bundled libraries:
60
# $ cmake -DBUNDLED_LIBS=Off ../
61
62
# To disable the searching for system-provided libraries, and use
63
# bundled libraries exclusively:
64
# $ cmake -DSYSTEM_LIBS=Off ../
65
exit 0;
66
67