Nmap Development mailing list archives
Re: [NSE] Shared Script Environments for Threads & Universal Awareness
From: Kris Katterjohn <katterjohn () 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 () 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.passI'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
Current thread:
- Re: [NSE] Shared Script Environments for Threads & Universal Awareness Patrick Donnelly (Jul 01)
- <Possible follow-ups>
- Re: [NSE] Shared Script Environments for Threads & Universal Awareness Kris Katterjohn (Jul 01)
- Re: [NSE] Shared Script Environments for Threads & Universal Awareness jah (Jul 01)
- Re: [NSE] Shared Script Environments for Threads & Universal Awareness Brandon Enright (Jul 01)
- Re: [NSE] Shared Script Environments for Threads & Universal Awareness jah (Jul 01)