piątek, 26 lipca 2013

how to decode weblogic password

1. Make a file with name decryptpasswd.py under your_domain/security folder  with below  
    contents
2.
from weblogic.security.internal import *
from weblogic.security.internal.encryption import *

#This will prompt you to make sure you have SerializedSystemIni.dat file under #current directory from where you are running command
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)

3. Get your encrypt password
4. Now go to  your_domain/bin directory
5. Run setDomainEnv.(sh/cmd)
6. Change directory to your_domain/security ( where you placed decryptpasswd.py script )
7. Run below command

$ java weblogic.WLST decryptpasswd.py

Brak komentarzy:

Prześlij komentarz