Advertisement
humarb

Cms Detector

Sep 21st, 2016
416
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.   wehh404@gmail.com
  7. **/
  8.  
  9. function hajar($yuerel) {
  10.     $cuih = curl_init();
  11.     curl_setopt($cuih, CURLOPT_URL, $yuerel);
  12.     curl_setopt($cuih, CURLOPT_FOLLOWLOCATION, true);
  13.     curl_setopt($cuih, CURLOPT_RETURNTRANSFER, true);
  14.     curl_setopt($cuih, CURLOPT_SSL_VERIFYPEER, false);
  15.     curl_setopt($cuih, CURLOPT_COOKIESESSION, true);
  16.     $eks = curl_exec($cuih);
  17.     curl_close($cuih);
  18.     return $eks;
  19. }
  20.  
  21. function cmsCheck($uri, $brp) {
  22.     return hajar("https://2ip.io/cms/?url=" . $uri . "&ajax=true&serverId=" . $brp);
  23. }
  24.  
  25. function __header() {
  26.     $h = "\n ##########################\n";
  27.     $h .= " #       CMS Detector     #\n";
  28.     $h .= " #------------------------#\n";
  29.     $h .= " # php ex.php www.fbi.gov #\n";
  30.     $h .= " #------------------------#\n";
  31.     $h .= " #       PoisonSquad      #\n";
  32.     $h .= " ##########################\n";
  33.     return $h;
  34. }
  35.  
  36. if (isset($argv[1]) && !empty($argv[1])) {
  37.     echo __header() . "\n\n Checking for : " . $argv[1] . "\n\n";
  38.     for ($i=0; $i < 68; $i++) {
  39.         $cek = cmsCheck($argv[1], $i);
  40.         preg_match_all("/<a target=\"_blank\" href=\"(.*)\"\>(.*)<\/a>/i", $cek, $cms);
  41.         $cms = $cms[2][0];
  42.         echo " " . $cms . ": ";
  43.         if (preg_match("/have been found/", $cek)) echo "Ditemukan!";
  44.         else echo "-";
  45.         echo "\n";
  46.     }
  47. } else {
  48.     echo __header();
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement