http://qs321.pair.com?node_id=932819


in reply to Advice on script

Is there some reason you can't use nmap?

nmap -sU 10.0.0.0-254 -p 67-68

Just wondering...Rob

Replies are listed 'Best First'.
Re^2: Advice on script
by afresh1 (Hermit) on Oct 22, 2011 at 02:10 UTC

    DHCP requests are sent to a broadcast address so that you can find an IP without having one or at least without knowing the address of the DHCP server. In this case, the "good" network might be 10.0.0.0/24, and you could scan that, but when someone plugs in a random wireless router it is likely to have and hand out IPs in the 192.168.1.0/24 network which the nmap scan wouldn't find.

    l8rZ,
    --
    andrew
Re^2: Advice on script
by doylebobs (Novice) on Oct 23, 2011 at 23:09 UTC

    This was just an exercise to get more familiar with Perl. Bob