2

Click here to load reader

Switch Miner z

Embed Size (px)

Citation preview

Page 1: Switch Miner z

7/23/2019 Switch Miner z

http://slidepdf.com/reader/full/switch-miner-z 1/2

========================================================================  TCONSOLE APPLICATION : Switch Miner v3.10 Project Overview========================================================================

Switch Miner analyzes Cisco switches. Using SNMP it creates a flat filethat contains Interface Info, speed, duplex, MAC Addr's, Vlans, IP's andDNS/NBT Computer names and users for devices connected to the switch.

sm.exe -s <switch> [options]Required:-s | --switch Switch Name/IPOptional:-r | --router Router Name/IP for Layer 3 Info-f | --file Read devices from file-c | --config Configuration file (Default is sm.conf)-n | --name Output specific filename (Default is Device name)-p | --ping Ping Sweep-d | --discovery CDP Discovery-o | --oui Generate OUI File-h | --help Print Usage Message--search Search for a MAC address XX-XX-XX-XX-XX-XXX

Without a router no layer 3 info will be shown.

Examples:sm.exe -s MySwitch : Generate a file for a switch with no Layer 3 info.sm.exe -s Myswitch -r Myrouter : Generate a file for a switch with Layer 3 info.

sm.exe -s Myswitch -r Myrouter -d : Generate a file for a switch plus any CDP neighbor switches found.See readme file for more info and examples

-----------------------------------------------------------------------------------

New in Version v3.10-----------------------------------------------------------------------------------

You can now specifiy only a switch if you have no router.Added capabilites to search for a mac address only by using the --search option. You can now have multiple routers either on the command line or in a text file ifyou have multiple L3 gateways for a switch.

Examples

sm -s Myswitchhis will output the single switch listed with no L3 information.

sm -s Myswitch -r Myrouter

This will output the single switch listed.

sm -s Myswitch -r Myrouter -dThis will output the switch plus any CDP neighbor switches found.

sm -f switches.txtThis will read the file and output all the switches in the file.

sm -f switches -dThis will read the file and output all the switches in the file plus any CDP nei

Page 2: Switch Miner z

7/23/2019 Switch Miner z

http://slidepdf.com/reader/full/switch-miner-z 2/2

ghbor switches discovered.The file must be in the format <switch>, <router> see sample-switches.txt

sm -oThis will download and build a new OUI.txt file, it downloads the file from http://www.ieee.org/netstorage/standards

sm -r Myrouter -s Myswitch -p -dThis will perform a ping sweep across the L3 subnets discovered on the router before discovering the switch and will alsofind and scan any CDP neighbor switches. A ping sweep before a switch scan can make the results more complete.

sm -s Myswitch -r Myrouter1 Myrouter2 Myrouter3This will output the single switch listed with L3 information from the routers.

See the file sm.conf for more program options that can be adjusted.

-----------------------------------------------------------------------------------

Compiling Source-----------------------------------------------------------------------------------

The source was compiled in Visual Studio 2013, you will need the latest boostlibraries.

-----------------------------------------------------------------------------------

Donations-----------------------------------------------------------------------------------If you like the program please donate by clicking on the donation tab! This willhelp the development efforts.