Hi there guys,
This is a bit of lenghty question, but I hope someone can help me out.
We are opening an application to host a server, and part of that process is we use the *nix utility "nmap" to check for open ports, and host details.
This works fine, however, we want to automate it.
Is there anyway I can get PHP to do a nmap on the host, and then when it finishes, insert the results of it into a SQL database?
Ideally, this should be done upon a form submission (it's no problem if the user has to wait for the nmap to complete, we can say it will take some time)
I'm guessing this will done with a type command (such as nmap host), however, for those of you who have used nmap before, it sometimes require additional things such as -PN if pings are ignored... I'm not sure how I can get it to handle that?
Any help with this would be greatly appreciated