#!/usr/bin/python3.5
#-*- coding: utf-8 -*-

# Automação de tarefas em sistemas unix
# Non Comercial Purposes License
# NÂO RETIRAR OS CREDITOS!
# Script Open Source | Autor: d3str0 | Telegram: @phoenix_burning
# Veja mais dos meus scripts no github: https://github.com/d3str0h4x



import time
import os
import subprocess
import sys
import socket


banner = '''

███████╗██╗  ██╗███████╗██╗     ██╗      ██████╗ ██╗    ██╗███╗   ██╗███████╗██████╗ 
██╔════╝██║  ██║██╔════╝██║     ██║     ██╔═████╗██║    ██║████╗  ██║██╔════╝██╔══██╗
███████╗███████║█████╗  ██║     ██║     ██║██╔██║██║ █╗ ██║██╔██╗ ██║█████╗  ██║  ██║
╚════██║██╔══██║██╔══╝  ██║     ██║     ████╔╝██║██║███╗██║██║╚██╗██║██╔══╝  ██║  ██║
███████║██║  ██║███████╗███████╗███████╗╚██████╔╝╚███╔███╔╝██║ ╚████║███████╗██████╔╝
╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝  ╚══╝╚══╝ ╚═╝  ╚═══╝╚══════╝╚═════╝ 
                                                                                     

'''

skull = '''	                .xx"""" """$$$$be.
                   -"           ^""**$$$e.
                 ."       ENJOY!!     '$$$c
                /      Coded by d3str0 "4$$b
               d  3                      $$$$
               $  *                   .$$$$$$
              .$  ^c           $$$$$e$$$$$$$$.
              d$L  4.         4$$$$$$$$$$$$$$b
              $$$$b ^ceeeee.  4$$ECL.F*$$$$$$$
  e$""=.      $$$$P d$$$$F $ $$$$$$$$$- $$$$$$
 z$$b. ^c     3$$$F "$$$$b   $"$$$$$$$  $$$$*"      .=""$c
4$$$$L        $$P"  "$$b   .$ $$$$$...e$$        .=  e$$$.
^*$$$$$c  %..   *c    ..    $$ 3$$$$$$$$$$eF     zP  d$$$$$
  "**$$$ec   "   %ce""    $$$  $$$$$$$$$$*    .r" =$$$$P""
        "*$b.  "c  *$e.    *** d$$$$$"L$$    .d"  e$$***"
          ^*$$c ^$c $$$      4J$$$$$% $$$ .e*".eeP"
             "$$$$$$"'$=e....$*$$**$cz$$" "..d$*"
               "*$$$  *=%4.$ L L$ P3$$$F $$$P"
                  "$   "%*ebJLzb$e$$$$$b $P"
                    %..      4$$$$$$$$$$ "
                     $$$e   z$$$$$$$$$$%
                      "*$c  "$$$$$$$P"
                       ."""*$$$$$$$$bc
                    .-"    .$***$$$"""*e.
                 .-"    .e$"     "*$c  ^*b.
          .=*""""    .e$*"          "*bc  "*$e..
        .$"        .z*"               ^*$e.   "*****e.
        $$ee$c   .d"                     "*$.        3.
        ^*$E")$..$"                         *   .ee==d%
           $.d$$$*                           *  J$$$e*
            """""                              "$$$"
'''
green = '\033[1;32m'
blue  = '\033[34m' 
purple  = '\033[35m' 
red = '\033[31m'
options = '''
1 Metasploit
2 Neofetch
3 Editar repositorios
4 Atualizar sistema
1337 INFO
3301 HELP
99 sair'''
sep = "-"
info = ''' 
Projeto: Shellowned 
Autor: d3str0 
Telegram: @phoenix_burning 
Veja mais dos meus scripts no github: https://github.com/d3str0h4x'''
description = "Automação_de_comandos unix\n"
help = (green+"type '3301' for tutorial")
time.sleep(2)


def init():
	os.system('clear')
	print(green+banner)
	time.sleep(3)
	print(red+skull)
	time.sleep(2)
	os.system('clear')
	print(purple+description)
	print(red+'---------------------------------------')
	print(blue+help)
	print(red+'---------------------------------------')
	while True:
		print(blue+options)
		y = input(purple+'Escolha uma opção: ')
		if y == '1':
			os.system('clear')
			print(green+'Executando Metasploit Framework..')
			os.system('sudo msfconsole')
		elif y == '2':
			os.system('clear')
			os.system('neofetch')
		elif y == '3':
			print(green+'Abrindo lista de repositorios..')
			time.sleep(2)
			os.system('sudo nano /etc/apt/sources.list')
		elif y == '4':
			print(green+'Atualizando seu sistema..')
			os.system('sudo apt-get update -y && sudo apt-get upgrade -y')
		elif y == '1337':
			print(green+sep+info)
		elif y == '3301':
			os.system('clear')
			print('Escolha uma opção inserindo os numeros correspodentes')
			print(green+"Para sair digite '99'")
		elif y == '99':
			break
			os.system('exit')
		else:
			print(red+'invalid option')


init()
