Advertisement
ericpedra

proxychecker.py

Feb 22nd, 2019
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.41 KB | None | 0 0
  1. #!/usr/bin/python2
  2. # -*- coding: utf-8 -*-
  3. # EH BOCAH RECODER MINGGIR GUNAKAN AJA NAPA TOLOL
  4. #CODED ERIC PEDRA
  5. #https://www.facebook.com/Ahmad.AI.Ghazali
  6. #22 FEBUARI 2019
  7.  
  8.  
  9. #  IMPORTS
  10. import requests
  11. import time
  12. import py_compile
  13. from api import *
  14. from colorama import Fore
  15. from colorama import Style
  16. from pprint import pprint
  17. from colorama import init
  18. init(autoreset=True)
  19.  
  20. #  COLORAMA COLORS
  21. rd = Fore.RED
  22. cy = Fore.CYAN
  23. wh = Fore.WHITE
  24. gr = Fore.GREEN
  25. yl = Fore.YELLOW
  26. mg = Fore.MAGENTA
  27. bl = Fore.BLACK
  28.  
  29. #----------------TEMPAT INFO KU -------------
  30. coded   = "Coded Eric Pedra"
  31. api     = "FULL API "
  32. version = "PROGRAMMED PYTHON2."
  33. contact = "erikpedraz10@gmail.com"
  34.  
  35. #-----------------TIME/ WATKTU ------------------
  36. wew = time.strftime('[%A,%d %B %Y]')
  37. wow = time.strftime('%H:%M:%S %p')
  38.  
  39. #-------------TEMPAT BIAR GK BISA RECODER -----------------
  40. py_compile.compile('api.py')
  41.  
  42.  
  43. print  '''
  44.  _____                        _____ _               _            
  45. |  __ \                     / ____| |             | |            
  46. | |__) | __ _____  ___   _  | |    | |__   ___  ___| | _____ _ __
  47. |  ___/ '__/ _ \ \/ / | | | | |    | '_ \ / _ \/ __| |/ / _ \ '__|
  48. | |   | | | (_) >  <| |_| | | |____| | | |  __/ (__|   <  __/ |  
  49. |_|   |_|  \___/_/\_\\__, |  \_____|_| |_|\___|\___|_|\_\___|_|  
  50.                       __/ |                                      
  51.                      |___/                                    
  52. [{0}+{1}] {6}
  53. [{0}+{1}] {5}
  54. [{0}!{1}] {4}
  55. [{0}*{1}] {2}
  56. [{0}*{1}] {3}
  57. '''.format(rd, wh, wew, wow, version, api,coded, contact)
  58.  
  59. print ""
  60. #----------INPUT TEXT---------
  61. list = raw_input('{} {}[!] Masukkan Proxy.TXT '.format(gr, gr) ) #OPEN YOUR PROXY TEXT (BUKA PROXY ANDA GOBLOK)
  62. print ""
  63. file = open(list,'r').readlines()
  64. list_len = str(len(file))
  65. print '{} {}[!] '.format(rd, rd) + 'TOTAL PROXY ANDA '.format(gr, gr) + list_len + '\n'
  66. count = 0
  67. for item in open(list,'r'):
  68.     count+=1
  69.     proxy = item.strip()
  70.     proxies = {
  71.         'https': proxy
  72.     }
  73.     try:
  74.         req = requests.get(url, proxies=proxies)
  75.         # //DONE
  76.         print '{} {}[+] '.format(rd, rd) + '(' + str(count) + ') ' + proxy + ' => [ + DIE + ]'.format(rd, rd)
  77.     except:
  78.         print '{} {}[+] '.format(gr, gr) + '(' + str(count) + ') ' + proxy + ' => [ + LIVE + ]'.format(gr, gr)
  79.         valid = open('LIVE-PROXIES.txt', 'a+')
  80.         valid.write('[+] [ ' + proxy + ' ] => [ + LIVE + ] \n')
  81.         valid.close()
  82.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement