Nmap Development mailing list archives
Re: Output w/ date/time variables?
From: Kris Katterjohn <katterjohn () gmail com>
Date: Thu, 08 Apr 2010 10:04:58 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey Ron, On 04/08/2010 09:27 AM, Ron wrote:
If it isn't a difficult change, I 100% agree that this would be useful. I pretty much always do "-oA 2010-04-uniquename". It's pretty trivial doing something like this in Linux: nmap -oA `date +"%Y-%m-%d"`-uniquename
I added this a few years ago because I didn't like using date or manually entering dates and whatever else when it could be automated in Nmap :)
But it'd be really cool having that built in. It'd be neat to have other variables, too, like the target range/input filename (-iL xxx), the script run (if there's only one script), etc. That would all fit perfectly into the naming schemes I already use and save me some time (and stop me from accidentally overwriting my first scan when I run a scan against a different subnet :) ).
When I wrote the patch for the conversions in the file name, requests similar to this were also made: http://seclists.org/nmap-dev/2007/q3/437 While it'd be cool, one issue is that the filename processing would have to be moved to get this other data. It's been quite a while so I don't recall if this would cause big problems or not for initial logging or whathaveyou. Plus, when is too much data in the name enough? Should it all be limited to just a single target, range or script? And what if you specify a conversion for the script run (if the option supports only one as you suggested) but you're actually running more than that? These are neat ideas, but they add more (probably incompatible with real strftime and others) conversion symbols and I'm not sure how to handle some cases for these. But still, very convenient at times :) Cheers, Kris Katterjohn -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQIcBAEBAgAGBQJLvfCZAAoJEEQxgFs5kUfuTqYQAJ44HeZdJ/hOL69Qnq4UYJEU 7x+18PvtLxefu9/b4yOGfhHEJV2sAQS+Bw8O7BcJ15NU/DfmboegslWh50QuOK2y jd+Gvr78+QdYDd2Xj4JNb8dR6UidyB6zLJ6Tgc6AgdfV4xGgUaEz7zOKOBz1LZP7 K0nAQ+5vGkBC8vxy41TM/3/01UtJ9iPXmrbpEOlJU+dgvxKrO0UR5rjm7OULPS7u 79rWUr5aYN9p6EiW2POVy6c8kKcXZX3PtEFGSWIRx+Dr8wDowV16UqSwuc29D065 46trde1x8xaVTI9/IyV2+IU6Yxj7DvzBSKQ4wrXKZDn1LKJWa08EosynCyIoi+oF dY9Qwjk0vT1LzRvHzUBv5vm+Mx6hPLEBRDN9zckO3cizoZmfVYD3S8raC5EvzY1A w/fOCUKnbyQNvlX3ZIi7h2atlOTM7JpvryDdI1VvLbJhDoK4IZ6arbiz/7TiKajC BYQVIUFFGjOwT5axmn+2Mh/CfjltPQAjYI6Yk8OV1i4I31vSRJLXYxRVInhiUc4o Zvl/uSqNwPFziyt8lNH9sjttL09pZycOU8SOUqd6OPskdM/zcwlxiqA27UYlQqIR w5Qq5ZWawKhA6OkP1BlvZc4uCxiY67n58E4TK6RmwZkn/Ph2NHYdMF0yFrTZb2A4 BgYOwqR+XfGMIm+4pSf4 =oxei -----END PGP SIGNATURE----- _______________________________________________ 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)