Advertisement
Guest User

Untitled

a guest
May 22nd, 2012
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. #!/usr/bin/python
  2. from array import *
  3. import sys
  4.  
  5. if len(sys.argv) != 2:
  6.     print "# BMC Remedy Password Descrambler"
  7.     print "# Author: Meatballs"
  8.     print "# Usage: ./password.py ciphertext"
  9. else:
  10.     cipherText = sys.argv[1]
  11.     print "CipherText: " + cipherText
  12.  
  13.     cipher = array('c', 'kszhxbpjvcgfqntm')
  14.     plainText = "PlainText: "
  15.     i = 0
  16.  
  17.     while i < len(cipherText):
  18.         x = cipher.index(cipherText[i]) * 16
  19.         i += 1
  20.         y = cipher.index(cipherText[i])
  21.         z = x + y
  22.         plainText += chr(z)
  23.         i += 1
  24.  
  25.     print plainText
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement