Advertisement
ccocot

ZH.sh

Dec 10th, 2017
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cat << "EOF"
  4.              ____   ____ ___  ____  _____   _   _ _____ _____
  5.             | __ ) / ___/ _ \|  _ \| ____| | \ | | ____|_   _|
  6.             |  _ \| |  | | | | | | |  _|   |  \| |  _|   | |  
  7.             | |_) | |__| |_| | |_| | |___ _| |\  | |___  | |  
  8.             |____/ \____\___/|____/|_____(_)_| \_|_____| |_|  
  9.  
  10.                 GRAB ALL DOMAIN ZH
  11.                 Ccocot | ccocot@bc0de.net
  12.                 Thank For Zombie-Root
  13. EOF
  14.  
  15. ngegrab(){
  16.     local COOKIE="ZH=24aea5f3d8f5b8f6c12c92bb94afb1a9; PHPSESSID=s776iurb0se9hp936ifrubim66;"
  17.     local UA="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36"
  18.     local MIRROR_ID=$(curl -s "http://www.zone-h.org/archive/published=0/page=${1}" --cookie "${COOKIE}" -A "${UA}" | grep -Po "(?<=/mirror/id/)[^\"]*")
  19.     for id in ${MIRROR_ID}; do
  20.         URL=$(curl "http://www.zone-h.org/mirror/id/${id}" -s --cookie "${COOKIE}" -A "${UA}" | grep -Po "(?<=Domain:</strong>)[^<]*" | cut -d'/' -f3)
  21.         printf "[+] ${URL}\n"
  22.         echo ${URL} >> web.txt
  23.     done
  24. }
  25.  
  26. for (( i = 3; i < 30; i++ )); do
  27.     printf "[ ==== PAGE ${i} ==== ]\n"
  28.     ngegrab ${i}
  29. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement