Skip to content

Instantly share code, notes, and snippets.

@alistairmcmillan
Last active September 19, 2019 11:02
Show Gist options
  • Save alistairmcmillan/8a5b3a061e3973b01477d8cc6222a18a to your computer and use it in GitHub Desktop.
Save alistairmcmillan/8a5b3a061e3973b01477d8cc6222a18a to your computer and use it in GitHub Desktop.
# 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