<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
        "http://www.w3.org/TR/REC-html40/loose.dtd">

<!--  YOU WILL NEED NMAP INSTALLED, FIX THE PATH IN LINE 21 -->

<html> <head> <title> Self Port Scan </title> </head>
<body bgcolor="blue">

<center>
<table border="4">
<tr>
<td width="100%" bgcolor="lightblue"> Starting nmap by Fyodor (fyodor@dhp.com, www.insecure.org/nmap/)</td>
<tr>
<td width="100%" bgcolor="navyblue"> php3 script by Yashy (yashy@yashy.com www.yashy.com)</td>
<tr>
<td width="100%" bgcolor="gray"> Interesting ports on
 <? echo $_SERVER[REMOTE_HOST]; ?>
(<? echo $_SERVER[REMOTE_ADDR]; ?>):
</td>
<tr>
<? 
 $yourAddress 
$_SERVER[REMOTE_ADDR];
 
exec("/usr/local/bin/nmap $yourAddress"$nmapResult);
 
$arraySize sizeof($nmapResult); 
 
$x 3;
 while(
$x $arraySize){
   echo 
"<tr><td>" .$nmapResult[$x]. "</td>";
 
$x++;
}
 
?>
</table>
</center>
</body>
</html>
<!-- yashy@yashy.com 05/99 http://crypto.yashy.com -->
<!-- yashy@yashy.com Updated 08/02 to reflect changes in php -->
<!-- If you use this php please keep the comments -->