Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Development: Re: [NSE] Shared Script Environments for Threads & Universal Awareness

Re: [NSE] Shared Script Environments for Threads & Universal Awareness

From: Kris Katterjohn <katterjohn_at_gmail.com>
Date: Tue, 01 Jul 2008 14:31:14 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick Donnelly wrote:
> On Mon, Jun 30, 2008 at 6:18 PM, jah <jah_at_zadkiel.plus.com> wrote:
>>> Since we're using this nomenclature for script-specific information,
>>> how about
>>> making a global _R the registry interface? It gets pretty ugly sometimes
>>> trying to deal with some arguments, e.g.:
>>>
>>> nmap.registry.args.anonFTP.pass
>> I'm for _R too!
>> whois.nse has:
>>
>> nmap.registry.whois.cache[host.ip].data
>>
>> which has to be writeable from all threads so cannot be copied into a
>> local variable with a shorter name.
>>
>> _R.cache[host.ip].data
>>
>> would be much nicer...
>
> This can and should be solved by local variables.
>
> local registry = nmap.registry;
> local args = registry.args;
>

That's like what I did for zoneTrans, and my point is that it's pretty lame
that a bunch of scripts will have to do the exact same steps when the solution
can be built-in somehow. Like I said, I'm not pulling for any individual
change (as much as I like the simple _R), but surely something can be done
without requiring the scripts to handle the workaround for excess typing and
what is IMO ugliness.

Thanks,
Kris Katterjohn

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBSGqGAP9K37xXYl36AQLS+xAAp+sLojDxyVyRIn4k6WwRLcDPRGIgsb4O
ZhFtCpOV25IhOqBKDVJuTTJ+VYFF4wo8ZZ/DkTqEYmYM99WK3ONwwJ9eEFFXWeHl
Lqe5tn/+dxfWUdbsLMkGk2M2FlDimfkRnm8Wy26u++x5hE9aeMtW7mXcu8lfkcOV
HQk3XgtSIewKOpjH3nhmdOVlQw7Ld4P/CeFOTqUXl7yZbtrH5ll0okXfjxVH+tuf
SAJZM0gz7g4UYPPiE324Uh2JWo8TLZ+y1+J/aMnVrjeInQwL2NntVcxELDLdIaNX
qVaPUQJj9LK3/7byI7IoCiK0vXnD16Db80e9C9BYgfAuW4c22MQkQfVmEjva/MPL
k2fHNt/UPrAnxuIvew/spUcNit+77geZy2wP7Ba+M6vFmDDKHrogLv3CxXI/3CQk
hByNbrBS9dcC/mnz/FbVPFVmFbvAU4PUnPK2NQT0aAIzNDj5nrbe7TqcATYzvltr
PznZCn2PPiKz13g14Rez1V6oEHE3hX0NOIrStVnw1nbZ6gEsY0InXmTf2IGJML/b
o/wDDrmNTk+JPAAYOeL7iZUf8DUhLXio9hNrOMzYWYe7zZIZD9UnVFzRy5PYxey6
d0lAMHPm6dpgFFb99YQZdcgvRs+b055ixMFXlZYfMs8/M7ea4HkpIS4NfATRH4mR
Q4nF5Oor438=
=TR4y
-----END PGP SIGNATURE-----

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Jul 01 2008

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos