View difference between Paste ID: dYRKyzxm and 2SbyJxz3
SHOW: | | - or go back to the newest paste.
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-
print ("Installing Zmap For Centos 6")
9+
10
   subprocess.call(cmd, shell=True)
11
   
12-
system ("yum update -y")
12+
print("\x1b[0;35mZmap Installation has Began\x1b[0m")
13-
system ("yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y")
13+
print("\x1b[0;35mPlease give credit to avengehitler or AvengeVPS!\x1b[0m")
14-
system ("yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y")
14+
15-
system ("yum install epel-release -y")
15+
16-
system ("yum install gengetopt -y")
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-
system ("wget -q https://github.com/zmap/zmap/archive/v2.1.0.tar.gz")
17+
18-
system ("tar -xvf v2.1.0.tar.gz")
18+
print("\x1b[0;32mZmap has been installed!\x1b[0m")
19-
system ("cd zmap-2.1.0")
19+
20-
system ("flex -o \"src/lexer.c\" --header-file=\"src/lexer.h\" \"src/lexer.l\"")
20+
system ("ls")
21-
system ("byacc -d -o \"src/parser.c\" \"src/parser.y\"")
21+
print("\x1b[0;32mIf zmap is not listed above, you messed up!\x1b[0m")