Jump to content

Dont let the hackers in.


redarrow

Recommended Posts

This code will cheak to see what ports on your router is open or closed good to cheak incase a hacker is on the prowl.

close the ports that dont need to be open.

[code]
<?php
$host = "whatevrer.co.uk";
for($i=0;$i<500;$i++) {
$fp = fsockopen($host,$i,$errno,$errstr,10);
if($fp)
{
echo "port " . $i . " open on " . $host . "\n";
fclose($fp);
}
else
{
echo "port " . $i . " closed on " . $host . "\n";
}
flush();
}
?> [/code]
Link to comment
https://forums.phpfreaks.com/topic/24089-dont-let-the-hackers-in/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.