Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Friday, October 16, 2020

WebLogic password decryption:

source $DOMAIN_HOME/bin/setDomainEnv.sh

grep password $DOMAIN_HOME/servers/AdminServer/security/boot.properties | sed -e "s/^password=\(.*\)/\1/"

cd $DOMAIN_HOME/security

java weblogic.WLST decrypt_password.py

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

cat decrypt_password.py

from weblogic.security.internal import *

from weblogic.security.internal.encryption import *

encryptionService = SerializedSystemIni.getEncryptionService(".")

clearOrEncryptService = ClearOrEncryptedService(encryptionService)

# Take encrypt password from user

pwd = raw_input("Paste encrypted password ({AES}fk9EK...): ")

# Delete unnecessary escape characters

preppwd = pwd.replace("\\", "")

# Display password

print "Decrypted string is: " + clearOrEncryptService.decrypt(preppwd)

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

cd /u01/APPS/fs1/FMW_Home/user_projects/domains/EBS_domain/bin

$ . setDomainEnv.sh

grep password $DOMAIN_HOME/servers/AdminServer/security/boot.properties | sed -e "s/^password=\(.*\)/\1/"

{AES}Dmp67vNZSWnrVVIiM9mQTNT10RvVb+E25VettYNJfuzk=

$

cd $DOMAIN_HOME/security

$ java weblogic.WLST decrypt_password.py

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Paste encrypted password ({AES}fk9EK...): {AES}Dmp67vNZSWnrVVIiM9mQTNT10RvVb+E25VettYNJfuzk=

Decrypted string is: ********** >>(Password)

$


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

cd /u01/app/oracle/middleware/oracle_common/common/bin

./wlst.sh

wls:/offline> domain = "/u01/data/domains/DOMAIN_domain/"

wls:/offline> service = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domain)

wls:/offline> encryption = weblogic.security.internal.encryption.ClearOrEncryptedService(service)

wls:/offline> print encryption.decrypt("{AES}shlOmkwqDdyL+0LW9KapN3gf/4R+Tj44yfNRt+pqWNJAYoJpXvBddeFqSFhPOxY1")

No comments:

Post a Comment