lanmap – Network discovery tool that produces nice 2d images

Sponsored Link
Lanmap Listens to all available traffic on the interface of your choice, figures out who's talking to who, how much, using which protocols.

This information is then put into a nice human-readable 2d image (various formats are available) which can be used to understand a network's topology.

Install lanmap in Ubuntu

sudo aptitude install lanmap

This will complete the installation

Using lanmap

lanmap syntax

lanmap [-o directory] [-e program] [-T {png,gif,svg}] [-f filtetr] [-D {#,all,raw}] [-r seconds]

[-i {?,*wildcard*,iface}] [-h] [-v] [-V]

lanmap example

lanmap -i eth0 -r 30 -T png -o /tmp/

This will create a lanmap.png file under tmp folder

You can see the same screen here

lanmap available options

-o directory -- The directory in which to save the generated images. Default is the current directory.

-e program -- The program to use to generate images. Default is twopi.

-T {png,gif,svg} -- Output image format. Default is png.

-f filter -- Traffic filter, in libpcap syntax.

-D {#,all,raw} -- Debug mode; lots of output, use with caution. #: payload bytes to dump (default: 0)

-r seconds -- Set the time interval between 2 consecutive graph generations. Default is 60 seconds.

-i {?,*wildcard*,iface} -- Interface to use: ?: list all devices and exit *3Com*: use the first NIC with

"3Com" in it

-V -- Version info.

-vv -- Verbose mode, up to 3 levels (-vv, -vv09:21 29/11/2007v).

-h -- Help message.

Sponsored Link

Related posts

You may also like...

7 Responses

  1. MDL says:

    I don’t know if it is the same way in Debian, but in Ubuntu you most likely have to sudo the command for it to work.

  2. Li, Rui says:

    My ubuntu need sudo to run it

  3. kIdFrY says:

    Not sure what I’m doing wrong but when I run lammap, I receive the following output after 30 seconds of monitoring.

    [email protected]_Linux:~$ sudo lanmap -i eth0 -r 30 -T png -o /tmp/
    protocols.c:3090: ASSERTION FAILED: isalpha((unsigned char)node->data.nb_dgm.src_name[0]) && isalpha((unsigned char)node->data.nb_dgm.dest_name[0])
    0000 00 00 11 00 00 00 65 74 68 30 00 00 00 00 00 00 ……et h0……
    0010 00 00 11 00 00 00 01 00 00 00 8F 00 00 00 00 00 …….. ……..
    0020 00 00 09 00 01 00 00 00 FF FF FF FF FF FF 00 50 …….. …….P
    0030 8D F7 58 73 08 00 45 00 00 ED 2E 45 00 00 80 11 ..Xs..E. …E….
    0040 89 07 C0 A8 00 64 C0 A8 00 FF 00 8A 00 8A 00 D9 …..d.. ……..
    0050 A5 5E .^

    currpos: 82

    Any ideas on what this means? I’ll see what I can locate on the forums as well.

    Thank you,

  4. ov3rcl0ck says:

    You do need root privilege to run it on just about any linux system.

  5. Brie says:

    Looks like this has been yanked from the standard repos.

  6. jose says:

    lanmap not found in repos

Leave a Reply

Your email address will not be published.