Created
December 1, 2015 14:07
-
-
Save staaldraad/47728dd7de97e69b3e56 to your computer and use it in GitHub Desktop.
Decode websphere passwords
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
#!/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