On 14/11/2002 11:17:57 Geoffrey Leeming wrote:

>Thanks for the reply.  Unfortunately that tells me what the PDC thinks is
>there, rather than what necessarily *is* there :-)  One of the many
reasons I
>run this script is to check for unauthorised machines on our physical
network,
>so I need to explicitly check every machine that's pingable inside our
firewall.
>

If it's a SMB machine (Windows, Samba, etc) it's sure to emit the usual
"NETBIOS chatter". Listening to that with e.g. Ethereal (NIC in promiscuous
mode)
would yield a list of IP addresses.

You could do something like this:

Put NIC in promiscuous mode; # Perhaps the difficult bit, libpcap might
help
Listen to everything on the network
Record source addresses (perhaps a hash)
Check source addresses

--
Csaba Ráduly, Software Engineer                           Sophos Anti-Virus
email: [EMAIL PROTECTED]                        http://www.sophos.com
US Support: +1 888 SOPHOS 9                     UK Support: +44 1235 559933


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to