Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##
- # [nemesis_install.sh]
- #
- # (c) Damion 'Phr0z3n.dev' Tapper, 2015.
- # Email: [email protected]
- # Website: http://L337Stuff.Blogspot.com
- #
- # An automated install shell script for installing the Nemesis packet crafting/sending utility on
- # Debian-based systems: namely BackTrack and Ubuntu.
- #
- # NOTE:
- # You MUST run this script from a root terminal.
- #
- # Also, the following instructions were prepared under the convention that your machine is fully
- # functional, has the base tools/libs/compiler installed, and has the libnet and libpcap links already
- # set up in its repo.
- #
- #
- # MAKE THE SCRIPT EXECUTABLE:
- # chmod +x nemesis_install.sh
- #
- # RUN WITH:
- # ./nemesis_install.sh
- ##
- # Create log file directories for the automated process:
- mkdir ~/Desktop/nemesis_install_logs &&
- mkdir ~/Desktop/nemesis_install_logs/err &&
- # Install a few dependencies:
- apt-get install libdnet-dev &&
- apt-get install libpcap-dev &&
- # Get Nemesis and the libnet dep package:
- wget http://ips-builder.googlecode.com/files/libnet-1.0.2a.tar.gz &&
- wget http://heanet.dl.sourceforge.net/project/nemesis/nemesis/1.4/nemesis-1.4.tar.gz &&
- # Build and install the libnet dep library:
- mkdir /usr/nembuild &&
- cp libnet-1.0.2a.tar.gz nemesis-1.4.tar.gz /usr/nembuild &&
- cd /usr/nembuild &&
- tar -xf libnet-1.0.2a.tar.gz &&
- cd Libnet-1.0.2a &&
- ./configure > ~/Desktop/nemesis_install_logs/libnet_configure.log 2> ~/Desktop/nemesis_install_logs/err/libnet_configure_err.log &&
- make > ~/Desktop/nemesis_install_logs/libnet_make.log 2> ~/Desktop/nemesis_install_logs/err/libnet_make_err.log &&
- make install > ~/Desktop/nemesis_install_logs/libnet_install.log 2> ~/Desktop/nemesis_install_logs/err/libnet_install_err.log &&
- # Build and install Nemesis:
- cd /usr/nembuild &&
- tar -xf nemesis-1.4.tar.gz &&
- cd nemesis-1.4 &&
- ./configure --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include --with-libnet-libraries=/usr/nembuild/Libnet-1.0.2a/lib > ~/Desktop/nemesis_install_logs/nemesis_config.log 2> ~/Desktop/nemesis_install_logs/err/nemesis_config_err.log &&
- make > ~/Desktop/nemesis_install_logs/nemesis_make.log 2> ~/Desktop/nemesis_install_logs/err/nemesis_make_err.log &&
- make install > ~/Desktop/nemesis_install_logs/nemesis_install.log 2> ~/Desktop/nemesis_install_logs/err/nemesis_install_err.log
Advertisement
Add Comment
Please, Sign In to add comment