RintoMuhamad

Mass Traffic Checker

Jul 15th, 2018
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.69 KB | None | 0 0
  1. <?php
  2. $banner = "
  3. Powered By Con7ext
  4.   _____  .__              
  5.  /  _  \ |__| ____ ________
  6. /  /_\  \|  |/    \\___   /
  7. /    |    \  |   |  \/    /
  8. \____|__  /__|___|  /_____ \
  9.        \/        \/      \/\n";
  10. echo $banner."\n";
  11. echo "DOMAIN LIST: ";
  12. $url = trim(fgets(STDIN));
  13. $kontorus = file_get_contents($url);
  14. $urls = explode("\n", $kontorus);
  15.  echo "+================================+\n";
  16.  echo "         Mass Traffic Checker     \n";
  17.  echo "+================================+\n";
  18. foreach ($urls as $domain) {
  19. $curl = curl_init();
  20. curl_setopt($curl, CURLOPT_URL, "http://www.statshow.com/www/$domain");
  21. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  22. curl_setopt($curl, CURLOPT_HEADER, false);
  23. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  24. $exec = curl_exec($curl);
  25. curl_close($curl);
  26. preg_match_all("/<div id=\"box_1\" class=\"box_on\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $daily);
  27. preg_match_all("/<div id=\"box_2\" class=\"box_off\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $monthly);
  28. preg_match_all("/<div id=\"box_3\" class=\"box_off\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $yearly);
  29.  echo "Domain             : ".$domain."\n";
  30.  echo "Daily Pageviews    : ".$daily[2][0]."\n";
  31.  echo "Daily Visitors     : ".$daily[4][0]."\n";
  32.  echo "Monthly Pageviews  : ".$monthly[2][0]."\n";
  33.  echo "Monthly Visitors   : ".$monthly[4][0]."\n";
  34.  echo "Yearly Pageviews   : ".$yearly[2][0]."\n";
  35.  echo "Yearly Visitors    : ".$yearly[4][0]."\n";
  36.  echo "+================================+\n";
  37.  
  38. }
Add Comment
Please, Sign In to add comment