jihad-x

Joomla Scanner

Dec 24th, 2013
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.93 KB | None | 0 0
  1. <!--
  2.  
  3. Title.......: [ JooMla serv3r ScaNN3r ]
  4. c0d3r.......: [ Lagripe-Dz ]
  5. HoMe........: [ wWw.sEc4EvEr.CoM ]
  6. Date........: [ 26/12/2010 ]
  7. LastUpdate..: [ 28/02/2011 ]
  8. MyBlog......: [ Lagripe-Dz.org ]
  9.  
  10. -->
  11. <html>
  12. <head>
  13. <meta http-equiv="Content-Language" content="fr">
  14. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  15. <title>#~JooMla serv3r ScaNN3r</title>
  16. <style>
  17. body,table{background: black; font-family:Verdana,tahoma; color: white; font-size:10px; }
  18. A:link {text-decoration: none;color: red;}
  19. A:active {text-decoration: none;color: red;}
  20. A:visited {text-decoration: none;color: red;}
  21. A:hover {text-decoration: underline; color: red;}
  22. #new,input,table,td,tr,#gg{border-style:solid;text-decoration:bold;}
  23. input:hover,tr:hover,td:hover{background-color: #FFFFCC; color:green;}
  24. </style>
  25. </head>
  26.  
  27. <body>
  28.  
  29. <p align="center">&nbsp;</p>
  30. <p align="center">&nbsp;</p>
  31. <p align="center">&nbsp;</p>
  32. <p align="center"><font size="3">#~JooMla serv3r ScaNN3r</font></p><br>
  33. <form method="POST">
  34.     <p align="center"><input type="text" name="site" size="65"><input type="submit" value="ScaN"></p>
  35. </form><center>
  36. <?php
  37. @set_time_limit(0);
  38. @error_reporting(E_ALL | E_NOTICE);
  39.  
  40. function check_exploit($comxx){
  41.  
  42. $link ="http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=$comxx&filter_exploit_text=&filter_author=&filter_platform=0&filter_type=0&filter_lang_id=0&filter_port=&filter_osvdb=&filter_cve=";
  43.  
  44. $result = @file_get_contents($link);
  45.  
  46. if (eregi("No results",$result))  {
  47.  
  48. echo"<td>Not Found</td><td><a href='http://www.google.dz/#hl=en&q=download+$comxx+joomla+extension'>Download</a></td></tr>";
  49.  
  50. }else{
  51.  
  52. echo"<td><a href='$link'>Found</a></td><td><=</td></tr>";
  53.  
  54. }
  55. }
  56.  
  57. function check_com($url){
  58.  
  59. $source = @file_get_contents($url);
  60.  
  61. preg_match_all('{option,(.*?)/}i',$source,$f);
  62. preg_match_all('{option=(.*?)(&amp;|&|")}i',$source,$f2);
  63. preg_match_all('{/components/(.*?)/}i',$source,$f3);
  64.  
  65. $arz=array_merge($f2[1],$f[1],$f3[1]);
  66.  
  67. $coms=array();
  68.  
  69. foreach(array_unique($arz) as $x){
  70. $coms[]=$x;
  71. }
  72.  
  73. foreach($coms as $comm){
  74.  
  75. echo "<tr><td>$comm</td>";
  76. check_exploit($comm);
  77. }
  78.  
  79. }
  80.  
  81. function sec($site){
  82. preg_match_all('{http://(.*?)(/index.php)}siU',$site, $sites);
  83. if(eregi("www",$sites[0][0])){
  84. return $site=str_replace("index.php","",$sites[0][0]);
  85. }else{
  86. return $site=str_replace("http://","http://www.",str_replace("index.php","",$sites[0][0]));
  87. }}
  88.  
  89. $npages = 50000;
  90.  
  91. if ($_POST)
  92. {
  93.   $ip = trim(strip_tags($_POST['site']));
  94.   $npage = 1;
  95.   $allLinks = array();
  96.  
  97.  
  98.    while($npage <= $npages)
  99.   {
  100.  
  101.   $x=@file_get_contents('http://www.bing.com/search?q=ip%3A' . $ip . '+index.php?option=com&first=' . $npage);
  102.  
  103.  
  104.     if ($x)
  105.     {
  106.         preg_match_all('(<div class="sb_tlst">.*<h3>.*<a href="(.*)".*>(.*)</a>.*</h3>.*</div>)siU', $x, $findlink);
  107.        
  108.         foreach ($findlink[1] as $fl)
  109.        
  110.         $allLinks[]=sec($fl);
  111.        
  112.        
  113.         $npage = $npage + 10;
  114.        
  115.         if (preg_match('(first=' . $npage . '&amp)siU', $x, $linksuiv) == 0)
  116.             break;             
  117.     }
  118.    
  119.     else
  120.         break;
  121.   }
  122.  
  123.  
  124. $allDmns = array();
  125.  
  126. foreach ($allLinks as $kk => $vv){
  127.  
  128. $allDmns[] = $vv;
  129. }
  130.            
  131. echo'<table border="1"  width=\"80%\" align=\"center\">
  132. <tr><td width=\"30%\"><b>Server IP&nbsp;&nbsp;&nbsp;&nbsp; : </b></td><td><b>'.$ip.'</b></td></tr>         
  133. <tr><td width=\"30%\"><b>Sites Found&nbsp; : </b></td><td><b>'.count(array_unique($allDmns)).'</b></td></tr>
  134. </table>';
  135. echo "<br><br>";
  136.  
  137. echo'<table border="1" width="80%" align=\"center\">';
  138.  
  139. foreach(array_unique($allDmns) as $h3h3){
  140.  
  141. echo'<tr id=new><td><b><a href='.$h3h3.'>'.$h3h3.'</a></b></td><td><b>Exploit-db</b></td><td><b>challenge of Exploiting ..!</b></td></tr>';
  142.  
  143. check_com($h3h3);
  144.  
  145. }
  146.  
  147. echo"</table>";
  148.  
  149. }
  150. ?></center>
  151. <br><p align="center">
  152. (c)0d3d By <a href='http://www.Lagripe-Dz.org/'>Lagripe-Dz</a> | <a href='http://wWw.sEc4EvEr.CoM/'>wWw.sEc4EvEr.CoM</a><br>
  153. MaDe in AlGeriA 2o11 (r)
  154. </p>
  155. </body>
  156.  
  157. </html>
Add Comment
Please, Sign In to add comment