naufalardhani

zh

Jul 8th, 2019
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. #!/usr/bin/python
  2. import requests, sys, re, os, time, random
  3. from colorama import Fore, Back, Style
  4.  
  5.  
  6. r = Fore.RED
  7. g = Fore.GREEN
  8. w = Fore.WHITE
  9. b = Fore.BLUE
  10. y = Fore.YELLOW
  11. m = Fore.MAGENTA
  12.  
  13.  
  14. def cls():
  15. linux = 'clear'
  16. windows = 'cls'
  17. os.system([linux, windows][os.name == 'nt'])
  18.  
  19.  
  20. def print_logo():
  21. clear = "\x1b[0m"
  22. colors = [36, 32, 34, 35, 31, 37]
  23.  
  24. x = """
  25. $$$$$$$$\ $$\ $$\
  26. \____$$ | White Hat Hacker $$ | $$ |
  27. $$ / $$$$$$\ $$$$$$$\ $$$$$$\ $$ | $$ |
  28. $$ / $$ __$$\ $$ __$$\ $$ __$$\ $$$$$$\ $$$$$$$$ |
  29. $$ / $$ / $$ |$$ | $$ |$$$$$$$$ |\______|$$ __$$ |
  30. $$ / $$ | $$ |$$ | $$ |$$ ____| $$ | $$ |
  31. $$$$$$$$\|$$$$$$ |$$ | $$ |\$$$$$$$\ $$ | $$ |
  32. \________|\______/ \__| \__| \_______| \__| \__|
  33. Iran-Cyber.NeT - Zoen-H Url Hunter
  34. github.com/04x
  35. """
  36. for N, line in enumerate(x.split("\n")):
  37. sys.stdout.write("\x1b[1;%dm%s%s\n" % (random.choice(colors), line, clear))
  38. time.sleep(0.05)
  39.  
  40.  
  41.  
  42. cls()
  43. print_logo()
  44.  
  45. try:
  46. __Defacer = sys.argv[1]
  47. __ZH = sys.argv[2]
  48. __PHPSESSID = sys.argv[3]
  49. __ZHE = sys.argv[4]
  50. except IndexError:
  51. print Fore.YELLOW + '-----------------------------------------'
  52. print Fore.RED + '[*]' + Fore.YELLOW + ' Python ' + Fore.GREEN + 'Script.py ' + Fore.WHITE + 'Name_of_defacer ' + y + 'ZH PHPSESSID ZHE'
  53. print(Style.RESET_ALL)
  54. sys.exit()
  55.  
  56. page = 1
  57. print r + ' [' + w + '+' + r + '] ' + w + 'Notifier is : ' + r + __Defacer
  58. while True:
  59. url = 'http://zone-h.com/archive/notifier=' + __Defacer + '/page=' + str(page)
  60. page = page + 1
  61. sess = requests.session()
  62.  
  63. my_cookie = {
  64. 'ZHE': __ZHE,
  65. 'ZH': __ZH,
  66. 'PHPSESSID': __PHPSESSID
  67. }
  68.  
  69. Open = sess.get(url, cookies=my_cookie, timeout=10)
  70. print Open.text
  71. Hunt_urls = re.findall('<td>(.*)\n </td>', Open.content)
  72. for xx in Hunt_urls:
  73. print r + ' [' + w + '*' + r + '] ' + y + xx.split('/')[0]
  74. with open('hunted_urls.txt', 'a') as rr:
  75. rr.write(xx.split('/')[0] + '\n')
  76.  
  77. if page > 50:
  78. sys.exit()
  79. else:
  80. continue
Add Comment
Please, Sign In to add comment