Lister les port et les services liés

Author:


Download

<html>
<head>
<title>Ports et protocoles</title>
</head>
<body>

<?php
for($i=1;$i<=1024;$i++)
{

   echo "Le port <b>$i</b> est lié au service: "
   .getservbyport($i, "tcp")."<br/>";

}
?>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *


− six = 0