Skip to content

Instantly share code, notes, and snippets.

@ochoto
Created April 27, 2012 06:41
Show Gist options
  • Save ochoto/2506677 to your computer and use it in GitHub Desktop.
Save ochoto/2506677 to your computer and use it in GitHub Desktop.
Decrypt Weblogic 11g password
// From http://middlewaremagic.com/weblogic/?p=7265
// Author: René van Wijk
package middleware.magic;
import weblogic.security.internal.SerializedSystemIni;
import weblogic.security.internal.encryption.ClearOrEncryptedService;
import weblogic.security.internal.encryption.EncryptionService;
public class Decrypt {
public static void main(String[] args) {
String string = args[0];
EncryptionService encryptionService = SerializedSystemIni.getEncryptionService();
ClearOrEncryptedService clearOrEncryptedService = new ClearOrEncryptedService(encryptionService);
System.out.println("Clear text password: " + clearOrEncryptedService.decrypt(string));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment