Valhalla Legends Archive

Programming => Web Development => Topic started by: Zer0 on November 07, 2006, 01:27 AM

Title: PHP Portscanner
Post by: Zer0 on November 07, 2006, 01:27 AM
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
Title: Re: PHP Portscanner
Post by: rabbit on November 07, 2006, 05:22 AM
Look up HTTP.