Skip to content

Instantly share code, notes, and snippets.

@staaldraad
Created December 1, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staaldraad/47728dd7de97e69b3e56 to your computer and use it in GitHub Desktop.
Save staaldraad/47728dd7de97e69b3e56 to your computer and use it in GitHub Desktop.
Decode websphere passwords
#!/bin/bash
import sys
import binascii
tmp = binascii.a2b_base64(sys.argv[1])
out = ""
for x in tmp:
out += chr(ord(x)^95) #xor with the underscore char (_)
print out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment