#!/usr/bin/bash1# nu11secur1ty 1.01.2020.42#3apt update -y4################################################################5apt install -y debhelper bison check cmake flex ghostscript libbsd-dev libcurl4-openssl-dev6apt install -y libgeoip-dev libltdl-dev libluajit-5.1-dev libncurses5-dev libnet1-dev libpcap-dev7apt install -y libpcre3-dev libssl-dev libgtk-3-dev libgtk2.0-dev8################################################################9rm -rf /usr/local/lib/etter*10rm -rf /usr/bin/ettercap*11# Remove old ettercap "libettercap"12apt remove ettercap-common ettercap-graphical -y13rm -rf /usr/local/bin/ettercap*14rm -rf /etc/ettercap1516apt update -y17apt autoremove -y18apt install gcc -y1920cd /opt/21rm -rf *ettercap*2223# nu11secur1ty fork source24# git clone https://github.com/nu11secur1ty/ettercap.git2526# Original source27git clone https://github.com/Ettercap/ettercap.git2829cd ettercap30mkdir build31cd build32cmake ../33make && make install34ln -s /usr/local/bin/ettercap /usr/bin/ettercap-nu11secur1ty3536# If the build fails because you're missing a dependency:37# (Install any missing dependencies.)38# make clean-all39# cmake ../40# make41# make install424344#### Bundled libraries45# Ettercap now bundles the following libraries with the source distribution:46# libnet 1.1.647# curl 7.44.048# luajit 2.0.449# check 0.10.0505152# We will build bundled libraries that Ettercap depends upon, so you53# don't have to!5455# By default, the build system will search for system-provided libraries. If it56# doesn't find the particular library it wants, it will build the library, itself.5758# To disable the use of bundled libraries:59# $ cmake -DBUNDLED_LIBS=Off ../6061# To disable the searching for system-provided libraries, and use62# bundled libraries exclusively:63# $ cmake -DSYSTEM_LIBS=Off ../64exit 0;656667