H4T3D

WordPress Theme Scanner

Nov 18th, 2015
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.51 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. error_reporting(0);
  4. echo "<title>WordPress Theme Scanner</title>
  5. <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>
  6. <style type=\"text/css\">
  7.   body,b,input,a {
  8.       background-color: #f0f0f2;
  9.       margin: 0;
  10.       padding: 0;
  11.        font-family: 'Orbitron', sans-serif;
  12.    
  13.   }
  14. #found{color:Red;}
  15. textarea,input {
  16.      resize:none;
  17.      color: #4099FF ;
  18.      border: 4px solid #3B5998;}
  19.  
  20. </style>
  21. <form method='POST'>
  22. <center><br /></br>
  23.      <font face='Tahoma' size='5'><b>WordPress Theme Scanner</b></font><br />
  24. <br /></br><textarea type='text' name='url' placeholder='Enter URL List Line By Line' rows='20' cols='45'>http://www.pagesinventory.com/\nhttp://worryfreelabs.com/\nhttp://www.thisisyourkingdom.co.uk/\nhttp://www.creativebloq.com/\nhttp://www.travelportland.com/\nhttp://ishothim.com/\nhttp://www.harveynichols.com/\nhttp://www.greatlengthshair.co.uk/\nhttp://www.techcrunch.com/\nhttp://clicksor.com/\nhttp://informer.com/\nhttp://xda-developers.com/\nhttp://tutsplus.com/\nhttp://smashingmagazine.com/\nhttp://cbslocal.com/\nhttp://dyndns.org/\nhttp://sitepoint.com/\nhttp://larrykinglive.blogs.cnn.com/\nhttp://www.nytco.com/\nhttp://blog.directlife.philips.com/\nhttp://www.freeformatter.com/\nhttp://delim.co/</textarea><br />
  25.  <br /></br><input type='submit' name='start' value='Scan Wordpress Theme'><br /></br>
  26.      
  27. </center></form>";
  28.  
  29. function wordpress_theme_scanner($urls)
  30.     {
  31.     $data = file_get_contents($urls);
  32.     if (eregi('WordPress', $data) || eregi('wp-', $data) || eregi('wp-includes', $data) || eregi('wp-admin', $data) || eregi('wp-content', $data))
  33.         {
  34.         preg_match_all("|<link[^>]+/>|", $data, $matches, PREG_PATTERN_ORDER);
  35.         foreach($matches[0] as $theme)
  36.             {
  37.             if (eregi('theme', $theme))
  38.                 {
  39.                 preg_match_all("/href='(.*?)'/", $theme, $matches);
  40.                 $r = $matches[1][0] . "";
  41.                 $r = explode('/', $r);
  42.                 $r = array_filter($r);
  43.                 $r = array_merge($r, array());
  44.                 echo "$urls - > " . $r[4] . "\r\n";
  45.                 flush();
  46.                 @ob_flush();
  47.                 break;
  48.                 }
  49.             } //end of foreach
  50.         } //end of check if its Wordress Website
  51.       else
  52.         {
  53.         echo "$urls Is Not Wordpress Website\r\n";
  54.         }
  55.     } //end of function
  56.  
  57. if (isset($_POST['start']))
  58.     {
  59.     echo "<center><textarea rows='18' cols='90' id='found'>";
  60.     $url = explode("\r\n", $_POST['url']);
  61.     foreach($url as $urls)
  62.         {
  63.         wordpress_theme_scanner($urls);
  64.         flush();
  65.         @ob_flush();
  66.         }
  67.  
  68.     echo "</textarea></center>";
  69.     }
  70.  
  71. ?>
Advertisement
Add Comment
Please, Sign In to add comment