Port Scanner in PHP
Posted By: zainal on February, 05 2007
This is a very basic port scanner in PHP.
for($port = $from; $port <= $to; $port++)
{
$fp = fsockopen(”$host”, $port);
if ($fp)
{
print(”port $port opened \r”);
fclose($fp);
}

FACEBOOK
GOOGLE+
TWITTER
RSS
Can someone implement a simple solution for UDP in this code ?
for UDP just make $host contain the request type in the format udp://IP
brilliant!
For udp you cannot do udp://IP simply. It will show all ports as open. UDP port scanning requires a different approach.
Leave a reply
Popular Post
How to cancel PayPal Automatic Payment
How to Join Google+ Plus
Cannot Load MySQL Extension
Enable Wildcard for Wordpress MU
Port 25 blocked by TMnet
Recent Post
IE8 - HTML Parsing Error: Unable to modify the parent container element before the child element is closed
Microsoft Socl.com Social Network
How to create pages on Google+ Plus
Nmap - Missing MSVCR100.dll
How to Cancel A Tagged Account
Featured on KOSMO!
BLOGGER