Nmap Development mailing list archives
Re: Output w/ date/time variables?
From: jah <jah () zadkiel plus com>
Date: Thu, 08 Apr 2010 15:41:01 +0100
On 08/04/2010 15:19, Norris Carden wrote:
Is there a way to have Nmap output to a filename that includes variables of date and time in the filename? -oA %yymmddhhmm%filename
Yes there is - from http://nmap.org/book/man-output.html: "All of these arguments support |strftime|-like conversions in the filename. |%H|, |%M|, |%S|, |%m|, |%d|, |%y|, and |%Y| are all exactly the same as in |strftime|. |%T| is the same as |%H%M%S|, |%R| is the same as |%H%M|, and |%D| is the same as |%m%d%y|. A |%| followed by any other character just yields that character (|%%| gives you a percent symbol). So |-oX 'scan-%T-%D.xml'| will use an XML file in the form of |scan-144840-121307.xml|." jah _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Output w/ date/time variables? Norris Carden (Apr 08)
- RE: Output w/ date/time variables? Norris Carden (Apr 08)
- Re: Output w/ date/time variables? Ron (Apr 08)
- Re: Output w/ date/time variables? Kris Katterjohn (Apr 08)
- Re: Output w/ date/time variables? Ron (Apr 08)
- Re: Output w/ date/time variables? Fyodor (Apr 08)
- Re: Output w/ date/time variables? Kris Katterjohn (Apr 08)
- Re: Output w/ date/time variables? jah (Apr 08)
- Re: Output w/ date/time variables? Norris Carden (Apr 08)
- Re: Output w/ date/time variables? Brandon Enright (Apr 08)
- Re: Output w/ date/time variables? DePriest, Jason R. (Apr 08)
- RE: Output w/ date/time variables? Norris Carden (Apr 08)
- Re: Output w/ date/time variables? Norris Carden (Apr 08)