Phr0zen_Penguin

nemesis_install.sh - Nemesis Automated Install

Jul 14th, 2015
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.29 KB | None | 0 0
  1. ##
  2. # [nemesis_install.sh]
  3. #
  4. #    (c) Damion 'Phr0z3n.dev' Tapper, 2015.
  5. #    Email: [email protected]
  6. #    Website: http://L337Stuff.Blogspot.com
  7. #
  8. # An automated install shell script for installing the Nemesis packet crafting/sending utility on
  9. # Debian-based systems: namely BackTrack and Ubuntu.
  10. #
  11. # NOTE:
  12. # You MUST run this script from a root terminal.
  13. #
  14. # Also, the following instructions were prepared under the convention that your machine is fully
  15. # functional, has the base tools/libs/compiler installed, and has the libnet and libpcap links already
  16. # set up in its repo.
  17. #
  18. #
  19. # MAKE THE SCRIPT EXECUTABLE:
  20. # chmod +x nemesis_install.sh
  21. #
  22. # RUN WITH:
  23. # ./nemesis_install.sh
  24. ##
  25.  
  26. # Create log file directories for the automated process:
  27. mkdir ~/Desktop/nemesis_install_logs &&
  28. mkdir ~/Desktop/nemesis_install_logs/err &&
  29.  
  30.  
  31. # Install a few dependencies:
  32. apt-get install libdnet-dev &&
  33. apt-get install libpcap-dev &&
  34.  
  35.  
  36. # Get Nemesis and the libnet dep package:
  37. wget http://ips-builder.googlecode.com/files/libnet-1.0.2a.tar.gz &&
  38. wget http://heanet.dl.sourceforge.net/project/nemesis/nemesis/1.4/nemesis-1.4.tar.gz &&
  39.  
  40.  
  41. # Build and install the libnet dep library:
  42. mkdir /usr/nembuild &&
  43. cp libnet-1.0.2a.tar.gz nemesis-1.4.tar.gz /usr/nembuild &&
  44. cd /usr/nembuild &&
  45. tar -xf libnet-1.0.2a.tar.gz &&
  46. cd Libnet-1.0.2a &&
  47. ./configure > ~/Desktop/nemesis_install_logs/libnet_configure.log 2> ~/Desktop/nemesis_install_logs/err/libnet_configure_err.log &&
  48. make > ~/Desktop/nemesis_install_logs/libnet_make.log 2> ~/Desktop/nemesis_install_logs/err/libnet_make_err.log &&
  49. make install > ~/Desktop/nemesis_install_logs/libnet_install.log 2> ~/Desktop/nemesis_install_logs/err/libnet_install_err.log &&
  50.  
  51.  
  52. # Build and install Nemesis:
  53. cd /usr/nembuild &&
  54. tar -xf nemesis-1.4.tar.gz &&
  55. cd nemesis-1.4 &&
  56. ./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 &&
  57. make > ~/Desktop/nemesis_install_logs/nemesis_make.log 2> ~/Desktop/nemesis_install_logs/err/nemesis_make_err.log &&
  58. 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