How can I find an udp port scanner php script?

Asked By 10 points N/A Posted on -
qa-featured

I want to scan some Remote IP UDP port. Is it possible to check remote IPS UDP port via php script. What will be the script? Does it clash with other scripts? 
Can anyone please explain me How can I find an udp port scanner php script? 

SHARE
Answered By 0 points N/A #189417

How can I find an udp port scanner php script?

qa-featured

Dear Emma Marie,

I have found a script for you what will allow you to scan udp port , ips, urls etc. Here is the code:

<html>
<head>
<title>Port Scan</title>
</head>
<body>
<div align="center">
<?php
$server = $_POST['server'];
?>
<h2>Enter your url and click scan.</h2>
<table style="border-width: 1px; border-style: solid;" cellpadding="5" cellspacing="6">
<form action="portscan.php" method="post">
<tr>
<td>URL to scan: </td><td><input type="text" value="<?php echo $server; ?>" name="server" id="server" /></td>
</tr>
<tr>
<td colspan="2"><input type="hidden" value="1" name="submit" /><input type="button" name="submit1" value="Scan" id="submit1" /></td>
</tr>
</form>
</table>
 
 
 
<?php
 
 
 
if ($_POST['submit'] == "1"){//submitted the form
 
echo "<br><h2>Results</h2><table style="border-width: 1px; border-style: solid;" cellpadding="5" cellspacing="5"><tr><td>";
echo "<pre>";
system("/usr/bin/nmap $server");//perform scan
echo "</pre>";
echo "</td></tr></table>";
 
system("killall -q nmap");//kill the process
 
}
 
?>
</div>
</body>
</html>

 

Thank you.

Related Questions