Advertisement
Fadly31337

Zone H Grabber (Archive & onhold)

Oct 23rd, 2020 (edited)
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.92 KB | None | 0 0
  1. # Coded by Fadly 31337
  2.  
  3. import requests, httplib, urllib, urllib3, urllib2, codecs
  4. import os, sys, time, re, threading, socket, datetime, random
  5. from urllib import urlopen as o
  6. from platform import system
  7. from multiprocessing.dummy import Pool
  8. from time import time as timer
  9. from random import sample as rand
  10. from colorama import Fore                              
  11. from colorama import Style                             
  12. from colorama import init
  13. from pprint import pprint
  14. from urlparse import urlparse                                  
  15. from requests.packages.urllib3.exceptions import InsecureRequestWarning
  16. url = "http://zone-h.org/archive/notifier="
  17. urll = "http://zone-h.org/archive/published=0"
  18. def banner():
  19.     print("""
  20. _____         ______      ____           _     _               _
  21. | ____|_______|__  / |__  / ___|_ __ __ _| |__ | |__   ___ _ __| |
  22. |  _| |_  /_  / / /| '_ \| |  _| '__/ _` | '_ \| '_ \ / _ \ '__| |
  23. | |___ / / / / / /_| | | | |_| | | | (_| | |_) | |_) |  __/ |  |_|
  24. |_____/___/___/____|_| |_|\____|_|  \__,_|_.__/|_.__/ \___|_|  (_)
  25.             Zone H Grabber (Archive and Onhold)
  26. """)
  27. def zoneh():
  28.     print("[01] Grab site (archive)\n[02] Grab site (onhold)")
  29.     sec = int(raw_input("Choose a number: "))
  30.     if sec == 1 or sec == 01:
  31.         notf = raw_input("Notifier: ")
  32.         fadlygans = raw_input("PHPSESSID: ")
  33.         fadlygans2 = raw_input("ZHE: ")
  34.         my_cook = {
  35.             "ZHE" : fadlygans2,
  36.             "PHPSESSID" : fadlygans
  37.                 }
  38.         for i in range(1, 51):
  39.             dz = requests.get(url + notf +"/page=" + str(i), cookies=my_cook)
  40.             dzz = dz.content
  41.             print(url + notf +"/page=" + str(i))
  42.             if '<html><body>-<script type="text/javascript"' in dzz:
  43.                 print("[!] Change your cookies beb!")
  44.                 sys.exit()
  45.             elif '<input type="text" name="captcha" value=""><input type="submit">' in dzz:
  46.                 print("[!] Captcha detected!")
  47.                 sys.exit() 
  48.             else:
  49.                 Hunt_urls = re.findall('<td>(.*)\n</td>', dzz)
  50.                 if '/mirror/id/' in dzz:
  51.                     for xx in Hunt_urls:
  52.                         qqq = xx.replace('...','')
  53.                         print '[+] ' + qqq.split('/')[0]
  54.                         with open(notf + '.txt', 'a') as rr:
  55.                             rr.write("http://" + qqq.split('/')[0] + '\n')
  56.                 else:
  57.                     print("[!] Grab site completed!")
  58.                     sys.exit()
  59.                    
  60.     elif sec == 2 or sec == 02:
  61.         fadlygans = raw_input("PHPSESSID: ")
  62.         fadlygans2 = raw_input("ZHE: ")
  63.         my_cook = {
  64.             "ZHE" : fadlygans2,
  65.             "PHPSESSID" : fadlygans
  66.                 }
  67.         for qwd in range(1, 51):
  68.             rb = requests.get(urll + "/page=" + str(qwd) , cookies=my_cook)
  69.             dzq = rb.content
  70.  
  71.             if '<html><body>-<script type="text/javascript"' in dzq:
  72.                 print("[!] Change your cookies njink!")
  73.                 sys.exit()
  74.                
  75.             elif "captcha" in dzq:
  76.                 print("[!] Captcha detected!")
  77.             else:
  78.                 Hunt_urlss = re.findall('<td>(.*)\n</td>', dzq)
  79.                 for xxx in Hunt_urlss:
  80.                     qqqq = xxx.replace('...','')
  81.                     print '[+]' + qqqq.split('/')[0]
  82.                     with open('onhold_grabbed.txt', 'a') as rrr:
  83.                         rrr.write("http://" + qqqq.split('/')[0] + '\n')
  84.     else:
  85.         print("[!] Noob lo njink!")
  86. banner()
  87. zoneh()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement