Tue Oct 28, 2008 12:20 am
<?php
// Give the script enough time to complete the task
ini_set("max_execution_time",120);
$rangeStart = 0;
$rangeStop = 1024;
$target = "www.codemiles.com";
$range =range($rangeStart, $rangeStop);
echo "<p>Scan results for $target</p>";
foreach ($range as $port) {
$result = @fsockopen($target, $port,$errno,$errstr,1);
if ($result)
echo "<p>Socket open at port $port</p>";
}
?>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.