rendered paste body<?phpif($_SERVER['REQUEST_METHOD']=='POST'){ echo "<html> <head> <style> body { font-family: terminal; color: #00F02B; background-color: black; font-size: 105%; } a:link {color: #1BE33F} a:visited {color: #007114} a:hover {color: #00FF2E} a:active {color: #007114} table { border-style:ridge; border-width:6px; border-color:#5E5E5E; width:800px!important; height:300px!important; } </style> </head>"; $br_nl = "<br>"; $host = htmlspecialchars($_POST['host']); $s_port = (int)$_POST['s_port']; $e_port = (int)$_POST['e_port']; echo "<body> <center><pre> <form method='POST' action=" . $_SERVER['PHP_SELF'] . "> Host: <input type='text' name='host'><br> Starting Port: <input type='text' name='s_port'><br> Ending Port: <input type='text' name='e_port'><br> <input type='submit'> </form> </center>";} else { $br_nl = "\n"; $host = $argv[1]; $s_port = $argv[2]; $e_port = $argv[3];}if (!isset($host)){ echo "Enter a Host to scan!" . $br_nl;}else do{ if (fsockopen($host, $s_port)){ echo $s_port . " open" . $br_nl; } $s_port++;}while($s_port <= $e_port);?>