Back to list
*Note: Email address will appear as "user domain ext" to prevent harvesting.
Re: run nmap automatically from index.html (??)
Nov 16 2011 04:16PM
securityfocus rawchaos com
If you can modify the source for the website, you can add something like this with PHP at the end of the page:
passthru("/path/to/nmap <args> " . $_SERVER['REMOTE_ADDR'] . " >> /path/to/log_file.log 2>&1 &");
It is important to note that "2>&1 &" allows this command to be backgrounded so ...
[ more ]
Copyright 2010, SecurityFocus