[ale] [OT] DHCPd + nmap?

Jeff Hubbs hbbs at comcast.net
Mon Dec 1 15:22:13 EST 2003


There's no shame in synthesizing something from reliable, well-known,
and widely-used components.

- Jeff

On Mon, 2003-12-01 at 15:12, Michael D. Hirsch wrote:
> On Monday 01 December 2003 01:45 pm, Jonathan Glass wrote:
> > Anyone tied nmap together with dhcpd? I'd like to nmap scan a box
> > whenever they accept an address from my DHCP server.
> >
> > What I'm unclear about is how to monitor the dhcpd logs in real-time.  I
> > can tail the file periodically, then scan, but would prefer to do the
> > scan as soon as they receive an address.
> 
> I have written scripts to do this.  The quickest way I found was to run tail 
> -f logfile and pipe the output to some other script.  Both perl and python 
> make it really easy to run a subprocess like that and get its output.
> 
> I used to be embarrased by having done that, but I've since become convinced 
> that the author of tail did all the hard work.  If I were to reimplement it, 
> how would I be better for it?
> 
> Michael
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
-- 
Jeff Hubbs <hbbs at comcast.net>



More information about the Ale mailing list