How do I Decrypt Cisco Passwords? |
|
If `service password-encryption` is configured on the Cisco device, most of the passwords are encrypted using a weak encryption algorithm (Type 7) which is trivial to decrypt. If you have access to the Cisco's configuration file, you can still decrypt the passwords fairly easily. `service password-encryption` is enabled using the following command:
Network administrators often store IOS configuration files on TFTP Cisco uses two encryption methods to secure IOS passwords. The first, type 7, uses a Cisco proprietary weak encryption algorithm. The second, type 5, uses strong MD5 encryption. Cisco Type 7 passwordsIf you see a password in the configuration file with a '7' in the second to last field, that password is encrypted using Cisco's weak proprietary algorithm. For example:
There are many programs available to decrypt Cisco type 7 passwords. Here is a small PERL program to decrypt Cisco type 7 passwords:
Cisco Type 5 passwordsEnable secret passwords are hashed using the MD5 (Message Digest 5) algorithm instead of the weak Cisco proprietary algorithm. Enable secret passwords are not trivial to decrypt. An "enable secret" password is configured using the following command:
If you see a password in the configuration file with a '5' in the second to last field, that password is hashed using the MD5 algorithm. For example:
Although MD5 is a strong algorithm, it may still be attacked with a dictionary attack or a brute force attack. Purchase these excellent books on Cisco security at Amazon.com blog comments powered by Disqus |
Discuss How do I Decrypt Cisco Passwords? in the forums.

