Nmap Development mailing list archives

Re: [NSE] Script Idea: nmap last run


From: Robin Wood <robin () digininja org>
Date: Mon, 23 Jul 2012 12:46:10 +0100

On 23 July 2012 12:42, Vikas Singhal <vikas.programmer () gmail com> wrote:
Hi Robin,

I am sorry, I am unable to understand when you say if -sT/sS is there in the
rc file. What difference does it make?

The file would be saying to run a Syn and TCP scan at the same time
which can't be done so you could either chose one (first, last or
specify somewhere one has priority), reject the file because it
contains invalid options, or, if the user is not root, chose -sT
because -sS is not a valid scan option for a non-root user.

Robin


Vikas


On Mon, Jul 23, 2012 at 4:55 PM, Robin Wood <robin () digininja org> wrote:

On 23 July 2012 12:22, Arturo 'Buanzo' Busleiman <buanzo () buanzo com ar>
wrote:
Cmdline overrides rc, I think.

Definitely but what if rc has -sT -sS in it. Or -sT and -sU and the
user is normal user, not root.

It isn't hard to implement a solution just have to be definite over
what priority things get.

Robin

Nmap asking, halting execution? Please no!


On 7/23/12, Robin Wood <robin () digininja org> wrote:
On 23 July 2012 07:36, Ron <ron () skullsecurity net> 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.

The only reason I was thinking of not having -sT and -sS in the
resource file would be working out which takes priority if both are
specified. You might also want to support it falling back two options
are provided and one is only available when running as root while the
other works as a normal user.

Robin

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/
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


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


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


Current thread: