Merlyz

ZMAP Auto Installer

Oct 12th, 2020 (edited)
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.94 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. ############################################
  4. #Zmap Auto Installer                       #
  5. #This is for Centos, if using              #
  6. #another OS, change the "yum" to "apt-get" #
  7. ############################################
  8.  
  9. clear
  10. echo "Zmap Auto installer By Merlyn"
  11.  
  12.  
  13. echo "Zmap Auto Installer, Push Enter to continue..."
  14. read
  15. yum update -y
  16. yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y
  17. yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y
  18. yum install epel-release -y
  19. yum install gengetopt -y
  20.  
  21. wget https://github.com/zmap/zmap/archive/v2.1.0.tar.gz
  22. tar -xvf v2.1.0.tar.gz
  23. cd zmap-2.1.0
  24. flex -o "src/lexer.c" --header-file="src/lexer.h" "src/lexer.l"
  25. byacc -d -o "src/parser.c" "src/parser.y"
  26. mkdir /etc/zmap
  27. cp conf/* /etc/zmap
  28. cmake -DENABLE_HARDENING=ON
  29. make
  30. make install
  31. echo "Zmap Installer complete!! Push enter to exit installer"
  32.  
  33. read
Add Comment
Please, Sign In to add comment