humarb

Cms Detector

Sep 21st, 2016
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.51 KB | None | 0 0
  1. <?php
  2. /**
  3.   This is an experimental service,
  4.   Please contact us if any problem occurs or if you think a site has been wrongly detected.
  5.   --
  6. **/
  7.  
  8. function hajar($yuerel) {
  9.     $cuih = curl_init();
  10.     curl_setopt($cuih, CURLOPT_URL, $yuerel);
  11.     curl_setopt($cuih, CURLOPT_FOLLOWLOCATION, true);
  12.     curl_setopt($cuih, CURLOPT_RETURNTRANSFER, true);
  13.     curl_setopt($cuih, CURLOPT_SSL_VERIFYPEER, false);
  14.     curl_setopt($cuih, CURLOPT_COOKIESESSION, true);
  15.     $eks = curl_exec($cuih);
  16.     curl_close($cuih);
  17.     return $eks;
  18. }
  19.  
  20. function cmsCheck($uri, $brp) {
  21.     return hajar("https://2ip.io/cms/?url=" . $uri . "&ajax=true&serverId=" . $brp);
  22. }
  23.  
  24. function __header() {
  25.     $h = "\n ##########################\n";
  26.     $h .= " #       CMS Detector     #\n";
  27.     $h .= " #------------------------#\n";
  28.     $h .= " # php ex.php www.fbi.gov #\n";
  29.     $h .= " #------------------------#\n";
  30.     $h .= " #       PoisonSquad      #\n";
  31.     $h .= " ##########################\n";
  32.     return $h;
  33. }
  34.  
  35. if (isset($argv[1]) && !empty($argv[1])) {
  36.     echo __header() . "\n\n Checking for : " . $argv[1] . "\n\n";
  37.     for ($i=0; $i < 68; $i++) {
  38.         $cek = cmsCheck($argv[1], $i);
  39.         preg_match_all("/<a target=\"_blank\" href=\"(.*)\"\>(.*)<\/a>/i", $cek, $cms);
  40.         $cms = $cms[2][0];
  41.         echo " " . $cms . ": ";
  42.         if (preg_match("/have been found/", $cek)) echo "Ditemukan!";
  43.         else echo "-";
  44.         echo "\n";
  45.     }
  46. } else {
  47.     echo __header();
  48. }
Advertisement
Add Comment
Please, Sign In to add comment