Giter VIP home page Giter VIP logo

nsdtool's Introduction

nsdtool  - netgear switch discovery tool
========================================

-= Abstract =-

This is a toolset of scripts used for discovering of netgear switches in
local networks. The tool consists of some extra features like bruteforce
and setting a new password. Netgear has its own protocol called NSDP Netgear Switch
Discovery Protocol, which is humbly implemented to support security
tests on the commandline and not being bound to the delivered tools by Netgear.
Find more information about the Netgear Switch Discovery Protocol here:
http://en.wikipedia.org/wiki/Netgear_NSDP

-= Usage =-

Define your interface and possible delay in the config.ini.

# cat config.ini 
[NSDP]
SourcePort = 63323				<--- nsdp source
DestPort = 63324				<--- nsdp dest
Interface = eth0				<--- your network interface
DestIP = 255.255.255.255		
Delay = 0.01					<--- interval delay

-= How to find switches supporting the NSDP? =-

Set the nsdtool in shell one in sniffer mode
# ./main.py -s

Set the nsdtool in shell two in discovery mode
# ./main.py -d -t 192.168.1.0/24

If a Netgear device supporting the protocol was found the output on the
sniffer side looks sort like this:

Version : 4 IP Header Length : 5 TTL : 64 Protocol : 17 Source Address :
192.168.1.2 Destination Address : 192.168.1.3
Source Port : 63324 Dest Port : 63323 Length : 143 Checksum : 35212
protocol: NSDP
device: GS100
mac: 31:XX:XX:XX:XX:XX
firmware version: 5.3.2
default gateway: 192.168.1.1
switch ip: 192.168.1.2
subnet mask: 255.255.255.0

-= Set a new password =-

# ./main.py -m 31:XX:XX:XX:XX:XX -sp -cp currentpassword -np mynewpassword

-= Bruteforce the password =-

# ./main.py -m 31:XX:XX:XX:XX:XX -bf passwords.txt -np mynewpassword

Attention, for bruteforcing the -np password is used as well. This means for the bruteforce mechanism new password option is used.
You have to set the old pw after you cracked it by your own.

-= Reboot the device =-
# ./main.py -m 31:XX:XX:XX:XX:XX -r -p currentpassword

-= Coding =-

Implemented at OHM2013 by Stephan Zeisberg of Curesec GmbH. If you find any bugs let us know at [email protected]

nsdtool's People

Stargazers

 avatar

Watchers

 avatar

Forkers

5l1v3r1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.