• Welcome to Valhalla Legends Archive.
 

PHP Portscanner

Started by Zer0, November 07, 2006, 01:27 AM

Previous topic - Next topic

Zer0

ok so iv been working on a portscanner in php (dont ask y php cuz i really dont know) but i was wondering if anyone could help me figure out how to "probe" the ports for more data, i gota port 80 returning OS along with other info (as long as its a server) but i cant seem to get the rest of them to work.


$ptcp = @fsockopen($ip, $port, &$errno, &$errstr, $this->wait);
$data = @fgets($ptcp,10000);


is how im connectiong, from there it goes and processes the return from the host and checks the database to see if it has any info on the port

Zer0

Edit: added the code

rabbit

Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.