Created
April 27, 2012 06:41
-
-
Save ochoto/2506677 to your computer and use it in GitHub Desktop.
Decrypt Weblogic 11g password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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