Created
December 30, 2014 08:32
-
-
Save diablowu/7fc22efeca81006d222d to your computer and use it in GitHub Desktop.
decrypt weblogic 3des
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
from weblogic.security.internal import * | |
from weblogic.security.internal.encryption import * | |
raw_input("Please make sure you have SerializedSystemIni.dat inside the current directory, if yes press ENTER to continue.") | |
# Encryption service | |
encryptionService = SerializedSystemIni.getEncryptionService(".") | |
clearOrEncryptService = ClearOrEncryptedService(encryptionService) | |
# Take encrypt password from user | |
pwd = raw_input("Please enter encrypted password (Eg. {3DES}Bxt5E3…): ") | |
# Delete unnecessary escape characters | |
preppwd = pwd.replace("\\", "") | |
# Decrypt password | |
print "Your password is: " + clearOrEncryptService.decrypt(preppwd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment