Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import requests
- import time
- from time import sleep
- import datetime
- ###########################
- today = datetime.datetime.today()
- t = today.strftime("%H:%M:%S")
- ###########################
- class colors:
- R = "\033[31;1m"
- G = "\033[32;1m"
- W = "\033[37;1m"
- C = "\033[36;1m"
- Y = "\033[0;33m"
- def clear():
- os.system("cls" if os.name == "nt" else "reset")
- def banner():
- menu = """
- \033[0;31m============================================================
- \033[0;31m============================================================
- \033[0;32m
- ____ ________ __
- / __ \_________ _ ____ __ / ____/ /_ ___ _____/ /__
- / /_/ / ___/ __ \| |/_/ / / / / / / __ \/ _ \/ ___/ //_/
- / ____/ / / /_/ /> </ /_/ / / /___/ / / / __/ /__/ ,<
- /_/ /_/ \____/_/|_|\__, / \____/_/ /_/\___/\___/_/|_|
- /____/
- \033[0;31m+============================================================
- \033[37;1m[\033[0;33m+\033[37;1m] Nome:\033[0;32m ProxyCheck
- \033[37;1m[\033[0;33m+\033[37;1m] Desenvolvedor:\033[0;32m Yusuke
- \033[37;1m[\033[0;33m+\033[37;1m] Versão:\033[0;32m 1.0
- \033[37;1m[\033[0;33m+\033[37;1m] Github:\033[0;32m https://github.com/yusukedev
- \033[0;31m+============================================================
- """
- print(menu)
- clear()
- banner()
- site = input("{}[{}?{}] Informe uma url: ".format(colors.W, colors.Y, colors.W))
- lista = input("{}[{}?{}] Informe lista de proxy: ".format(colors.W, colors.Y, colors.W))
- lista = open(lista, 'r').readlines()
- lista = [linha.replace('\n', '') for linha in lista]
- time = int(input("{}[{}?{}] Informe um tempo de resposta(ex:15): ".format(colors.W, colors.Y, colors.W)))
- if site == "":
- site = "http://google.com"
- else:
- site = site
- print("")
- print("{}[{}*{}] Quantidade de proxy a ser checadas:{} {}".format(colors.W, colors.Y, colors.W, "\033[0;32m", len(lista)))
- print("{}[{}*{}] Iniciando checagem...".format(colors.W, colors.Y, colors.W))
- print("")
- sleep(0.5)
- g = 0
- for linha in lista:
- url = site
- try:
- req = requests.get(url, proxies={"http":"http://"+linha}, timeout=(time))
- if req.status_code == 200:
- print(" {}[{}{}{}] Working:{} {}".format(colors.W, colors.Y, t, colors.W, colors.G, linha))
- g += 1
- god = open('god.txt', 'a')
- god.writelines('{} \n'.format(linha))
- else:
- print(" {}[{}{}{}] Bad Proxy:{} {}".format(colors.W, colors.Y, t, colors.W, colors.R, linha))
- except:
- print(" {}[{}{}{}] Bad Proxy:{} {}".format(colors.W, colors.Y, t, colors.W, colors.R, linha))
- print("")
- print("{}[{}+{}] Checagem finalizada.".format(colors.W, colors.Y, colors.W))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement