Advertisement
Lewster7

Domain Grabber

May 18th, 2022
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.79 KB | None | 0 0
  1. import requests, os, sys, time, re
  2. from colorama import Fore, Style
  3. from concurrent.futures import ThreadPoolExecutor, as_completed
  4.    
  5. linux = 'clear'
  6. windows = 'cls'
  7. os.system([linux,windows][os.name == 'nt'])
  8.  
  9. hijau = Fore.GREEN
  10. cyan = Fore.CYAN
  11. biru = Fore.BLUE
  12. batas = Style.RESET_ALL
  13.  
  14. print(cyan)
  15. print('''
  16.  
  17. ██████╗  ██████╗ ███╗   ███╗ █████╗ ██╗███╗   ██╗     ██████╗ ██████╗  █████╗ ██████╗
  18. ██╔══██╗██╔═══██╗████╗ ████║██╔══██╗██║████╗  ██║    ██╔════╝ ██╔══██╗██╔══██╗██╔══██╗
  19. ██║  ██║██║   ██║██╔████╔██║███████║██║██╔██╗ ██║    ██║  ███╗██████╔╝███████║██████╔╝
  20. ██║  ██║██║   ██║██║╚██╔╝██║██╔══██║██║██║╚██╗██║    ██║   ██║██╔══██╗██╔══██║██╔══██╗
  21. ██████╔╝╚██████╔╝██║ ╚═╝ ██║██║  ██║██║██║ ╚████║    ╚██████╔╝██║  ██║██║  ██║██████╔╝
  22. ╚═════╝  ╚═════╝ ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝     ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝
  23.                                                                                      
  24.                       Grab by Extension & Unlimited Page
  25.  
  26. Coder : Dodi Lorentz
  27. Web : https://dodilorentz.tech
  28. ''')
  29. class Login:
  30.     def __init__(self, lic):
  31.         self.lic = "LEWS1377"
  32.  
  33.     def authenticate(self):
  34.         if (self.lic == loglic):
  35.             print (cyan+"\nLisensi Valid")
  36.         else:
  37.             exit()
  38. log = Login("")
  39. loglic= input(hijau+"Masukkan License => ")
  40.  
  41. log.authenticate()
  42.  
  43. print(cyan+"Please Wait.....")
  44. time.sleep(15)
  45.  
  46. linux = 'clear'
  47. windows = 'cls'
  48. os.system([linux,windows][os.name == 'nt'])
  49. print(cyan)
  50. print('''
  51.  
  52. ██████╗  ██████╗ ███╗   ███╗ █████╗ ██╗███╗   ██╗     ██████╗ ██████╗  █████╗ ██████╗
  53. ██╔══██╗██╔═══██╗████╗ ████║██╔══██╗██║████╗  ██║    ██╔════╝ ██╔══██╗██╔══██╗██╔══██╗
  54. ██║  ██║██║   ██║██╔████╔██║███████║██║██╔██╗ ██║    ██║  ███╗██████╔╝███████║██████╔╝
  55. ██║  ██║██║   ██║██║╚██╔╝██║██╔══██║██║██║╚██╗██║    ██║   ██║██╔══██╗██╔══██║██╔══██╗
  56. ██████╔╝╚██████╔╝██║ ╚═╝ ██║██║  ██║██║██║ ╚████║    ╚██████╔╝██║  ██║██║  ██║██████╔╝
  57. ╚═════╝  ╚═════╝ ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝     ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝
  58.                                                                                      
  59.                       Grab by Extension & Unlimited Page
  60.  
  61. Coder : Dodi Lorentz
  62. Web : https://dodilorentz.tech
  63. ''')
  64. print(batas)
  65. ext = input(hijau+"Ext (com/org/net) => ")
  66. page = input(hijau+"Page => ")
  67. print(batas)
  68.  
  69. for page in range(1,int(page)):
  70.  
  71.     headers = {'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'}
  72.     req = requests.get('https://www.sitesinformation.com/country/'+ext+'/'+str(page), headers=headers).content.decode('utf-8')
  73.     rex = re.findall('<a href="(.*?)">', req)
  74.  
  75.     for i in rex:
  76.         if 'https://www.sitesinformation.com/' in rex:
  77.             pass
  78.         elif 'extension/' in i:
  79.             pass
  80.         elif 'country/' in i:
  81.             pass
  82.         elif 'pricing/' in i:
  83.             pass
  84.         else:
  85.             rp = i.replace('/site/','').replace('/','').replace('" target="_blank','')
  86.             print(cyan)
  87.             print("Grab => ", rp)
  88.             result = open('result.txt', 'a').write(str(rp)+'\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement