?? portscan.php
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?=$titleOfPage?></title>
<link rel="stylesheet" type="text/css" href="templates/<?=$theme?>/style.css" />
</head>
<body>
<center>
<form action="index.php?modules=nmap" method="post">
<input type="text" size="26" name="host"> target<br><p>
<input type="submit" value="go!">
</form>
<?
$host=$_REQUEST["host"];
$lport = 1;
$hport = 80;
if ($_REQUEST["host"] != "") { ?>
<h3>PORTSCAN RESULTS ON <STRONG><? echo $host ?></strong> :</h3>
<?
for ( $port=$lport; $port<=$hport; $port++ ) {
$fp = @fsockopen($host, $port, &$errno, &$errstr, 4 );
if ( !$fp ) {
//echo "Port $port seems to be closed/filtered:nDesc: $errstr<br>n";
}
else {
$serv = getservbyport($port,"tcp");
echo "<strong>Port $port / $serv seems open...</strong><br>\n";
}
} //for
}
?>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -