and this will be a very handy tools indeed.
<?php
/*
--------------------------------------
Shell Scanner Script
By Ozziemale
--------------------------------------
*/
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
?>
<meta name="description" content="www.m-zonez.net" />
<meta name="keywords" content="free downloads and more for your phone " />
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="icon" href="images/favicon.gif" type="image/gif" />
<?php
echo "<head>";
echo "<title>Error!!!</title>";
echo "<style type=\"text/css\">
* {
margin: 0;
padding: 0;
}
/*
Css Style by
Rampage
Default Theme
*/
body {
color : #FFFFFF;
font-size : 12px;
font-family : arial;
background-color : #000000;
max-width : 640px;
max-height : 75px;
margin : auto;
}
<!-- Script By Rampage -->
</style>";
echo "<head>";
echo "<title>Data Base Error!</title>";
echo "</head>";
echo "<body>";
?>
<?php
$dir = "images/"; //You could add a $_GET to change the directory
$files = scandir($dir);
echo "<font color=\"#00CC00\">------------------------------------------------<br /></font>";
echo "<font color=\"#00CC00\">Shell Scanner V.1 By Ozziemale31<br /></font>";
echo "<font color=\"#00CC00\">------------------------------------------------<br /></font>";
echo "<list><center>";
foreach($files as $key => $value){
if(strpos($value, ".php") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, ".php4") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, ".php5") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, ".asp") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, "php.jpg") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, "php.gif") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, ".xhtml") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, ".cgi") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, ".wml") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
if(strpos($value, ".txt") > 0) {
echo "<font color=\"#00CC00\"><strong>Possible Shell Script:</strong> </font><font color=\"#FF0000\">".$value."</font><br/>";
}
echo "</list></center>";
}
echo "<font color=\"#00CC00\">------------------------------------------------<br /></font>";
echo "<font color=\"#00CC00\">www.m-zonez.net<br />© copyright 2012 ©<br />All Rights Reserved</font>";
echo "</body>";
echo "</html>";
?><?php
$dir = "images/"; //You could add a $_GET to change the directory
$files = scandir($dir);
echo "<list>";
foreach($files as $key => $value){
//////// Add File Extensions To Be Displayed
if(strpos($value, ".php") > 0) {
/////// Return results
echo "".$value."<br/>";
}
echo "</list>";
}
?><?php
$dir = "images/"; //You could add a $_GET to change the directory
$files = scandir($dir);
echo "<list>";
foreach($files as $key => $value){
if(strpos($value, ".png") > 0) {
echo "".$value."<br/>";
}
if(strpos($value, ".php") > 0) {
echo "".$value."<br/>";
}
if(strpos($value, ".txt") > 0) {
echo "".$value."<br/>";
}
echo "</list>";
}
?>
Leave a comment: