Questo sito utilizza i cookie per migliorare l'esperienza di navigazione. Continuando la navigazione acconsenti all'utilizzo dei cookie.

DECRYPT WEBLOGIC ADMIN USER PASSWORD


create the following script : $DOMAIN_HOME/security/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)
 
 
 
Get crypted password aand username  from boot.properties : 
 grep password  $DOMAIN_HOME/servers/AdminServer/security/boot.properties|  sed -e "s/^password=\(.*\)/\1/"
 grep username  $DOMAIN_HOME/servers/AdminServer/security/boot.properties|  sed -e "s/^username=\(.*\)/\1/"
 
set environment : 
.   /ltm/oracle/Middleware/user_projects/domains/base_domain/bin/setDomainEnv.sh 
 
 
launch the command and paste the string that you want to decrypt:
java weblogic.WLST decrypt_password.py
({AES}fk9EK...):{AES}noXFmhZdQI7xOf8Hs2zx6Vu/cTWbvi53mRnch04eLNk=
Share

Aggiungi commento


Codice di sicurezza
Aggiorna