Advertisement
Guest User

Phising

a guest
Aug 10th, 2019
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.85 KB | None | 0 0
  1. # coding: utf-8
  2. # usuage : python file.py site.txt
  3.  
  4. import requests, sys
  5. from time import time as timer
  6. from multiprocessing.dummy import Pool as ThreadPool
  7.  
  8. try:
  9.     with open(sys.argv[1], 'r') as f:
  10.         woh = f.read().splitlines()
  11. except IOError:
  12.     pass
  13. woh = list((woh))
  14.  
  15. def redpage(url):
  16.  
  17.     try:
  18.  
  19.         req_check = requests.get(url, verify=False)
  20.  
  21.         if 'example for detect ' in req_check.content:
  22.             print ('[Your Site Is Detect Malicious Site]   ===>   '+url)
  23.         else:
  24.             print ('[Your Site Clean]   ===>   '+url)
  25.  
  26.     except:
  27.         pass
  28.  
  29. def checking(url):
  30.  
  31.     try:
  32.         redpage(url)
  33.     except:
  34.         pass
  35.  
  36. def Main():
  37.     try:
  38.         start = timer()
  39.         pp = ThreadPool(25)
  40.         pr = pp.map(checking, woh)
  41.         print('Time: ' + str(timer() - start) + ' seconds')
  42.     except:
  43.         pass
  44.  
  45.  
  46. if __name__ == '__main__':
  47.     Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement