Welcome
Port Scan
Software
About
Contact Us
Links
Support
Documents
Downloads
Sample - result.php

This uses the PHP command passthru to run the nmap command to perform the scan.

<HTML>
<HEAD>
<TITLE>Scan Results</TITLE>
</HEAD>
<BODY>
<H2>Scan Results</H2>
<HR>
<PRE>
<?
if ($TARGET == "") {
  $TARGET = $REMOTE_ADDR;
}
$today = date( "l dS of F Y h:i:s A" );
PRINT "\nTime: $today.\n";
PRINT "Scanning $TARGET\n";
$scan = "nmap -P0 -p1-1023 -sT $TARGET | grep tcp";
passthru($scan);
?>
</PRE>
</BODY>
</HTML>
 

Copyright 2000 Larry Apolonio if you have any questions or comments regarding this site please contact lapolonio@minihowto.com
Last Updated 02/08/01