Nmap Development mailing list archives

Re: [NSE] Script Idea: nmap last run


From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 23 Jul 2012 09:01:52 -0500

On 07/23/2012 01:36 AM, Ron wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 22 Jul 2012 20:27:46 +0100 Robin Wood <robin () digininja org> wrote:
What about if there were a resource/config script in the users home
directory like other tools have? You couldn't set things like -sT but
you could add things like -oA and have a way to specify something to
do with the date and/or IP range.

Robin
I was gonna suggest the same thing - Nmap could read a .nmaprc file where you can specify options that you want to affect 
every scan. You could do -sT or -sS if you wanted, though it'd be kinda silly.

Perhaps that already exists?

Ron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAlAM8Q4ACgkQ2t2zxlt4g/Ry8gCfetF3pGoRD4NF8KbtP+GqyUW3
IlgAoKIszRTUXI52zV7lSUQTji/ocUg7
=koGT
-----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/
.

This is obviously not a complete solution, but my bash-completion scripts for Nmap (https://github.com/bonsaiviking/nmap-completion) support reading a "preferences" file, and generating tab-completions based on that. Example:

$ grep "oA" ~/.nmap/prefs
-oA scan-%y%m%d%T
$ nmap -oA <tab>
$ nmap -oA scan-%y%m%d%T

Unfortunately, this only works for Bash, and doesn't work automatically (like the original poster wanted).

Dan
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: