Asked By
Emma Marie
10 points
N/A
Posted on - 12/24/2012
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?Â
How can I find an udp port scanner php script?
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.