It's all about IAM

Weblogic Password Decrypt

Recover the forgotten password of weblogic:


Run setWLSEnv.sh or setDomainEnv.sh
And run below code:

public static void main(String[] args) {
System.out.println("Weblogic Password Decryptor");
String path = "/opt/Oracle/user_projects/domains/base_domain/security"; 


// Path for SerializedSystemIni.dat file
 

String encryptPassword = "{AES}GaEknL4mi65+nUpsoSttcNMfDA8QUX+k6DkEQl4pePw="; 

// You can find this value from boot.properties of config.xml
 

ClearOrEncryptedService ces = new ClearOrEncryptedService(SerializedSystemIni.getEncryptionService(path));
 

encryptPassword = encryptPassword .replace("\\", "");
System.out.println("Plain Text Password :: " + ces.decrypt(encryptPassword));

}


Note:

You can run this code in your local by copying SerializedSystemIni.dat file on your local machine but you must have Middleware Home on your local machine