Ras Posted May 1, 2007 Report Posted May 1, 2007 /*-------------------------------------------------------------------------|scan.php by pr0cess|for fun!|Mail:l4ndishezhang@hotmail.com-------------------------------------------------------------------------*/<html><STYLE type=text/css>BODY { SCROLLBAR-FACE-COLOR: #000000; FONT-SIZE: 12px; SCROLLBAR-HIGHLIGHT-COLOR: #FFFFFF; SCROLLBAR-SHADOW-COLOR: #FFFFFF; SCROLLBAR-3DLIGHT-COLOR: #000000; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #000000; FONT-FAMILY: verdana; SCROLLBAR-DARKSHADOW-COLOR: #000000}INPUT { BORDER-TOP-WIDTH: 1px; FONT-WEIGHT: bold; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 10px; BORDER-LEFT-COLOR: #008000; BACKGROUND: #004000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #008000; COLOR: #00ff00; BORDER-TOP-COLOR: #008000; FONT-FAMILY: verdana; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #008000}TEXTAREA { BORDER-TOP-WIDTH: 1px; FONT-WEIGHT: bold; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 10px; BORDER-LEFT-COLOR: #008000; BACKGROUND: #004000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #008000; COLOR: #00ff00; BORDER-TOP-COLOR: #008000; FONT-FAMILY: verdana; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #008000}table{BORDER-BOTTOM: #FFFFFF 1px DASHED;BORDER-TOP: #FFFFFF 1px DASHED;BORDER-LEFT: #FFFFFF 1px DASHED;BORDER-RIGHT: #FFFFFF 1px DASHED;}A:link { TEXT-DECORATION: none}A:visited { TEXT-DECORATION: none}A:active { TEXT-DECORATION: none}A:hover { COLOR: #00ff00; TEXT-DECORATION: none}B.h6 { FONT-WEIGHT: bold}B.h7 { FONT-WEIGHT: bold; FONT-STYLE: italic}</STYLE><BODY dir=ltr text=#FFFFFF vLink=#FFFFFF aLink=#FFFFFF link=#FFFFFFbgColor=#CCCCCC >|by pr0cess|$ports="20,21,22,23,25,80,110,137,138,139,143,156,443,445,1433,3306,3389,4899,8080";<?function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); }$time_start = getmicrotime();echo "<form action=\"\" method=\"post\"> RemoteIP: <input type=\"text\" name=\"ip\"><input type=\"submit\" value=\"Scan\">";echo "";$ip=$_POST['ip'];$ports="20,21,22,23,25,80,110,137,138,139,143,156,443,445,1433,3306,3389,4899,8080";if (isset($ip)){echo "Scanning.....";echo "";foreach(explode(",","$ports") as $port) { if ( is_numeric($port) ) { $fp = @fsockopen($ip,$port,$errno,$errstr,5); if(!$fp) { echo "Port: $port --><font color=\"white\"> Close</font>"; echo ""; } else { echo "Port: $port --><font color=\"red\"> Open</font>"; echo ""; @fclose($fp); } flush();}}}$time_end = getmicrotime();$time = number_format(($time_end - $time_start),6);echo "-----------------------------------------------------------------------------";echo "";echo "Processed in $time second[s]";?></body></html> Quote