Skip to content

Instantly share code, notes, and snippets.

@diablowu
Created December 30, 2014 08:32
Show Gist options
  • Save diablowu/7fc22efeca81006d222d to your computer and use it in GitHub Desktop.
Save diablowu/7fc22efeca81006d222d to your computer and use it in GitHub Desktop.
decrypt weblogic 3des
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