[ad] CDPSnarf if a network sniffer exclusively written to extract information from CDP packets. It provides all the information a “show cdp neighbors detail” command would return on a Cisco router and even more. The application is written in C using the popular PCAP library. Sample Output Cisco AIR-AP1231G-E-K9 Access Point:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
$ sudo ./cdpsnarf eth2 Waiting for a CDP packet... [#0] Sniffed CDP advertisement with a size of 367 bytes. ------------------------------------------------------- CDP Version: 2 TTL: 180 ms Checksum: 0x7282 Device ID: cisco-ap.mydomain.net Software version: Cisco IOS Software, C1200 Software (C1200-K9W7-M), Version 12.3(8)JEA, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Wed 23-Aug-06 16:42 by kellythw Platform: cisco AIR-AP1231G-E-K9 Addresses: 1 Address #: 1 Protocol type: [1] NLPID format Protocol: [0xCC] IP IP Address: 157.228.87.1 Port ID: Dot11Radio0 Capabilities: [0x02] Transparent bridge |
You can download […]