redarrow Posted October 16, 2006 Share Posted October 16, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/24089-dont-let-the-hackers-in/ Share on other sites More sharing options...
Daniel0 Posted October 16, 2006 Share Posted October 16, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/24089-dont-let-the-hackers-in/#findComment-109486 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.