Skip to content

NetDiscover

What is NetDiscover ?

Netdiscover is an active/passive address reconnaissance tool, mainly developed for those wireless networks without dhcp server, when you are wardriving. It can be also used on hub/switched networks.

Built on top of libnet and libpcap, it can passively detect online hosts, or search for them, by actively sending arp requests, it can also be used to inspect your network arp traffic, or find network addresses using auto scan mode, which will scan for common local networks. (Jaime Peñalba, http://www.nixgeneration.com/~jaime/netdiscover/)

How to install NetDiscover on Mac OS X lion ?

To install NetDiscover on OS X lion you will need to install previously the library libnet.

Libnet is a generic networking API that provides access to several protocols. It is not designed as a ‘all in one’ solution to networking. Currently many features that are common in some network protocols are not available with Libnet, such as streaming via TCP/IP. We feel that Libnet should not provide specific features that are possible in other protocols. If we restrict Libnet to the minimal needed to communicate (datagram/packets) then this allows it to support more interfaces.

(George Foot, Chad Catlett, libnet.sourceforge.net/)

 

  • You may download NetDiscover at the following address (here)
  • You may also download libnet at the following address (here)

Once both files downloaded you might unzip them, and begin the installation of libnet :

 

  • $cd libnet
  • $sudo ./configure
  • $sudo make
  • $sudo make install

this should install the library on your computer, now you may install netdiscover following this steps:

  • $cd netdiscover
  • $sudo ./configure
  • $sudo make
  • $sudo make install

 

if you do not install libnet you will have the following error :

configure: error: Cannot find libnet.h – You need libnet installed.

Once everything installed you will be able to use nediscover from the following path :

You can now export the path like this (link):

  • $cd /etc/paths.d/
  • $sudo vim netdiscover
  •  add the following line : /usr/local/sbin/

and now you are able to use netdiscover in your shell without typing the path.

How to use NetDiscover ?

 

You may simply run the netdiscover command to get the default range which is : 192.168.0.0/16, but you might also want to define a range by yourself by using the following command :

This will give you an ouput with all the ip addresses found and all the mac of the computers.

and that’s it.

{ 4 } Comments

  1. Karel | 17 November 2015 at 10 h 19 min | Permalink

    Hi, I have installed libnet over brew and if I hit sudo ./configure on netdiscover I get configure: error: Cannot find libnet.h – You need libnet installed.

  2. Marthy | 1 December 2015 at 0 h 06 min | Permalink

    Same problem as Karel here! I can’t figure it out, has someone solved this one?

  3. walter | 3 May 2016 at 16 h 29 min | Permalink

    Great. Work.Very Good.

  4. Noktec | 20 November 2016 at 14 h 04 min | Permalink

    It seems that a couple of you have the same problem. Did you solved it ?

Post a Comment

Your email is never published nor shared. Required fields are marked *