Hacking a router/switch by SNMP protocol

Hey guys, today I will be posting about how to hack a Cisco switch / router in windows OS. It is especially used in your college / organisation. Make sure you know the IP address of your rotuer or L3 switch.

Things you need:
  • Cain & Abel software
  • puTTy ( To connect to the switch/router)
  • Notepad++ (to understand config file easily. U can use notepad too)
So, first of all fire up cain & abel, then navigate to CCDU in the top tab.





Then click on + button at the top. It will prompt  you to type Hostname/IP address. Type your default gateway / router IP there and set SNMP read/write to public or private. Public and private are the most used ones.


After that you will see text file in there. Open the text file, search for Cisco type 7 type password hash.


Copy the hash after "7" in the line "username xxxx 7 hash". Now open cain & abel, in the top you will see Cisco type-7 Password Decoder option. click on that and copy your hash to decode it. There you go, you got the password for the username mentioned above.

Now open puTTy and type the router IP/ gateway IP and login using the credentials. Boom! you are in :)


Failure reasons:
  •  The router does not have SNMP protocol configured in it.
  • The SNMP community name is wrong. It is possible to bruteforce the SNMP community name through kali linux.
There are many other reasons if this method does not work. Also what you got is only the 'basic access' where you cannot edit the configuration file. If there is a type-5 password set, it needs to be brute forced or there are other methods to bypass that security. I will discuss about them in later posts.


SHARE
    Blogger Comment
    Facebook Comment

1 comments:

  1. Right now most laws only apply to cyber threats such as hacking or death threats.how to hack text messages

    ReplyDelete

If you have any queries, I will be glad to help :) So comment here.