LoveHecate

[PYTHON] Installer v1

Jul 23rd, 2017
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.97 KB | None | 0 0
  1. #!/usr/bin/python
  2. #Installer For OS
  3. #Coded By: Love Hecate
  4.  
  5. import subprocess, time
  6.  
  7. def system(cmd):
  8.    subprocess.call(cmd, shell=True)
  9.  
  10. print ("\x1b[0;32m    _    _                                                        ")
  11. print ("\x1b[0;32m   (o)--(o)                                                       ")
  12. print ("\x1b[0;32m  /.______.\  \x1b[0m[\x1b[0;34m1\x1b[0m] Centos Installs -------")
  13. print ("\x1b[0;32m  \________/   \x1b[0m[\x1b[1;35m2\x1b[0m] Ubuntu Installs -------")
  14. print ("\x1b[0;32m ./        \.  \x1b[0m[\x1b[1;33m3\x1b[0m] LRAB Installs ---------")
  15. print ("\x1b[0;32m( .        , ) \x1b[0m[\x1b[1;36m4\x1b[0m] Centos Zmap Installs --")
  16. print ("\x1b[0;32m \ \_\\\//_/ /  \x1b[0m[\x1b[0;31m5\x1b[0m] Ubuntu Zmap Installs --")
  17. print ("\x1b[0;32m  ~~  ~~  ~~   \x1b[0m[\x1b[0;32m6\x1b[0m] Make Sure Net Is Stable")
  18. try:
  19.  option = input ("Enter Option: ")
  20.  
  21.  if option == 1:
  22.   print ("INSTALLING CENTOS PACKAGES")
  23.   system ("yum update -y")
  24.   system ("yum upgrade -y")
  25.   system ("yum install cpan wget curl glibc.i686 -y")
  26.   system ("yum install gcc php-devel php-pear libssh2 libssh2-devel libpcap -y")
  27.   system ("yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y")
  28.   system ("yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y")
  29.   system ("yum install epel-release -y")
  30.   system ("yum install gengetopt -y")
  31.   system ("yum install httpd -y")
  32.   system ("service httpd start")
  33.   system ("yum install xinetd tftp tftp-server -y")
  34.   system ("yum install vsftpd -y; yum install screen -y")
  35.   system ("service vsftpd start")
  36.   system ("service xinetd start")
  37.   system ("service vsftpd restart")
  38.   system ("service xinetd restart")
  39.   system ("service httpd restart")
  40.   print ("Done Coded By: Love Hecate")
  41.  
  42.  
  43.  elif option == 2:
  44.   system ("apt-get update -y")
  45.   system ("apt-get upgrade -y")
  46.   system ("apt-get install cpan wget curl glibc.i686 -y")
  47.   system ("apt-get install gcc php-pear php-devel libssh2 libssh2-devel libpcap -y")
  48.   system ("apt-get update -y; apt-get install zmap nmap python perl")
  49.   system ("apt-get install python-paramiko gcc screen dos2unix zip unzip nano wget apache2 -y")
  50.   system ("apt-get install python perl python-paramiko nano gcc screen -y")
  51.   print ("Done Coded By: Love Hecate: ")
  52.  
  53.  
  54.  
  55.  elif option == 3:
  56.   print ("INSTALLING LRAB MAKE SURE YOU PRESS ENTER FOR A COUPLE")
  57.   system ("yum update -y")
  58.   system ("apt-get update -y")
  59.   system ("yum upgrade -y")
  60.   system ("apt-get upgrade -y")
  61.   system ("yum install cpan wget curl glibc.i686 -y")
  62.   system ("apt-get install cpan wget curl glibc.i686 -y")
  63.   system ("cpan force install CPAN")
  64.   system ("cpan force install Parallel::ForkManager")
  65.   system ("cpan force install IO::Socket")
  66.   system ("cpan force install IO::Select")
  67.   system ("yum install gcc php-devel php-pear libssh2 libssh2-devel libpcap -y")
  68.   system ("apt-get install gcc php-pear php-devel libssh2 libssh2-devel libpcap -y")
  69.   system ("pecl install -f ssh2")
  70.   system ("touch /etc/php.d/ssh2.ini")
  71.   system ("echo extension=ssh2.so > /etc/php.d/ssh2.ini")
  72.   system ("cpan force install Net::SSH2")
  73.   system ("ulimit -n 999999")
  74.   print ("Done Coded By: Love Hecate")
  75.  
  76.  
  77.  elif option == 4:
  78.   print  ("INSTALLING ZMAP FOR CENTOS")
  79.   system ('''echo -e "\x1b[1;34m"
  80.  yum update -y
  81.  echo -e "\x1b[1;32m"
  82.  yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y
  83.  echo -e "\x1b[1;35m"
  84.  yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y
  85.  echo -e "\x1b[1;31m"
  86.  yum install epel-release -y
  87.  echo -e "\x1b[1;33m"
  88.  yum install gengetopt -y
  89.  wget https://github.com/zmap/zmap/archive/v2.1.0.tar.gz
  90.  tar -xvf v2.1.0.tar.gz
  91.  cd zmap-2.1.0
  92.  flex -o "src/lexer.c" --header-file="src/lexer.h" "src/lexer.l"
  93.  byacc -d -o "src/parser.c" "src/parser.y"
  94.  mkdir /etc/zmap
  95.  cp conf/* /etc/zmap
  96.  cmake -DENABLE_HARDENING=ON
  97.  make
  98.  make install
  99.  echo -e "\x1b[0;31m"''')
  100.   print ("Done Coded By: Love Hecate")
  101.  
  102.  
  103.  elif option == 5:
  104.   print  ("INSTALLING ZMAP FOR UBUNTU")
  105.   system ("apt-get update -y; apt-get install zmap nmap python perl python-paramiko gcc screen dos2unix zip unzip nano wget apache2 -y")
  106.   print  ("Done Coded By: Love Hecate")
  107.  
  108.  
  109.  elif option == 6:
  110.   print  ("MAKING SURE THIS SHIT IS STABLE")
  111.   system ("service iptables stop")
  112.   system ("service httpd restart")
  113.   system ("ulimit -n 99999")
  114.   system ("sed -i 's/1024/9999999/g' /usr/include/bits/typesizes.h")
  115.   file = open("/proc/sys/fs/file-max", "w")
  116.   file.write ("999999999999999999")
  117.   file.close()
  118.   print ("Done Coded By: Love Hecate")
  119.  
  120. except KeyboardInterrupt:
  121.   system ("clear")
  122.   print ("\x1b[1;35m    _    (^)")
  123.   print ("   (_\  |_|")
  124.   print ("    \_\ |_|")
  125.   print ("    _\_\,/_|")
  126.   print ("   (`\(_|`\|")
  127.   print ("  (`\,)  \ \'")
  128.   print ("   \,)   | |")
  129.   print ("     \__(__|\x1b[0m")
  130.   print ("Wow... You're a slut whatever BYE!")
  131.   print ("\n")
Advertisement
Add Comment
Please, Sign In to add comment