Thursday, April 29, 2021

Decrypt weblogic password

 Encrypted passwords can be found in

$DOMAIN_HOME/config/config.xml

$DOMAIN_HOME/config/jdbc/*.xml

$DOMAIN_HOME/servers/Adminserver/security/boot.properties

 

Get the password in AES format to decrypt

+++++++++++++++++++++++++++++++++++++++++++++++

cat $DOMAIN_HOME/config/config.xml|grep  AES

or

cat $DOMAIN_HOME/servers/AdminServer/security/boot.properties|grep AES

 

Execute wlst

 

cd $ORACLE_HOME/oracle_common/common/bin

./wlst.sh

 

Provide inputs as below

=========================

domain = "/******/domain_home/user_projects/domains/fmw_domain"

service = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domain)

encryption = weblogic.security.internal.encryption.ClearOrEncryptedService(service)

print encryption.decrypt("{AES}mjbmTdQOQn/KmutJ9vGWguA78WUo2QupUn5FlUb4IJo=")

 

No comments:

Post a Comment