Advertisement
TheLaw555

Untitled

Oct 14th, 2019
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. function getMoz($domain){
  4. $curl = curl_init();
  5. curl_setopt($curl, CURLOPT_URL, "http://www.scrolltotop.com/MozRank-Domain-Authority-Checker.php");
  6. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  7. curl_setopt($curl, CURLOPT_HEADER, false);
  8. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  9. curl_setopt($curl, CURLOPT_POSTFIELDS, "url_form=$domain");
  10. $exec = curl_exec($curl);
  11. curl_close($curl);
  12. preg_match_all('/<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><\/tr>/', $exec, $mpd);
  13. return "Moz Rank : ".$mpd[4][0]."\nPage Authority : ".$mpd[3][0]."\nDomain Authority : ".$mpd[2][0]."\nBacklinks : ".$mpd[5][0]."\n";
  14. }
  15. function getAlexa($domain){
  16. $curl = curl_init();
  17. curl_setopt($curl, CURLOPT_URL, "http://data.alexa.com/data?cli=10&dat=snbamz&url=$domain");
  18. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  19. curl_setopt($curl, CURLOPT_HEADER, false);
  20. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  21. $exec = curl_exec($curl);
  22. curl_close($curl);
  23. preg_match_all("/<POPULARITY URL=\"(.*?)\" TEXT=\"(.*?)\"/", $exec, $rank);
  24. preg_match_all("/<COUNTRY CODE=\"(.*?)\" NAME=\"(.*?)\" RANK=\"(.*?)\"/", $exec, $country);
  25. $getAlexx = "Global Rank : ".$rank[2][0]."\nLocal Rank : ".$country[3][0]."\nCountry : ".$country[2][0]."\nCountry Code : ".$country[1][0]."\n";
  26. $getKosong = "Global Rank -: \nLocal Rank : -\nCountry : -\nCountry Code : -\n";
  27. if(preg_match("/<POPULARITY/i", $exec)){
  28. return $getAlexx;
  29. }else{
  30. return $getKosong;
  31. }
  32. }
  33. function trafficCheck($domain){
  34. $curl = curl_init();
  35. curl_setopt($curl, CURLOPT_URL, "http://www.statshow.com/www/$domain");
  36. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  37. curl_setopt($curl, CURLOPT_HEADER, false);
  38. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  39. $exec = curl_exec($curl);
  40. curl_close($curl);
  41. preg_match_all("/<div id=\"box_1\" class=\"box_on\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $daily);
  42. preg_match_all("/<div id=\"box_2\" class=\"box_off\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $monthly);
  43. preg_match_all("/<div id=\"box_3\" class=\"box_off\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $yearly);
  44. return "Daily Page Views : ".$daily[2][0]."\nDaily Visitors : ".$daily[4][0]."\nMonthly Page Views : ".$monthly[2][0]."\nMonthly Visitors : ".$monthly[4][0]."\nYearly Page Views : ".$yearly[2][0]."\nYearly Visitors : ".$yearly[4][0]."\n";
  45. }
  46. $banner = "
  47. Powered By Con7ext
  48. _____ .__
  49. / _ \ |__| ____ ________
  50. / /_\ \| |/ \\___ /
  51. / | \ | | \/ /
  52. \____|__ /__|___| /_____ \
  53. \/ \/ \/\n";
  54. echo $banner."\n";
  55. echo "DOMAIN LIST: ";
  56. $url = trim(fgets(STDIN));
  57. $kontorus = file_get_contents($url);
  58. $urls = explode("\n", $kontorus);
  59. echo "+================================+\n";
  60. echo " MASS SEO TOOLS \n";
  61. echo "+================================+\n";
  62. foreach ($urls as $domain) {
  63. echo "Domain : ".$domain."\n";
  64. echo getAlexa($domain);
  65. echo getMoz($domain);
  66. echo trafficCheck($domain);
  67. echo "+================================+\n";
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement