Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ############################################
- #Zmap Auto Installer #
- #This is for Centos, if using #
- #another OS, change the "yum" to "apt-get" #
- ############################################
- clear
- echo "Zmap Auto installer By Merlyn"
- echo "Zmap Auto Installer, Push Enter to continue..."
- read
- yum update -y
- yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y
- yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y
- yum install epel-release -y
- yum install gengetopt -y
- wget https://github.com/zmap/zmap/archive/v2.1.0.tar.gz
- tar -xvf v2.1.0.tar.gz
- cd zmap-2.1.0
- flex -o "src/lexer.c" --header-file="src/lexer.h" "src/lexer.l"
- byacc -d -o "src/parser.c" "src/parser.y"
- mkdir /etc/zmap
- cp conf/* /etc/zmap
- cmake -DENABLE_HARDENING=ON
- make
- make install
- echo "Zmap Installer complete!! Push enter to exit installer"
- read
Add Comment
Please, Sign In to add comment