Jump to content

Archived

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

redarrow

Dont let the hackers in.

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]

Share this post


Link to post
Share on other sites
redarrow, you have been here some time. Why do you keep posting your scripts in the PHP help forum when you do not need help?! You've done it quite some times now.

It may be a nice script, but please post it in the correct forum!

Share this post


Link to post
Share on other sites

×

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.