Valhalla Legends Forums Archive | Web Development | PHP Portscanner

AuthorMessageTime
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.

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

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
November 7, 2006, 7:27 AM
rabbit
Look up HTTP.
November 7, 2006, 11:22 AM

Search