Nmap Development mailing list archives
Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?)
From: David Fifield <david () bamsoftware com>
Date: Tue, 22 Dec 2009 18:39:24 -0700
On Tue, Dec 22, 2009 at 07:32:00PM -0500, Jay Fink wrote:
On Tue, Dec 22, 2009 at 6:25 PM, David Fifield <david () bamsoftware com> wrote:On Tue, Nov 24, 2009 at 09:59:47PM -0600, Daniel Miller wrote:Here's a bash-completion script for nmap that covers all the options in the 5.00 release. There are some preference things that could be changed, such as which options to tab-complete by default. I'm sure there's a better way to do the comma-separated list of script categories and names, but this works. Hope this helps!Daniel, I want to thank you for putting it together. I've heard a request for a completion setup more than once. I'm sorry there hasn't been much response to this, and I don't want you to get discouraged as a contributor. Has anyone tried this out and like it? If it's working, perhaps we can include it in the Nmap source or encourage distributors to package it.Do you have the instructions or link to the original file? I messed around a little bit with something David posted a few weeks ago then forgot about it.
Here's the message with the file. Unfortunately it got word-wrapped so I attached a fixed version. http://seclists.org/nmap-dev/2009/q4/514 To use it, just run (note leading dot): . ./nmap-completion.sh I had to add some backslashes before |, (, and ) in the patterns -P+(S|Y|A|U|O) +($any_file_opts) +($any_time_opts) I'm not sure if that changes the meaning. I am able to run this on Debian. From inspection, it looks like it may use some Debian-specific shell functions, so some work might be needed on other platforms. David Fifield
Attachment:
nmap-completion.sh
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Nmap & Bash Auto-Completion (was: Am I Missing Something?) Patrick Donnelly (Nov 23)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) David Fifield (Nov 23)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) Jay Fink (Nov 24)
- <Possible follow-ups>
- RE: Nmap & Bash Auto-Completion (was: Am I Missing Something?) Daniel Miller (Nov 25)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) David Fifield (Dec 22)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) Jay Fink (Dec 22)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) David Fifield (Dec 22)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) Jay Fink (Dec 22)
- Re: Nmap & Bash Auto-Completion Daniel Miller (Dec 23)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) Jay Fink (Dec 24)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) David Fifield (Dec 22)
- Re: Nmap & Bash Auto-Completion (was: Am I Missing Something?) David Fifield (Nov 23)