Advertisement
ustadcage_48

Checker Result And Robots.txt

Sep 22nd, 2016
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.22 KB | None | 0 0
  1. <html>
  2. <title>Pajri Homo By UstadCage_48</title>
  3.     <link href='http://fonts.googleapis.com/css?family=Patrick+Hand' rel='stylesheet' type='text/css'>
  4.  
  5. <style>
  6. body {color:white;font-family: Patrick Hand}
  7.  
  8. a { text-decoration:none;color:DeepPink; }
  9.  
  10. .entryfield { background:black;color:white;border: 1px solid DeepPink; font-family: Patrick Hand;
  11. padding: 10px; height:200; width:400;
  12. }
  13. .subbtn {background:DeepPink;color:white;border: 1px solid #000; padding:6px 6px 6px 6px; font-family: Patrick Hand; }
  14. .subbtn:hover {background:#c0bfbf;color:#000000;}
  15. </style>
  16.  
  17. <center>
  18. <body bgcolor=' #000 '><br>
  19. <form method="post">
  20. <textarea class="entryfield" name="target"></textarea>
  21. <br>
  22. <input class="subbtn" type="submit" name="homo" value="ewe">
  23. </form><br>
  24.  
  25. <?php
  26. set_time_limit(0);
  27. error_reporting(0);
  28.  
  29. function ngcurl($url, $http_code) {
  30.     $ch = curl_init($url);
  31.           curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  32.           curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
  33.           curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  34.           curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  35.           curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  36.           curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  37.     $result = curl_exec($ch);
  38.     $info = curl_getinfo($ch);
  39.     if($http_code == "ya") {
  40.         return $info['http_code'];
  41.     } else {
  42.         return $result;
  43.     }
  44.           curl_close($ch);
  45. }
  46.  
  47. if($_POST['homo']) {
  48. $get=$_POST['target'];
  49. $j=explode("\r\n",$get);
  50.     foreach($j as $url) {
  51.        
  52.         if(!preg_match("/^http:\/\//", $url) AND !preg_match("/^https:\/\//", $url)) {
  53.             $url = "http://$url";
  54.         } else {
  55.             $url = $url;
  56.         }
  57.         print "[+] Scanning: $url<br>";
  58.         $cek_index = ngcurl($url, "no");
  59.         preg_match("/Mage.Cookies.path     = '(.*?)';/", $cek_index, $mage_path);
  60.         $cek_robot = ngcurl($url.$mage_path[1]."/robots.txt", "ya");
  61.         $cek_log = ngcurl($url.$mage_path[1]."/result.txt", "ya");
  62.         if($cek_robot == "200" || preg_match("/disallow/i", $cek_robot)) {
  63.             print "[+] Robots.txt F0und!<br>";
  64.         } else {
  65.             print "robot gk ada<br>";
  66.         }
  67.         if($cek_log == "200") {
  68.             print "[+] Result.txt F0und!<br>";
  69.         } else {
  70.             print "[+] Result Gk Ada<br>";
  71.         }
  72.     }
  73. }
  74. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement