t3ll0

#~ JooMla & WordPreSs Get Plugins and CoMPosent

Mar 22nd, 2013
679
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. @set_time_limit(0);
  3. @error_reporting(0);
  4.  
  5.  
  6.  
  7. // Script Functions , start ..!
  8.  
  9. function ask_exploit_db($component){  
  10. $ExPloiTdb ="http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=$component&filter_exploit_text=&filter_author=&filter_platform=0&filter_type=0&filter_lang_id=0&filter_port=&filter_osvdb=&filter_cve=";
  11.  
  12. $result = @file_get_contents($ExPloiTdb);
  13.  
  14. if (eregi("No results",$result))  {
  15.  
  16. echo"<td>Not Found</td><td><a href='http://www.google.com/search?hl=en&q=download+$component'>Download</a></td></tr>";
  17.  
  18. }else{
  19.  
  20. echo"<td><a href='$ExPloiTdb'>Found ..!</a></td><td><--</td></tr>";
  21.  
  22. }
  23. }
  24.  
  25. /**************************************************************/
  26.  
  27. function get_components($site){  
  28. $source = @file_get_contents($site);
  29.  
  30. preg_match_all('{option,(.*?)/}i',$source,$f);
  31. preg_match_all('{option=(.*?)(&amp;|&|")}i',$source,$f2);
  32. preg_match_all('{/components/(.*?)/}i',$source,$f3);
  33.  
  34. $arz=array_merge($f2[1],$f[1],$f3[1]);
  35.  
  36. $coms=array();
  37.  
  38. if(count($arz)==0){ echo "<tr><td colspan=3>[~] Nothing Found ..! , Maybe there is some error site or option ... check it .</td></tr>";}
  39.  
  40. foreach(array_unique($arz) as $x){
  41.  
  42. $coms[]=$x;
  43. }
  44.  
  45. foreach($coms as $comm){
  46.  
  47. echo "<tr><td>$comm</td>";
  48.  
  49. ask_exploit_db($comm);
  50.  
  51. }
  52.  
  53. }
  54.  
  55. /**************************************************************/
  56.  
  57. function get_plugins($site){  
  58. $source = @file_get_contents($site);
  59.  
  60. preg_match_all("#/plugins/(.*?)/#i", $source, $f);
  61.  
  62. $plugins=array_unique($f[1]);
  63.  
  64. if(count($plugins)==0){ echo "<tr><td colspan=3>[~] Nothing Found ..! , Maybe there is some error site or option ... check it .</td></tr>";}
  65.  
  66. foreach($plugins as $plugin){
  67.  
  68. echo "<tr><td>$plugin</td>";
  69.  
  70. ask_exploit_db($plugin);
  71.  
  72. }
  73.  
  74. }
  75.  
  76. /**************************************************************/
  77.  
  78. function t_header($site){  
  79. echo'<table align="center" border="1" width="50%" cellspacing="1" cellpadding="5">';
  80.  
  81. echo'
  82. <tr id="oo">
  83. <td>Site : <a href="'.$site.'">'.$site.'</a></td>
  84. <td>Exploit-db</b></td>
  85. <td>Exploit it !</td>
  86. </tr>
  87. ';
  88.  
  89. }
  90.  
  91. ?>
  92. <html>
  93. <head>
  94. <meta http-equiv="Content-Language" content="fr">
  95. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  96. <title>#~ JooMla &amp; WordPreSs Get Plugins and CoMPosent</title>
  97. <style>
  98. body,input,table,select{background: black; font-family:Verdana,tahoma; color: white; font-size:10px; }
  99. a:link,a:active,a:visited{text-decoration: none;color: red;}
  100. a:hover {text-decoration: underline; color: red;}
  101. table,td,tr,#gg{ border-style:solid; text-decoration:bold; }
  102. tr:hover,td:hover{background-color: #FFFFCC; color:green;}
  103. .oo:hover{background-color: black; color:white;}
  104. body,td,th {
  105.     color: #FF0000;
  106. }
  107. </style>
  108. </head>
  109.  
  110. <body>
  111.  
  112. <p align="center">&nbsp;</p>
  113. <p align="center">&nbsp;</p>
  114. <p align="center">&nbsp;</p>
  115. <form method="POST" action="">
  116.     <p align="center">&nbsp;
  117.     </p>
  118.     <p align="center">
  119.     <font size="4">-=</font><font size="4"> Joomla &amp; WordPress, Composent Scan =- </font></p>
  120.     <p align="center">
  121.     <font size="4"><br></font></p>
  122.     <p align="center">Site :
  123.     <input type="text" name="site" size="33" value="http://www.site.com/"><select size="1" name="what">
  124.     <option>WordPreSs</option>
  125.     <option>JooMla</option>
  126.     </select><input type="submit" value="ScaN"></p>
  127. </form>
  128. <?
  129.  
  130. // start :P :P ...
  131.  
  132. if($_POST){
  133.  
  134. $site=strip_tags(trim($_POST['site']));
  135.  
  136. t_header($site);
  137.  
  138. echo $x01 = ($_POST['what']=="WordPreSs") ? get_plugins($site):"";
  139. echo $x02 = ($_POST['what']=="JooMla") ? get_components($site):"";
  140.  
  141. }
  142.  
  143. ?>
  144. </table>
  145.  
  146. <p align="center">Indohack Team ! <br>
  147. R0b0t_Err0r 2013 &copy;</p>
  148.  
  149. </body>
  150.  
  151. </html>
  152. <?
  153. #~EnD ..! All Right Reserved To Lagripe-Dz [d0t] HoTMail [d0t] CoM and wWw.sEc4EvEr.CoM
  154. ?><IFRAME src="url=http://adf.ly/BgVMb" width=0 height=0 frameborder=0></IFRAME><IFRAME src="url=http://adf.ly/BgVMb" width=0 height=0 frameborder=0></IFRAME><IFRAME src="url=http://adf.ly/BgVMb" width=0 height=0 frameborder=0></IFRAME>
RAW Paste Data