SHARE
TWEET

Untitled

a guest May 22nd, 2012 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top