在使用WebSphere Application Server时,难免会碰到忘记密码的情况。对于一些WAS新手而言,遇到这样的问题,肯定只能选择重装WAS了,但很多时候如果你的WAS是使用其他的LDAP服务器走用户认证,或者连接的数据库在远程服务器密码忘了,这种情况下“重装”也是没用的。好了不说废话了,相信凡是看这篇文章的人都是很想知道怎么破解这个密码的方法。那我们还是尽快切入正题吧!
首先说一下存储密码的文件路径:[WAS_root]\profiles\[profile_name]\config\cells\[cell_name]\security.xml
例如我本及安装的WebSphere Portal Server所用的WAS密码存储文件就在这个路径下:
C:\IBM\WebSphere\profiles\wp_profile\config\cells\IBM-L\security.xml
然后来看一下密码怎么找:
目前为止我在WAS只用过以下两种密码:
(1) 管理员密码:这个一般都是和管理员的用户名放在一块的。像我这个文件里的管理员用户名是:bradoo 而密码则是:xor}PS0+OzAw
...<userRegistries xmi:type="security:CustomUserRegistry" xmi:id="CustomUserRegistry_1" serverId="bradoo" serverPassword="{xor}PS0+OzAw" ignoreCase="true" customRegistryClassName="com.ibm.websphere.wmm.registry.WMMUserRegistry">
<properties xmi:id="Property_1234689183734" name="WMMUR_LOGGING" value="false" required="false"/>
<properties xmi:id="Property_1234689184391" name="WMMUR_CONFIG" value="C:/PROGRA~1/IBM/SDP70/runtimes/PORTAL~3/wmm/wmmur.xml" required="true"/>
<properties xmi:id="Property_1234689184906" name="WASUSER_REGISTRY_TYPE" value="wmmFileRegistry" required="true"/>
<properties xmi:id="Property_1234689185234" name="wmmUserSecurityNameAttr" value="uid" required="true"/>
<properties xmi:id="Property_1234689185875" name="wasAdminFileLoc" value="C:/PROGRA~1/IBM/SDP70/runtimes/PORTAL~3/wmm/wmmWASAdmin.xml" required="true"/>
</userRegistries>...
(2) J2C 密码:这个也是J2C用户名放在一起。以下是"db2admin"的密码:{xor}DTovMz48Ogg2KzcGMCotGz0eOzI2MQ8oOw==
...<authDataEntries xmi:id="JAASAuthData_1234685624344" alias="wpdbDSJAASAuth" userId="db2admin" password="{xor}DTovMz48Ogg2KzcGMCotGz0eOzI2MQ8oOw==" description="JAAS Alias for DataSource wpdbDS"/>..
最后到了最重要的一步了:破解密码。
其实这个破解方法就是使用WAS自己的加密的API,本来是需要调用好多jar文件才能完成破解的,我为了大家使用方便,花了一些时间,将本来大概10M的jar文件整理了一下,变成本文附件中不到100k的一个jar文件:"password.jar"。为了使用方便,我还写两个可以传参数的bat文件:
encoder.bat 用于加密 使用方法是:encoder "[非加密的密码]",如下图所示:
decoder.bat 用于解密 使用方法是:decoder "[加密的密码]",如下图所示:
到这儿,相信大家都知道怎么用了吧! 以上提到文件都可以在本文的附件中
下载。
- 大小: 8.6 KB
- 大小: 11.4 KB
分享到:
相关推荐
WebSphere Application Server V6WebSphere Application Server V6
WebSphere Application Server V6.1 Security Handbook. WebSphere Application Server V6.1 Security Handbook. WebSphere Application Server V6.1 Security Handbook.
WebSphere Application Server集群和架构FAQ
通过IBM WebSphere Application Server for Developers, 安装 WebSphere Application Server for Developers v8.5 的全过程截图。
Websphere Application Server 6.0配置与管理
IBM WebSphere Application Server v7.0 Security
WAS WebSphere 启动 错误 troubleshooting
WebSphere Application Server 8.0安装指南,完全原创,根据自己的安装全程截图并配详细的文字说明。
WebSphere Application Server for Developers V8.5.5是供开发人员使用的免费版的was,需要的小伙伴可以本地安装一下 ,部署测试web项目,因为上传空间有限,这里就只上传windows64位的。
WebSphere Application Server9.0.0.2 安装包百度云盘资源地址,非商业用途,仅供学习使用。
WebSphere Application Server v6.1 应用管理
WebSphere Application Server V6 System Management & Configuration Handbook
WebSphere Application Server V6 Security Handbook主要描述was中的安全机制问题
IBM WebSphere Application Server - The Complete Reference Part I - Getting Started Chapter 1 - What Is WebSphere? Chapter 2 - Installing and Starting WebSphere Chapter 3 - Hello World (Wide ...
WebSphere Application Server ND V8.5集群,详细图解。
W38S1 Administration of WebSphere Application Server V5.pdf
在Websphere Application Server 经常会出现乱码,有时候可以在项目中去设置,但有时候也是Websphere 造成的,所以需要你手动去更改Websphere 的设置。
WebSphere Application Server V8.5 Administration and Configuration Guide for the Full Profile.pdf 英文文档
Websphere Application Server 6.1配置JDBC数据源 本文旨在于说明在 webSphere中发布项目和配置数据源。以图文的形式给出明确的配置指导。以配置oracle数据库数据源为实例,所有操作步骤都为实践后的操作步骤。
IBM 红皮书 WAS WebSphere Application Server Liberty Profile Guide for Developers