BrettVerney / ciscoPWDhasher

A Python Cisco IOS, IOS-XE and NX-OS password hashing tool
MIT License
24 stars 5 forks source link

Doesn't work in C2960X #8

Open fgozdev opened 2 years ago

fgozdev commented 2 years ago

I have tried this C2960X and even when the hash is created fine the SW doesn't accepts it as valid.

Cisco-2960X(config)#username test privilege 15 secret 5 $1$Oh9i$VEEjjTMjnWVl18hXNoNjR. ERROR: The secret you entered is not a valid encrypted secret. To enter an UNENCRYPTED secret, do not specify type 5 encryption. When you properly enter an UNENCRYPTED secret, it will be encrypted.

Is there something on the switch configuration that could make it work for you and not for me? I cannot think of anything in particular.

Thanks

superadm1n commented 1 year ago

I have just tested on a 2960x, specifically hardware cisco WS-C2960X-48FPD-L and had no issue

2960xswitch(config)#username test privilege 15 secret 5 $1$Oh9i$VEEjjTMjnWVl18hXNoNjR.
 WARNING: Command has been added to the configuration using a type 5 password. However, type 5 passwords will soon be deprecated. Migrate to strong password type
2960xswitch(config)#

What hardware type and software version are you running? providing the output of show version will help.

2960xswitch#show ver

~ Output Truncated ~

Switch Ports Model                     SW Version            SW Image
------ ----- -----                     ----------            ----------
*    1 54    WS-C2960X-48FPD-L         15.2(7)E5             C2960X-UNIVERSALK9-M

2960xswitch#