This is a quick and simple TCP port scanning utility written in PHP.
c0fbd6b658908af4cb4a3272dc3c7b366d57256efceaaa57640c208b9bea5c0c
<?php
/*
********************************************************
* ppscanner v.0.9 (php prot Scanner)
* Written by the_Edit0r
* Expl0iter.ir Anti-security.ir
* Contact me : the_3dit0r[at]Yahoo[dot]coM
********************************************************
*/
$host=$_REQUEST['host'];
$start=$_REQUEST['start'];
$end=$_REQUEST['end'];
for($current=$start;$current<=$end;$current++)
{
$service=getservbyport($current,"tcp");
$result=@fsockopen($host,$current);
echo<<< OUTUP
Port:<b>$current</b>
is commonly used for:<b>$service</b>
and was:
OUTUP;
if($result)
{
echo"<font color=\"green\"><b>OPEN</b></font><br>";
}
else
}
echo"<font color=\"red\"><b>CLOSED</b></font><br>";
}}
?>