webshell/caidao-shell/caidao-plug/扫描端口_php.ccc

17 lines
No EOL
197 B
Text

for ($i=1; $i<255; $i++)
{
$strHost = "192.168.1.{$i}";
$fp = @fsockopen($strHost, 80, $errno, $errstr, 1);
if (!$fp)
{
print "{$i}.{$errstr}\n";
}
else
{
print "{$i}.open\n";
}
fclose($fp);
}