Advertisement
Guest User

Untitled

a guest
Jan 13th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. <?php
  2. @set_time_limit(0);
  3. @error_reporting(E_ALL | E_NOTICE);
  4. echo "
  5. ___ _--------: / | / /
  6. ,--. ,--. | \.., ____..| | \ /-----\ | | / /
  7. | `.' |,--.,. | | \\ | __ | | | | |/ /
  8. | |'.'| || .--'|. | | | | / | | | | | : \ \
  9. | | | || | | '-' / | ;_ _; | | | | | \ \
  10. `--' `--'`--' `-----' \_ ____|__\ |_ _| |__| |__|
  11.  
  12. \n\n";
  13. echo "\n==========================================================\n".
  14. "|| Welcome To Extract Site From Zone-H.org ||\n".
  15. "==========================================================\n".
  16. "|| Coded By : Mrdark ||\n".
  17. "==========================================================\n".
  18. "|| Skype : live:mr9_9 - Face : 1337MRdark ||\n".
  19. "==========================================================\n".
  20. "|| Usage : php {$argv[0]} ||\n".
  21. "==========================================================\n";
  22. echo"\r\n[#] Notifier --> ";
  23. $notifier = trim(fgets(STDIN));
  24. echo"\r\n[#] Enter ZH From Cookies --> ";
  25. $ZH = trim(fgets(STDIN));
  26. echo"\r\n[#] Enter PHPSESSID From Cookies --> ";
  27. $PHPSESSID = trim(fgets(STDIN));
  28. if (empty ($notifier) && empty ($ZH) && empty ($PHPSESSID)) die ("Wrong Setting.");
  29. for($i=1;$i<=50;$i++){
  30. $sites = source('http://www.zone-h.com/archive/notifier='.$notifier."/page=".$i,$ZH,$PHPSESSID);
  31. if($sites){
  32. foreach($sites as $site ){
  33. $xxx = "http://$site\r\n";
  34. preg_match_all('/http:\/\/(.*?)\//', $xxx, $Done);
  35. foreach($Done[1] as $lolxd){
  36. $lolx = "http://$lolxd\r\n";
  37. echo $lolx;
  38. $lol = fopen("{$notifier}.txt",'a+');
  39. fwrite($lol, $lolx);
  40. }}
  41.  
  42. }else{
  43. echo "\r\n\t[!]=====> Error, Captcha Detected\n\n";
  44. continue;
  45. }
  46.  
  47. }
  48. echo "\r\n\t[#]=====> Done :D - Saved In {$notifier}.txt\n";
  49. function source($site,$ZH,$PHPSESSID){
  50.  
  51. $curl=curl_init();
  52. curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
  53. curl_setopt ($curl, CURLOPT_URL, $site);
  54. curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
  55. curl_setopt ($curl, CURLOPT_COOKIEFILE, getcwd().'/cookie.txt');
  56. curl_setopt ($curl, CURLOPT_COOKIE, "ZH=".$ZH."; PHPSESSID=".$PHPSESSID.";");
  57. curl_setopt ($curl, CURLOPT_COOKIEJAR, getcwd().'/cookie.txt');
  58. curl_setopt ($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)");
  59. curl_setopt ($curl, CURLOPT_FOLLOWLOCATION, 1);
  60. curl_setopt ($curl, CURLOPT_TIMEOUT, 20);
  61. $exec=curl_exec($curl);
  62. curl_close($curl);
  63. return (preg_match_all('#<td>((www.)?[a-z0-9-]+\.([a-z]{2,4}\.)?[a-z]+/(?:.*))#' , $exec , $sites)) ? $sites[1] : null;
  64. }
  65. @unlink("cookie.txt");
  66. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement