Rogue Detect sends DHCPDISCOVER packets to the network and listens for DHCP servers to respond.
It can run continuously as a daemon, or do a single probe and quit. It's written in Perl and can be easily extended to take any action you can think of in response to an unknown DHCP server (send pages, disable them or whatever).
· POSIX (to do fork() stuff)
· Net::SMTP (to send email)
· Unpack the DHCPDetect.pm and dhcpdetector.pl files somewhere
· Install required perl libraries (www.cpan.org) (in debian try 'perl -MCPAN -eshell')
· Edit dhcpdetector.pl - add your DHCP server's IP addresses, your email address, and edit the defaults to your taste.
· set dhcpdetect.pl executable (chmod u+x dhcpdetect.pl)
· run dhcpdetect as root: ./dhcpdetect.pl
What's New in This Release:
· This release fixes a serious logic issue which resulted in roguedetect having trouble detecting two DHCP offers which were within 1/10th of a second of each other.