Nmap Development mailing list archives
Re: Updated DHCP scripts
From: Ron <ron () skullsecurity net>
Date: Fri, 27 Aug 2010 15:47:11 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 16 Aug 2010 10:20:05 -0600 David Fifield <david () bamsoftware com> wrote:
You need to make dhcp.lua into a proper module so it doesn't just
store everything globally. I think you just have to add the line
module(... or "dhcp", package.seeall)
at the top. Then in the script you need to change everything like
dhcp_make_request(host.ip, host.interface, request_type,
"0.0.0.0", mac_addr)
to
dhcp.dhcp_make_request(host.ip, host.interface, request_type,
"0.0.0.0", mac_addr)
In fact, I would get rid of the "dhcp_" prefix on exported names,
because they will already be qualified by "dhcp.".
David Fifield
Thanks, that was a pretty boneheaded mistake. :) Attached is the new patch. I also resolved a conflict that was introduced by a change to the connect() function. I have the 'prerule' mode prepared for whenever we figure out how to do broadcasts (I don't believe the issues that Patrik was investigating were resolved?) - -- Ron Bowes Blog: http://www.skullsecurity.org Twitter: https://twitter.com/iagox86 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkx4JFMACgkQ2t2zxlt4g/QmqwCghCEoXmFfrTH5LyWPhoJfPZUa k08An3LdohJk1HTmx7T1Lbvk9wgO95da =9lin -----END PGP SIGNATURE-----
Attachment:
dhcp_library_v2.patch
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:
- Updated DHCP scripts Ron (Aug 13)
- Re: Updated DHCP scripts David Fifield (Aug 16)
- Re: Updated DHCP scripts Ron (Aug 27)
- Re: Updated DHCP scripts David Fifield (Aug 27)
- Re: Updated DHCP scripts Patrik Karlsson (Aug 27)
- Re: Updated DHCP scripts Ron (Aug 27)
- Re: Updated DHCP scripts Ron (Aug 27)
- Re: Updated DHCP scripts David Fifield (Aug 16)
- Re: Updated DHCP scripts Ron (Aug 28)
- Re: Updated DHCP scripts David Fifield (Sep 27)
