<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Security Nation</title>
</head>
<body>
<div align="center">
<table border="1" width="750" id="table1" cellspacing="0" cellpadding="0" bordercolor="#E2E2E2" style="border-collapse: collapse">
<tr>
<td align="center" valign="top">
<div align="center">
<table border="0" width="100%" id="table2" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" width="100%" id="table3" cellspacing="0" cellpadding="0">
<tr>
<td width="500">
<img border="0" src="../security/logo.jpg" width="192" height="31"></td>
<td width="223">
<a href="index.php?p=acerca">
<img border="0" src="../security/acerca.jpg" width="39" height="31"></a><img border="0" src="../security/upseparator.jpg" width="9" height="31"><a href="index.php?p=contacto"><img border="0" src="../security/contacto.jpg" width="49" height="31"></a><img border="0" src="../security/upseparator.jpg" width="9" height="31"><a href="index.php?p=advisories"><img border="0" src="../security/advisories.jpg" width="56" height="31"></a><img border="0" src="../security/upseparator.jpg" width="9" height="31"><a href="index.php?p=exploits"><img border="0" src="../security/exploits.jpg" width="45" height="31"></a></td>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<img border="0" src="../security/1.jpg" width="34" height="38"><a href="index.php?p=inicio"><img border="0" src="../security/2.jpg" width="55" height="38"></a><img border="0" src="../security/3.jpg" width="15" height="38"><a href="index.php?p=manuales"><img border="0" src="../security/4.jpg" width="55" height="38"></a><img border="0" src="../security/5.jpg" width="13" height="38"><a href="index.php?p=programas"><img border="0" src="../security/6.jpg" width="63" height="38"></a><img border="0" src="../security/7.jpg" width="10" height="38"><a href="index.php?p=proyectos"><img border="0" src="../security/8.jpg" width="59" height="38"></a><img border="0" src="../security/9.jpg" width="12" height="38"><a href="index.php?p=eventos"><img border="0" src="../security/10.jpg" width="57" height="38"></a><img border="0" src="../security/11.jpg" width="14" height="38"><a href="index.php?p=empresas"><img border="0" src="../security/12.jpg" width="61" height="38"></a><img border="0" src="../security/13.jpg" width="10" height="38"><a href="index.php?p=gobierno"><img border="0" src="../security/14.jpg" width="59" height="38"></a><img border="0" src="../security/15.jpg" width="11" height="38"><a href="index.php?p=cum"><img border="0" src="../security/16.jpg" width="59" height="38"></a><img border="0" src="../security/17.jpg" width="12" height="38"><a href="index.php?p=torneo"><img border="0" src="../security/18.jpg" width="53" height="38"></a><img border="0" src="../security/19.jpg" width="16" height="38"><a href="index.php?p=enlaces"><img border="0" src="../security/20.jpg" width="53" height="38"></a><img border="0" src="../security/21.jpg" width="32" height="38"></td>
</tr>
<tr>
<td>
<div align="center">
<table border="0" width="100%" id="table4" align="right" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div align="center">
<table border="0" width="90%" id="table5" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" width="100%" id="table40" cellspacing="0" cellpadding="0">
<tr>
<td height="19">
<table border="0" width="100%" id="table17" cellspacing="0" cellpadding="0">
<tr>
<td>
<p align="center"><b><font size="2">Online Port Scanner
& Banner/Service Grabbing (Limited to 5
Ports)</font></b></td>
</tr>
<tr>
<td>
<p align="center"><font size="2">Original coded
by: Victor Arturo Hernandez Avila, Fixed by Luis
Alberto Cortes Zavala</font></td>
</tr>
<tr>
<td>
<form action="he.php" method="post">
<div align="center">
<table border="0" width="500" id="table16" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<p align="center"><font size="2">IP/Host:</font><input type="text" name="direccion" size="25"></td>
<td align="center">
<font size="2">Initial Port:</font><input type="text" name="desde" size="6"></td>
<td align="center">
<p align="center"><font size="2">Final Port:</font><input type="text" name="hasta" size="6"></td>
<td align="center">
<input type="submit" value="Scan" name="submit"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><hr></td>
</tr>
</table>
</div>
<?
set_error_handler ('error_handler');
function error_handler ($error_level, $error_message, $file, $line) {
$EXIT = FALSE;
# Only handle the errors specified by the error_reporting directive or function
# Ensure that we should be displaying and/or logging errors
if ( ! ($error_level & error_reporting ()) || ! (ini_get ('display_errors') || ini_get ('log_errors')))
return;
switch ($error_level) {
case E_NOTICE:
case E_USER_NOTICE:
$error_type = 'Notice';
break;
case E_WARNING:
case E_USER_WARNING:
$error_type = 'Warning';
// echo "cacacacac";
break;
case E_ERROR:
case E_USER_ERROR:
$error_type = 'Fatal Error';
$EXIT = TRUE;
break;
# Handle the possibility of new error constants being added
default:
$error_type = 'Unknown';
$EXIT = TRUE;
break;
}}
if(isset($direccion) && isset($desde) && isset($hasta) && isset($submit)) {
$pini = $hasta - $desde;
if ($pini <= 5){
$host = gethostbyname($direccion);
echo "<b><font face="Arial" size="2">Host: $direccion IP: [$host] Scan:</font></b><br><hr>";
$i = $desde;
while ($i <= $hasta) {
$sock = fsockopen($host, $i, $errnum, $error, 1);
if (getservbyport($i,"tcp") != null) {
$srv = getservbyport($i,"tcp"); } else {
$srv = "Unknown"; }
if ($sock) {
stream_set_timeout($sock, 2);
if (strlen($fd2 = fgets($sock)) > 5){
for ($x=0;$x<5;$x++) {$fd2 .= fgets($sock)."<br>";}
} else{
$request = "HEAD / HTTP/1.0
";
fputs ($sock, $request);
while (!feof($sock)){$fd2 .= fgets($sock)."<br>";}
}
echo "<font face="Arial" size="2"><b>Port</b>: $i/tcp <font color="#0000FF">Open: $srv</font></font><br>";
echo "<font face=Arial><b></b><font size=2><b>Banner:</b><br> $fd2</font></font><font size=2><hr>";
fclose($sock);
}
else { unset($sock);
echo "<font face="Arial" size="2"><b>Port</b>: $i/tcp <font color="#FF0000">Close: $srv</font></font><hr><br>"; }
$i++;
}
}else{
echo "<font face="Arial" size="2"><font color="#FF0000">Lo siento el sistema esta limitado a 5 Puertos</font><hr><br>";
}
}
?> </td>
<td width="195" valign="top"><br>
<div align="center">
<table border="0" width="90%" id="table6" cellspacing="0" cellpadding="0">
<tr>
<td><p align="center">
<a href="http://securitynation.com/mailman/listinfo/vuln_securitynation.com">
<font face="Arial" size="2">Li</font></a><font face="Arial" size="2"><a href="http://securitynation.com/mailman/listinfo/vuln_securitynation.com">sta de
Discusión de SN!</a></font></td>
</tr>
<tr>
<td>
<p align="center"><font face="Arial" size="2">Suscribete a la Lista!</font></td>
</tr>
</table>
<p> </p>
<table border="0" width="90%" id="table39" cellspacing="0" cellpadding="0">
<tr>
<td>
<p align="center">
<a href="scan.phps">
<font size="2">Source Code</font></a></td>
</tr>
<tr>
<td>
<p align="center">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<p> </p>
<p> </td>
</tr>
<tr>
<td bgcolor="#C0C0C0">
<p align="center"><font size="1" face="Arial">Copyrigth©
Security Nation 2006 - México D.F. Contacto:
[email protected]</font></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>