Penetration Testing
Back to list
Name:
Email:
*Note: Email address will appear as "user domain ext" to prevent harvesting.
Subject:
Message:
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:
<?php
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 ]
Privacy Statement
Copyright 2010, SecurityFocus
<?php
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 ]