Jump to content


Photo

Dont let the hackers in.


  • Please log in to reply
1 reply to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 16 October 2006 - 12:47 PM

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.

<?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(); 
} 
?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 16 October 2006 - 12:51 PM

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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users