Password Attacksciscopasswordcrackdecryptencrypttype7

cisco7crack

cisco7crack is used to crack Cisco Type 7 passwords by decrypting and encrypting them. It allows quick decryption of stored passwords on Cisco devices.

Description

This tool is designed to crypt and decrypt Cisco Type 7 passwords, which are a weak form of password storage on Cisco IOS devices. Originally created for quick decryption of stored passwords, Type 7 passwords can be easily cracked by various tools, so their use should be avoided unless required by specific device features.

Use cases include recovering or auditing weak Cisco passwords from configuration files or device outputs during penetration testing or network security assessments. It supports both decryption of ciphertext (default) and encryption of plaintext into Type 7 format, with options to explore multiple encryption variants.

The tool is lightweight, with an installed size of 28 KB, and depends on libc6.

How It Works

cisco7crack implements the reversible Cisco Type 7 password algorithm, a simple XOR-based cipher using a fixed key sequence. Decryption (-d, default) reverses the ciphertext to plaintext. Encryption (-c) applies the algorithm to plaintext, with -a showing all 16 possible variants (due to variable starting keys 0-15), and -#<n> selecting the n-th variant.

Installation

bash
sudo apt install cisco7crack

Flags

-ccrypt <plaintext>
-adisplay all the ways to crypt <plaintext>
-#<0..15>display the n-th way to crypt <plaintext>
-ddecrypt <ciphertext> (default option)
-qcause cisco7crack to be really quiet
-hdisplay this brief usage summary

Examples

Encrypts the plaintext '@l1c3&b0b' using the 3rd encryption variant.
cisco7crack -c#3 '@l1c3&b0b'
Quietly encrypts 'n0v3rb0s3' using the 3rd variant.
cisco7crack -c#3 -q n0v3rb0s3
Decrypts the given Type 7 ciphertext (default -d mode).
cisco7crack 082F1C5A1A490D43000F5E033F78373B
Quietly encrypts 'b@shscr1pt' and captures output for bash scripting.
cisco7crack -cq b@shscr1pt
Displays the brief usage summary and flags.
cisco7crack -h
Encrypts the plaintext 'b@shscr1pt' (uses default variant).
cisco7crack -c b@shscr1pt
Displays all 16 ways to encrypt 'password123'.
cisco7crack -a password123
Updated 2026-04-16kali.org ↗