AvengeVPS

Zmap Auto Installer [CentOS 6]

Feb 27th, 2018
1,010
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2. #Centos 6 Zmap Installation
  3. #Script by AvengeVPS
  4. #If you're too lazy to copy and paste download this
  5. #https://mega.nz/#!6UBUkDzA!ycVrVZcnapqa6Vu2ui-VkHG2ihfT2hi9-D3MoQiSw98
  6.  
  7. import time, subprocess
  8.  
  9. def system(cmd):
  10.    subprocess.call(cmd, shell=True)
  11.    
  12. print("\x1b[0;35mZmap Installation has Began\x1b[0m")
  13. print("\x1b[0;35mPlease give credit to avengehitler or AvengeVPS!\x1b[0m")
  14. time.sleep(2)
  15.  
  16. system ("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;chmod 777 *"
  17.  
  18. print("\x1b[0;32mZmap has been installed!\x1b[0m")
  19.  
  20. system ("ls")
  21. print("\x1b[0;32mIf zmap is not listed above, you messed up!\x1b[0m")
Advertisement
Add Comment
Please, Sign In to add comment