Weblogic AES加密内容破解(数据源文件内的数据库密码和设置启动免输入的weblogic用户和密码)

it2023-12-27  67

一,找到weblogic的安装目录下的wlst.sh脚本

二,wlst.sh脚本

三,设置3个参数

逐条输入 domain = "/weblogic/bea/user_projects/domains/ha_domain/" service = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domain) encryption = weblogic.security.internal.encryption.ClearOrEncryptedService(service)

注意domain是想要解密的jdbc或者boot.properties所在的域, 每个域的加密方式和/weblogic/bea/user_projects/domains/ha_domain/security/SerializedSystemIni.dat 有关。service和encryption的内容不用变化。

四,解密

#解密 print "Weblogic server Admin password: %s" %encryption.decrypt("{AES}jBc835/0vZp+gydyyc0bml4rXNfrowNIYlsUhrb/Xt8=") #也可调用encrypt方法进行加密 print "Weblogic server Admin password: %s" %encryption.encrypt("hacljslrl0620") {AES}jBc835/0vZp+gydyyc0bml4rXNfrowNIYlsUhrb/Xt8\= 密码中的\需要去掉,转义或者不去会报错

如果使用别的域的加密的内容去解密的话会报如下错误

 

摘抄整理自:https://blog.csdn.net/yh_1524/article/details/105523227

最新回复(0)