From 44c40d01289215d076cfb6d68a362e32560b3fcb Mon Sep 17 00:00:00 2001 From: Bruno Parziovanni <70079144+Kiny-Kiny@users.noreply.github.com> Date: Wed, 18 Aug 2021 22:15:18 -0300 Subject: [PATCH] Delete main-old.py --- main-old.py | 140 ---------------------------------------------------- 1 file changed, 140 deletions(-) delete mode 100644 main-old.py diff --git a/main-old.py b/main-old.py deleted file mode 100644 index 0c12f3f..0000000 --- a/main-old.py +++ /dev/null @@ -1,140 +0,0 @@ -global R,B,C,Y,G,RT,CY,CO -CO='\033[m';R='\033[1;31m';B='\033[1;34m';C='\033[1;37m';CY='\033[1;36m';Y='\033[1;33m';G='\033[1;32m';RT='\033[;0m';NO_FORMAT="\033[0m";C_GREY89="\033[38;5;254m";C_RED1="\033[48;5;196m" -####################### -## RECODADO POR YATO ## -####################### - -# Chave PIX: (61) 9603-5417 - -def restart(): - python = sys.executable - os.execl(python, python, *sys.argv) - -import os,sys,time,json,subprocess,platform -try: - import requests,random,json,phonenumbers -except: - choice = input(f'{C}{G}[i]{C} Vejo que é sua primeira vez aqui,\n Deseja instalar o software necessário?\n1-Sim\n2-Não\n_') - if choice: - os.system("apt install figlet curl -y") - os.system('python3 -m pip install --upgrade pip') - os.system('pip3 install requests pytube phonenumbers') - else: - print(f'Ok,instale por si ou isso é um adeus.');exit() - restart() - -try: - from data import cpf,ui,ip,cnpj,placa,crm,cep,numero, license, nome, email, rg, numero2, nome2, cpf3, cpf4, cep2 - from data import covid as covid19 - from data import bin as bina - from data import cpf_2 as cpf2 - from data import banco as banks -except Exception as error: - print(f'{C}{R}[*]{C} Erro: ' + str(error));exit() - -def clear(): - os.system('cls');os.system('clear') - -requests = requests.Session();result = os.popen('figlet KINY').read() - -try: - if __name__ == '__main__': - ui.dialog('Buscando atualizações ...') - update = subprocess.check_output('git pull', shell=True) - if 'Already up to date' not in update.decode(): - ui.dialog('Atualização instalada.\nReiniciando o painel.') - restart() - else: - print(f'{C}[{Y}i{C}] Nenhuma atualizacao disponivel.') - time.sleep(2) -except: - if os.path.exists('.git'): - pass - else: - ui.error_dialog('Falta de repositório GIT local') - -try: - subprocess.check_output('apt update -y', shell=True) - os.system("apt install figlet curl -y") -except: - os.system("pacman -Sy figlet curl") -Sair = False -while(Sair == False): - try: - op = int(ui.menu(f'BUSCADOR DE CEP\nCONSULTAR IP\nCONSULTA DE CNPJ\nCONSULTA BANCARIA\nCONSULTA CPF {C}[{R}OFF{C}]\nCONSULTA PLACA\nCONSULTA CRM\nCONSULTA DE NUMERO\nCONSULTA BIN\nGERAR PESSOA\nMOSTRAR MEU IP\nCOVID19\nCONSULTAR MÃE {C}[{R}OFF{C}]\nCONSULTAR NOME {C}[{R}OFF{C}]\nCONSULTA DE EMAIL {C}[{R}OFF{C}]\nCCONSULTAR RG{C}[{R}OFF{C}]\nFERRAMENTAS::LICENSE\nAtualizar\nSair')) - except: - ui.error_dialog('Caracteres não reconhecidos');op=None - ui.clear() - - if op == 1: - choice = ui.menu(f'CEP 1{C}[{R}OFF{C}]\nCEP 2{C}[{G}ON{C}]') - if choice == '1': - cep2.consultar() - elif choice =='2': - cep.consultar() - else: - ui.error_dialog() - elif op == 2: - ip.consultar() - elif op == 3: - cnpj.consultar() - elif op == 4: - banks.consultar() - elif op == 5: - choice = ui.menu(f'CPF 1{C}[{R}OFF{C}]\nCPF 2{C}[{R}OFF{C}]\nCPF 3{C}[{R}OFF{C}]\nCPF 4{C}[{R}OFF{C}]') - if choice == '1': - cpf.consultar() - elif choice == '2': - cpf2.consultar() - elif choice=='3': - cpf3.consultar() - elif choice =='4': - cpf4.consultar() - else: - ui.error_dialog() - elif op == 6: - placa.consultar() - elif op == 7: - crm.consultar() - elif op == 8: - choice = ui.menu(f'Numero 1{C}[{R}OFF{C}]\nNumero 2{C}[{R}OFF{C}]') - if choice == '1': - numero.consultar() - elif choice =='2': - numero2.consultar() - else: - ui.error_dialog() - elif op == 9: - bina.consultar() - elif op == 10: - ui.error_dialog('A consulta está desativada por falta de API.') #gerar pessoa - elif op == 11: - ip.consultar('25d800a8b8e8b99d77c809567aa291b8',1) #mostrar IP - elif op == 12: - covid19.consultar() # nCOVID19 - elif op == 13: - ui.error_dialog('A consulta está desativada por falta de API.') # MAE - elif op == 14: - choice = ui.menu(f'Nome 1{C}[{G}ON{C}]\nNome 2{C}[{R}OFF{C}]') - if choice == '1': - nome.consultar()# NOME - elif choice == '2': - nome2.consultar() - else: - ui.error_dialog() - elif op == 15: - email.consultar() # EMAIL - elif op == 16: - rg.consultar() - elif op == 17: #Ferramentas - ui.dialog('Em construção,\n Aguardem.') - elif op == 18: - license.show() - elif op == 19: #Atualizar painel - os.popen('cd data && bash update.sh');ui.dialog('Reiniciando o painel...');ui.restart() - elif op == 20: - Sair = True - elif op == None: - ui.easter_egg() - else: - ui.error_dialog('Opção incorreta')