mirror of
https://github.com/tennc/webshell
synced 2024-11-13 23:17:10 +00:00
17 lines
No EOL
197 B
Text
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);
|
|
|
|
} |