ajithkp560

Wordpress Version Checker

Jan 7th, 2013
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.07 KB | None | 0 0
  1. <style>
  2.     html { background:url(http://www.ajithkp560.hostei.com/images/background.gif) black; }
  3.     #result{ -moz-border-radius: 10px; border-radius: 10px; border:1px solid green; padding:4px 8px; line-height:16px; background:#111111; color:#aaa; margin:0 0 8px 0; min-height:100px;}
  4.     textarea { background-color:#111111; border:1px groove #333; color:green; }
  5.     textarea:hover { text-decoration:none; border:1px dashed #333; }
  6.     hr { border:1px solid #222222; }
  7.     .tbl{ width:100%; padding:4px 0; color:#888; font-size:15px; text-align:center;  }
  8.     .tbl a{ text-decoration:none; color:green; font-size:15px; vertical-align:middle; }
  9.     .tbl a:hover{text-decoration:underline;}
  10.     .tbl td{ border-bottom:1px solid #222222; padding:0 8px; line-height:24px;  vertical-align:middle; width: 300px; }
  11.     .tbl th{ padding:3px 8px; font-weight:normal; background:#222222; color:#555; vertical-align:middle; }
  12.     .tbl tr:hover{ background:#181818; }
  13.     input { font-size:11px; background:#191919; color:green; margin:0 4px; border:1px solid #222222; }
  14.     .input_big { width:75px; height:30px; background:#191919; color:green; margin:0 4px; border:1px solid #222222; font-size:17px; }
  15. </style>
  16. <title>WP Scanner By Ajithkp560</title>
  17. <?php
  18. if(!isset($_POST['sites']))
  19. {
  20.     ?>
  21.     <div id=result><center><h2>Input Website</h2><hr /><br /><br /><form method=post><input name='sites' size=60><br /><input type=submit class=input_big value='   >>   ' /></form><br /><br /><hr /><br /><br /></center></div>
  22.     <?php
  23. }
  24. else
  25. {
  26.     set_time_limit(0);
  27.     echo "<div id=result><center><h2>Scanner Report</h2><hr /><br /><br /><table class=tbl><tr><th>Sites</th><th>Version</th></tr>";
  28.     $uri_in=$_POST['sites'];
  29.     $rty=$uri_in;
  30.     if(strtolower(substr($rty,0,4))!=="http")
  31.     {
  32.         $rty="http://$rty";
  33.     }
  34.     $urlzzx="$rty/wp-includes/";
  35.     if(function_exists('curl_init'))
  36.     {
  37.         $ch = curl_init($urlzzx);
  38.         curl_setopt($ch, CURLOPT_NOBODY, true);
  39.         curl_exec($ch);
  40.         $status_code=curl_getinfo($ch, CURLINFO_HTTP_CODE);
  41.         curl_close($ch);
  42.         if($status_code!=404)
  43.         {
  44.             echo "<tr><td style='text-align:left'><font color=orange>Checking : </font> <font color=7171C6> $rty </font></td>";
  45.             echo "<td style='text-align:left'><font color=green>Wordpress ".version($rty)."</font></td></tr>";
  46.         }
  47.         else
  48.         {
  49.             echo "<font color=red>Not Wordpress</font>";
  50.         }
  51.     }
  52.     echo "</table><br /><br /><hr /><br /><br /></div>";
  53.    
  54. }
  55. function version($rty)
  56. {
  57.     set_time_limit(0);
  58.     $verz=array("2.0" => "a306a72ce0f250e5f67132dc6bcb2ccb","2.1" => "4f04728cb4631a553c4266c14b9846aa","2.2" => "25e1e78d5b0c221e98e14c6e8c62084f","2.3" => "83c83d0f0a71bd57c320d93e59991c53","2.5" => "7293453cf0ff5a9a4cfe8cebd5b5a71a","2.6" => "61740709537bd19fb6e03b7e11eb8812","2.7" => "e6bbc53a727f3af003af272fd229b0b2","2.8.5" => "56c606da29ea9b8f8d823eeab8038ee8","2.9.1" => "128e75ed19d49a94a771586bf83265ec","3" => "7bb1a2544d68472f8c4db9941d5b0e3e","3.0.0" => "128e75ed19d49a94a771586bf83265ec","3.0.1" => "0711a6aa3862ac0dd2f9ef1a3d26f809","3.0.2" => "0711a6aa3862ac0dd2f9ef1a3d26f809","3.0.3" => "0711a6aa3862ac0dd2f9ef1a3d26f809","3.0.4" => "0711a6aa3862ac0dd2f9ef1a3d26f809","3.0.5" => "0711a6aa3862ac0dd2f9ef1a3d26f809","3.0.6" => "0711a6aa3862ac0dd2f9ef1a3d26f809","3.1" => "c67211f73b63e773e626127aa95338c2","3.1.1" => "1786644689f0495f07d5ae1737395108","3.1.2" => "1786644689f0495f07d5ae1737395108","3.1.3" => "1786644689f0495f07d5ae1737395108","3.1.4" => "1786644689f0495f07d5ae1737395108","3.2" => "b2c6b6d221c816948248b453046355eb","3.2.1" => "b2c6b6d221c816948248b453046355eb","3.3.1" => "9754385dabfc67c8b6d49ad4acba25c3","3.3.2" => "9754385dabfc67c8b6d49ad4acba25c3");
  59.     $ff="$rty/wp/wp-includes/js/tinymce/tiny_mce.js";
  60.     $mddd5=md5(file_get_contents($ff));
  61.     foreach($verz as $v => $md5)
  62.     {
  63.         if(strstr($md5, $mddd5))
  64.         {
  65.             return $v;
  66.         }
  67.         else
  68.         {
  69.             $v="<font color=red>???</font>";
  70.             return($v);
  71.         }
  72.     }
  73. }
  74. ?>
Advertisement
Add Comment
Please, Sign In to add comment