I DL'ed this code from here:
<?php
unset($max, $dir, $handle, $file, $current, $rand);
$max = 0;
$dir = getcwd();
if ($handle = opendir("$dir")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "$PHP_SELF") {
$max = $max + 1; } }
closedir($handle); }
$rand = rand("1", "$max");
$current = 0;
if ($handle = opendir("$dir")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "$PHP_SELF") {
$current = $current + 1;
if($current==$rand) { @readfile("$file"); } } }
closedir($handle);
}
?>
What do I do now? I have my own host space.
<?php
unset($max, $dir, $handle, $file, $current, $rand);
$max = 0;
$dir = getcwd();
if ($handle = opendir("$dir")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "$PHP_SELF") {
$max = $max + 1; } }
closedir($handle); }
$rand = rand("1", "$max");
$current = 0;
if ($handle = opendir("$dir")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "$PHP_SELF") {
$current = $current + 1;
if($current==$rand) { @readfile("$file"); } } }
closedir($handle);
}
?>
What do I do now? I have my own host space.