Created
November 19, 2012 16:04
-
-
Save DamaneDz/4111482 to your computer and use it in GitHub Desktop.
WordPreSs Site ScanneR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
File Writed By Damane2011 | |
Thanks To: Lagripe-Dz(n4ss!m) | |
Email: Damane-Dz@hotmail.com | |
Twitter: @DamaneDz | |
*/ | |
@set_time_limit(0); | |
@error_reporting(0); | |
function ask_exploit_db($component){ | |
$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="; | |
$result = @file_get_contents($ExPloiTdb); | |
if (eregi("No results",$result)) { | |
echo"<td>Not Found</td><td><a href='http://www.google.com/search?hl=en&q=download+$component'>Download</a></td></tr>"; | |
}else{ | |
echo"<td><a href='$ExPloiTdb'>Found ..!</a></td><td><--</td></tr>"; | |
} | |
} | |
/**************************************************************/ | |
function get_themes($site){ | |
$source = @file_get_contents($site); | |
preg_match_all("#/themes/(.*?)/#i", $source, $f); | |
$themes=array_unique($f[1]); | |
if(count($themes)==0){ echo "<tr><td colspan=3>[~] Nothing Found ..! , Maybe there is some error site or option ... check it .</td></tr>";} | |
foreach($themes as $theme){ | |
echo "<tr><td>$theme</td>"; | |
ask_exploit_db($theme); | |
} | |
} | |
function get_plugins($site){ | |
$source = @file_get_contents($site); | |
preg_match_all("#/plugins/(.*?)/#i", $source, $f); | |
$plugins=array_unique($f[1]); | |
if(count($plugins)==0){ echo "<tr><td colspan=3>[~] Nothing Found ..! , Maybe there is some error site or option ... check it .</td></tr>";} | |
foreach($plugins as $plugin){ | |
echo "<tr><td>$plugin</td>"; | |
ask_exploit_db($plugin); | |
} | |
} | |
/**************************************************************/ | |
function t_header($site){ | |
echo'<table align="center" border="1" width="50%" cellspacing="1" cellpadding="5">'; | |
echo' | |
<tr id="oo"> | |
<td>Site : <a href="'.$site.'">'.$site.'</a></td> | |
<td>Exploit-db</b></td> | |
<td>Exploit it !</td> | |
</tr> | |
'; | |
} | |
?> | |
<html> | |
<head> | |
<meta http-equiv="Content-Language" content="fr"> | |
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | |
<p align="center"> | |
<img border="0" src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/370365_100003795511051_561161049_n.jpg"</p> | |
<link href="http://dz48-coders.org/indexi/pic/favicon.ico" type="image/x-icon" rel="shortcut icon" /> | |
<title>WordPreSs Site ScanneR By Damane2011</title> | |
<style> | |
body{background-color:#111;color:#00ff00;} | |
body,td,th{ font: 8pt Lucida,Tahoma;margin:0;vertical-align:top;color:#00ff00; } | |
table.info{ color:#000;background-color:#222; } | |
span,h1,a{ color: $color !important; } | |
span{ font-weight: bolder; } | |
h1{ border-left:7px solid $color;padding: 3px 5px;font: 14pt Verdana;background-color:#333;margin:0px; } | |
div.content{ padding: 5px;margin-left:5px;background-color:#222; } | |
a{ text-decoration:none; } | |
a:hover{ text-decoration:underline; } | |
.ml1{ border:1px solid #555;padding:5px;margin:0;overflow: auto; } | |
.bigarea{ width:100%;height:300px; } | |
#new,input,table,td,tr,#gg{border-style:solid;text-decoration:bold;} | |
input,textarea,select{ margin:0;color:#999;background-color:#222;border:1px solid $color; font: 8pt Tahoma,'Tahoma'; } | |
form{ margin:0px; } | |
</style> | |
</head> | |
<body> | |
<p align="center"> </p> | |
<p align="center"> </p> | |
<p align="center"> </p> | |
<form method="POST" action=""> | |
<p align="center"> | |
</p> | |
<p align="center"> | |
<font size="4">WordPreSs Site ScanneR</font></p> | |
<p align="center"> | |
<font size="4"><br></font></p> | |
<p align="center">Site : | |
<input type="text" name="site" size="33" value="http://www.site.com/"> | |
<input type="submit" value="ScaN"></p> | |
</form> | |
<? | |
// start :P :P ... | |
if($_POST){ | |
$site=strip_tags(trim($_POST['site'])); | |
t_header($site); | |
get_themes($site); | |
get_plugins($site); | |
} | |
?> | |
</table> | |
<center><p align="center"> </p> | |
<p align="center"> </p> | |
<p align="center"><font color="#F6358A" size="4">By Damane2011</font><br><br> | |
MaDe in AlGeria 2012 ©</p> | |
<p></center> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment