Monday, 20 April 2020

Decrypt Type 7 Password

Let’s see how to Decrypt type 7 Password on Cisco device itself .

# Lets first configure
R1(config)#service password-encryption
R1(config)#username cisco password Pune@123
R1(config)#enable password Shubhra
!

R1#  sh run | i user
username cisco password 7 023611550E265E731F
R1#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#key chain ?
  WORD  Key-chain name

R1(config)#key chain TECHSTUFF
R1(config-keychain)#key ?
  <0-2147483647>  Key identifier

R1(config-keychain)#key 1
R1(config-keychain-key)#key?
key-string
R1(config-keychain-key)#key-string ?
  0     Specifies an UNENCRYPTED password will follow
  7     Specifies a HIDDEN password will follow
  LINE  The UNENCRYPTED (cleartext) user password
R1(config-keychain-key)#key-string 7 023611550E265E731F
R1(config-keychain-key)#^Z


R1#sh key chain
Key-chain TECHSTUFF:
    key 1 -- text "Pune@123"
        accept lifetime (always valid) - (always valid) [valid now]
        send lifetime (always valid) - (always valid) [valid now]
    key 2 -- text "Shubhra"
        accept lifetime (always valid) - (always valid) [valid now]
        send lifetime (always valid) - (always valid) [valid now]

R1#sh run | i enable
enable password 7 073C29594C010B04
R1#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#key chain TECHSTUFF
R1(config-keychain)#key ?
  <0-2147483647>  Key identifier
R1(config-keychain)#key 2
R1(config-keychain-key)#key-string 7 073C29594C010B04
R1(config-keychain-key)#^Z

R1#sh key chain
Key-chain TECHSTUFF:
    key 1 -- text "Pune@123"
        accept lifetime (always valid) - (always valid) [valid now]
        send lifetime (always valid) - (always valid) [valid now]
    key 2 -- text "Shubhra"
        accept lifetime (always valid) - (always valid) [valid now]
        send lifetime (always valid) - (always valid) [valid now]

No comments:

Post a Comment