Giter VIP home page Giter VIP logo

c7decrypt's Introduction

Cisco Logo

C7Decrypt

A Ruby-based implementation of a Cisco Type-7 Password Encryptor/Decryptor

Key Benefits

  • Written in Ruby - First and only Cisco Type-7 implementation in Ruby that I know of.
  • Minimal/No Dependancies - Uses native Ruby to do it's work, no heavy dependancies.
  • Not Just a Script - Implementation is portable for use in another project or for automation of tasks.
  • Simple - It is a small project so the interfaces are simple and easy to use.
  • Encrypt & Decrypt - Supports both encryption (with seed control) and decryption operations.

Setup

To install, type

gem install c7decrypt

To install w/ "HighSecurity", type

gem cert --add <(curl -Ls https://raw.github.com/claudijd/c7decrypt/master/certs/claudijd.pem)
gem install c7decrypt -P HighSecurity

Example Command-Line Usage

Run c7decrypt -h to get this

Usage: c7decrypt [option] [hash/file]
    -s, --string [HASH]              A single encrypted hash string
    -f, --file [FILE]                A file containing multiple hashes
    -h, --help                       Show this message

Example: c7decrypt -s 04480E051A33490E
Example: c7decrypt -f config.txt

Example Library Usage(s)

To use, just require

require 'c7decrypt'

Decrypt Cisco Type-7 Password

>> C7Decrypt::Type7.decrypt("060506324F41")
=> "cisco"

Encrypt Cisco Type-7 Password

>> C7Decrypt::Type7.encrypt("cisco")
=> "02050D480809"

Encrypt Cisco Type-5 Password

>> C7Decrypt::Type5.encrypt("cisco")
=> "$1$CQk2$d62sxZKKAp7PHXWq4mOPF."

Rubies Supported

This project is integrated with travis-ci and is regularly tested to work with the rubies defined here.

To checkout the current build status for these rubies, click here.

Contributing

If you are interested in contributing to this project, please see CONTRIBUTING.md

Credits

Sources of Inspiration for C7Decrypt

  • Daren Matthew - For his blog post on the subject aggregating tools and sources that perform the decryption/decoding logic.
  • m00nie - For the blog post on the subject, the source code of type7tool.pl and it's encryption techniques.
  • Roger Nesbitt (mogest) - For the unix-crypt Ruby library that demonstrates Unix MD5 hashing schemes.

Application(s) that use C7Decrypt

  • Marcus J Carey - For his web application implementation of this on the ThreatAgent website. Check it out and start decrypting Cisco type-7 passwords right now.

c7decrypt's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.