Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

[ps.php] - light-weight port scanner - gotta get those 50posts

im mostly posting this to get that first 50 posts so i can psot in market place section and include urls in my posts

here it is a port scanner written in php (yes i know this is rookie stuff like i said rushing to 50 posts)

Code
<?php
if (!$_REQUEST['targ']) {
echo "target will see you as: [".$_SERVER['SERVER_ADDR']."]<br/> and maybe: [".$_SERVER['SERVER_NAME']."]<br/>";
echo "<form method=REQUEST ><input type=text name=targ value=tcp:// /><input type=submit value=scan />";
} else {
$targ = $_REQUEST['targ'];
echo "scanning [ ".$_REQUEST['targ']." ] ...<br/>\r\n<hr/>\r\nlist of open ports:<br/>\r\n";
for ($p = 1; $p < 1000; $p++) {
if (@$conn = fsockopen($targ,$p,$errno, $errstr, 2)) {
echo "open port: [ ".$p." ]<br/>\r\n";
fclose($conn);
}
}
echo "<hr/>\r\ndone scanning<br/>\r\n<form method=REQUEST ><input type=submit value=NewScan /><br/>\r\n";
}
?>
Please stop sharing this kind of script, they suck and are useless.
this are like snippet why not share the whole thing


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by The Alchemist16Jan 10, 2013 09:59 PM 24 660 Jan 10, 2013 09:59 PM
Last Post: The Alchemist16
[PHP] by badbrainsJun 12, 2012 06:44 PM 0 152 Jun 12, 2012 06:44 PM
Last Post: badbrains
[PHP] by spider.netMay 3, 2011 06:22 AM 14 338 May 3, 2011 06:22 AM
Last Post: bourd