theevilbit / ciscot7 Goto Github PK
View Code? Open in Web Editor NEWCisco Type 7 Password Decrypter
License: MIT License
Cisco Type 7 Password Decrypter
License: MIT License
I found a bug when trying to encrypt a password. Adding lines override the default value of -d will fix it or setting the default value to -d to False could fit it too. I just added lines to change the default value of -d to false if -e is True in main():
if options.encrypt == True:
options.decrypt = False
I am unable to specify a file name
Should be
def encrypt_type7(pt):
"""
Make Type 7 Cisco password from a string
"""
# salt = random.randrange(0,15)
salt = random.randrange(0, 16)
# returns a number between 0 (included) and 16 (not included)
ep = "%02d" % salt
# first two digits must be decimals
for i in range(len(pt)):
ep += "%02x" % (ord(pt[i]) ^ xlat[salt])
salt += 1
if salt == 51: salt = 0
return ep
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.