Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #Installer For OS
- #Coded By: Love Hecate
- import subprocess, time
- def system(cmd):
- subprocess.call(cmd, shell=True)
- print ("\x1b[0;32m _ _ ")
- print ("\x1b[0;32m (o)--(o) ")
- print ("\x1b[0;32m /.______.\ \x1b[0m[\x1b[0;34m1\x1b[0m] Centos Installs -------")
- print ("\x1b[0;32m \________/ \x1b[0m[\x1b[1;35m2\x1b[0m] Ubuntu Installs -------")
- print ("\x1b[0;32m ./ \. \x1b[0m[\x1b[1;33m3\x1b[0m] LRAB Installs ---------")
- print ("\x1b[0;32m( . , ) \x1b[0m[\x1b[1;36m4\x1b[0m] Centos Zmap Installs --")
- print ("\x1b[0;32m \ \_\\\//_/ / \x1b[0m[\x1b[0;31m5\x1b[0m] Ubuntu Zmap Installs --")
- print ("\x1b[0;32m ~~ ~~ ~~ \x1b[0m[\x1b[0;32m6\x1b[0m] Make Sure Net Is Stable")
- try:
- option = input ("Enter Option: ")
- if option == 1:
- print ("INSTALLING CENTOS PACKAGES")
- system ("yum update -y")
- system ("yum upgrade -y")
- system ("yum install cpan wget curl glibc.i686 -y")
- system ("yum install gcc php-devel php-pear libssh2 libssh2-devel libpcap -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 ("yum install httpd -y")
- system ("service httpd start")
- system ("yum install xinetd tftp tftp-server -y")
- system ("yum install vsftpd -y; yum install screen -y")
- system ("service vsftpd start")
- system ("service xinetd start")
- system ("service vsftpd restart")
- system ("service xinetd restart")
- system ("service httpd restart")
- print ("Done Coded By: Love Hecate")
- elif option == 2:
- system ("apt-get update -y")
- system ("apt-get upgrade -y")
- system ("apt-get install cpan wget curl glibc.i686 -y")
- system ("apt-get install gcc php-pear php-devel libssh2 libssh2-devel libpcap -y")
- system ("apt-get update -y; apt-get install zmap nmap python perl")
- system ("apt-get install python-paramiko gcc screen dos2unix zip unzip nano wget apache2 -y")
- system ("apt-get install python perl python-paramiko nano gcc screen -y")
- print ("Done Coded By: Love Hecate: ")
- elif option == 3:
- print ("INSTALLING LRAB MAKE SURE YOU PRESS ENTER FOR A COUPLE")
- system ("yum update -y")
- system ("apt-get update -y")
- system ("yum upgrade -y")
- system ("apt-get upgrade -y")
- system ("yum install cpan wget curl glibc.i686 -y")
- system ("apt-get install cpan wget curl glibc.i686 -y")
- system ("cpan force install CPAN")
- system ("cpan force install Parallel::ForkManager")
- system ("cpan force install IO::Socket")
- system ("cpan force install IO::Select")
- system ("yum install gcc php-devel php-pear libssh2 libssh2-devel libpcap -y")
- system ("apt-get install gcc php-pear php-devel libssh2 libssh2-devel libpcap -y")
- system ("pecl install -f ssh2")
- system ("touch /etc/php.d/ssh2.ini")
- system ("echo extension=ssh2.so > /etc/php.d/ssh2.ini")
- system ("cpan force install Net::SSH2")
- system ("ulimit -n 999999")
- print ("Done Coded By: Love Hecate")
- elif option == 4:
- print ("INSTALLING ZMAP FOR CENTOS")
- system ('''echo -e "\x1b[1;34m"
- yum update -y
- echo -e "\x1b[1;32m"
- yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y
- echo -e "\x1b[1;35m"
- yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y
- echo -e "\x1b[1;31m"
- yum install epel-release -y
- echo -e "\x1b[1;33m"
- 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 -e "\x1b[0;31m"''')
- print ("Done Coded By: Love Hecate")
- elif option == 5:
- print ("INSTALLING ZMAP FOR UBUNTU")
- system ("apt-get update -y; apt-get install zmap nmap python perl python-paramiko gcc screen dos2unix zip unzip nano wget apache2 -y")
- print ("Done Coded By: Love Hecate")
- elif option == 6:
- print ("MAKING SURE THIS SHIT IS STABLE")
- system ("service iptables stop")
- system ("service httpd restart")
- system ("ulimit -n 99999")
- system ("sed -i 's/1024/9999999/g' /usr/include/bits/typesizes.h")
- file = open("/proc/sys/fs/file-max", "w")
- file.write ("999999999999999999")
- file.close()
- print ("Done Coded By: Love Hecate")
- except KeyboardInterrupt:
- system ("clear")
- print ("\x1b[1;35m _ (^)")
- print (" (_\ |_|")
- print (" \_\ |_|")
- print (" _\_\,/_|")
- print (" (`\(_|`\|")
- print (" (`\,) \ \'")
- print (" \,) | |")
- print (" \__(__|\x1b[0m")
- print ("Wow... You're a slut whatever BYE!")
- print ("\n")
Advertisement
Add Comment
Please, Sign In to add comment