Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Coded by Fadly 31337
- import requests, httplib, urllib, urllib3, urllib2, codecs
- import os, sys, time, re, threading, socket, datetime, random
- from urllib import urlopen as o
- from platform import system
- from multiprocessing.dummy import Pool
- from time import time as timer
- from random import sample as rand
- from colorama import Fore
- from colorama import Style
- from colorama import init
- from pprint import pprint
- from urlparse import urlparse
- from requests.packages.urllib3.exceptions import InsecureRequestWarning
- url = "http://zone-h.org/archive/notifier="
- urll = "http://zone-h.org/archive/published=0"
- def banner():
- print("""
- _____ ______ ____ _ _ _
- | ____|_______|__ / |__ / ___|_ __ __ _| |__ | |__ ___ _ __| |
- | _| |_ /_ / / /| '_ \| | _| '__/ _` | '_ \| '_ \ / _ \ '__| |
- | |___ / / / / / /_| | | | |_| | | | (_| | |_) | |_) | __/ | |_|
- |_____/___/___/____|_| |_|\____|_| \__,_|_.__/|_.__/ \___|_| (_)
- Zone H Grabber (Archive and Onhold)
- """)
- def zoneh():
- print("[01] Grab site (archive)\n[02] Grab site (onhold)")
- sec = int(raw_input("Choose a number: "))
- if sec == 1 or sec == 01:
- notf = raw_input("Notifier: ")
- fadlygans = raw_input("PHPSESSID: ")
- fadlygans2 = raw_input("ZHE: ")
- my_cook = {
- "ZHE" : fadlygans2,
- "PHPSESSID" : fadlygans
- }
- for i in range(1, 51):
- dz = requests.get(url + notf +"/page=" + str(i), cookies=my_cook)
- dzz = dz.content
- print(url + notf +"/page=" + str(i))
- if '<html><body>-<script type="text/javascript"' in dzz:
- print("[!] Change your cookies beb!")
- sys.exit()
- elif '<input type="text" name="captcha" value=""><input type="submit">' in dzz:
- print("[!] Captcha detected!")
- sys.exit()
- else:
- Hunt_urls = re.findall('<td>(.*)\n</td>', dzz)
- if '/mirror/id/' in dzz:
- for xx in Hunt_urls:
- qqq = xx.replace('...','')
- print '[+] ' + qqq.split('/')[0]
- with open(notf + '.txt', 'a') as rr:
- rr.write("http://" + qqq.split('/')[0] + '\n')
- else:
- print("[!] Grab site completed!")
- sys.exit()
- elif sec == 2 or sec == 02:
- fadlygans = raw_input("PHPSESSID: ")
- fadlygans2 = raw_input("ZHE: ")
- my_cook = {
- "ZHE" : fadlygans2,
- "PHPSESSID" : fadlygans
- }
- for qwd in range(1, 51):
- rb = requests.get(urll + "/page=" + str(qwd) , cookies=my_cook)
- dzq = rb.content
- if '<html><body>-<script type="text/javascript"' in dzq:
- print("[!] Change your cookies njink!")
- sys.exit()
- elif "captcha" in dzq:
- print("[!] Captcha detected!")
- else:
- Hunt_urlss = re.findall('<td>(.*)\n</td>', dzq)
- for xxx in Hunt_urlss:
- qqqq = xxx.replace('...','')
- print '[+]' + qqqq.split('/')[0]
- with open('onhold_grabbed.txt', 'a') as rrr:
- rrr.write("http://" + qqqq.split('/')[0] + '\n')
- else:
- print("[!] Noob lo njink!")
- banner()
- zoneh()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement