Last active
September 19, 2019 11:02
-
-
Save alistairmcmillan/8a5b3a061e3973b01477d8cc6222a18a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: http://rewtdance.blogspot.com/2012/05/bmc-remedy-password-descrambling.html | |
#!/usr/bin/python | |
import sys | |
cipher = [] | |
if len(sys.argv) != 2: | |
print ("# BMC Remedy Password Descrambler") | |
print ("# Author: Meatballs") | |
print ("# Usage: ./password.py ciphertext") | |
else: | |
cipherText = sys.argv[1] | |
print ("CipherText: " + cipherText) | |
cipher = 'kszhxbpjvcgfqntm' | |
plainText = "PlainText: " | |
i = 0 | |
while i < len(cipherText): | |
x = cipher.index(cipherText[i]) * 16 | |
i += 1 | |
y = cipher.index(cipherText[i]) | |
z = x + y | |
plainText += chr(z) | |
i += 1 | |
print (plainText) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment