Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #Centos 6 Zmap Installation
- import time, subprocess
- def system(cmd):
- subprocess.call(cmd, shell=True)
- print ("Installing Zmap For Centos 6")
- time.sleep(2)
- system ("yum update -y")
- system ("yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y")
- system ("yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y")
- system ("yum install epel-release -y")
- system ("yum install gengetopt -y")
- system ("wget -q https://github.com/zmap/zmap/archive/v2.1.0.tar.gz")
- system ("tar -xvf v2.1.0.tar.gz")
- system ("cd zmap-2.1.0")
- system ("flex -o \"src/lexer.c\" --header-file=\"src/lexer.h\" \"src/lexer.l\"")
- system ("byacc -d -o \"src/parser.c\" \"src/parser.y\"")
- system ("mkdir /etc/zmap")
- system ("cp conf/* /etc/zmap")
- system ("cmake -DENABLE_HARDENING=ON")
- system ("make")
- system ("make install")
- print ("Done Installing Zmap For Centos ! Coded By: Love Hecate")
Advertisement
Add Comment
Please, Sign In to add comment