{"id":3149,"date":"2009-04-16T22:38:45","date_gmt":"2009-04-16T14:38:45","guid":{"rendered":"http:\/\/www.sunnyblog.net\/blog\/?p=3149"},"modified":"2009-04-16T22:38:45","modified_gmt":"2009-04-16T14:38:45","slug":"%e4%bb%8ewebsphere%e5%bd%93%e4%b8%ad%e6%81%a2%e5%a4%8d%e5%af%86%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.sunnyblog.net\/blog\/archives\/3149","title":{"rendered":"\u4eceWebSphere\u5f53\u4e2d\u6062\u590d\u5bc6\u7801"},"content":{"rendered":"<p>WebSphere\u4f1a\u5728\u914d\u7f6e\u6587\u4ef6\uff08\u4e00\u5806\u7684XML\uff09\u5f53\u4e2d\u5b58\u653e\u5404\u79cd\u5bc6\u7801\uff08\u5305\u62ec\u6570\u636e\u6e90\u3001\u8ba4\u8bc1\u522b\u540d\u7b49\u7b49\uff09\uff0c\u4f8b\u5982\u5728$WAS_Profile_HOME\\config\\cells\\security.xml\u6587\u4ef6\u91cc\u9762\u6709\u7c7b\u4f3c&#8221;&lt;authDataEntries xmi:id=&#8221;JAASAuthData_1238489272531&#8243; alias=&#8221;myNode01\/oracleDBA&#8221; userId=&#8221;oraadmin&#8221; password=&#8221;{xor}bm1sa2pp&#8221;\/&gt;&#8221;\uff0c\u5c31\u662f\u5b58\u653e\u8ba4\u8bc1\u522b\u540d\u4e3aoracleDBA\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u5728\u8fd9\u91cc\u5bc6\u7801\u88ab\u91cd\u65b0\u7f16\u7801\uff08encode\uff09\u4e86\uff0c\u7f16\u7801\u7684\u65b9\u5f0f\u662fXOR\uff08eXclusive OR\u5f02\u6216\uff09\uff0c\u5f88\u660e\u663e\u8fd9\u79cd\u5e76\u4e0d\u662f\u4e00\u79cd\u5f3a\u52a0\u5bc6\u7684\u7b97\u6cd5\uff0c\u4ec5\u4ec5\u662f\u4e00\u79cd\u7f16\u7801\u800c\u5df2\uff0c\u6240\u4ee5\u51c6\u786e\u6765\u8bf4WebSphere\u4e3a\u4e86\u907f\u514d\u5bc6\u7801\u88ab\u660e\u6587\u8bb0\u5f55\uff0c\u53ea\u662f\u5f88\u7b80\u5355\u5730\u201c\u7f16\u7801\u201d\uff08encode\uff09\u800c\u4e0d\u662f\u201c\u52a0\u5bc6\u201d\uff08encrypt\uff09\u3002<\/p>\n<p>\u4e07\u4e00\u9601\u4e0b\u4e00\u4e2a\u4e0d\u5c0f\u5fc3\u5fd8\u8bb0\u4e86\u5b58\u653e\u5728WebSphere\u91cc\u9762\u7684\u5bc6\u7801\uff0c\u4f46\u662f\u53c8\u60f3\u6062\u590d\u8fc7\u6765\u7684\u8bdd\uff0cWebSphere\u8fd9\u79cd\u53ea\u662f\u7f16\u7801\u800c\u4e0d\u662f\u52a0\u5bc6\u7684\u5b58\u653e\u5bc6\u7801\u5f62\u5f0f\uff0c\u5c31\u5e2e\u52a9\u4e86\u4f60\u4e86\u3002\u5f53\u7136\u5982\u679c\u4f60\u60f3\u5e72\u574f\u4e8b\u7684\u8bdd\uff0cWebSphere\u4e5f\u7b97\u662f\u7ed9\u81ea\u5df1\u7559\u4e0b\u4e86\u4e00\u4e2a\u201c\u540e\u95e8\u201d\u4e86 -_-b\u3002\u563f\u563f\u563f\uff0c\u4e0d\u8981\u4ee5\u4e3aIBM\u90a3\u5e2e\u8001\u7237\u5b50\u5c31\u662f\u8fd9\u4e48\u61d2\uff0c\u5982\u679c\u9601\u4e0b\u771f\u7684\u662f\u8981\u5bf9\u5b58\u653e\u5728WebSphere\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u7684\u5bc6\u7801\u8981\u52a0\u5bc6\u7684\u8bdd\uff08\u5bf9\u4e8e\u5e7f\u5927\u5ba2\u6237\u80af\u5b9a\u662f\u6709\u8fd9\u4e2a\u8bc9\u6c42\u7684\uff09\uff0c\u5176\u5b9eIBM\u4e5f\u63d0\u4f9b\u4e86\u4e00\u79cd\u81ea\u5b9a\u4e49\u52a0\u5bc6\u7b97\u6cd5\u7684\u63d2\u4ef6\u5f62\u5f0f\u53bb\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\uff0c\u8be6\u60c5\u53ef\u4ee5\u53c2\u8003<a href=\"http:\/\/www-01.ibm.com\/support\/docview.wss?rs=180&amp;uid=swg21210244\" target=\"_blank\" rel=\"noopener noreferrer\">\u8fd9\u4e2a\u94fe\u63a5<\/a>\uff0c\u5728\u8fd9\u91cc\u5c31\u4e0d\u5bf9\u8fd9\u4e2a\u95ee\u9898\u8fdb\u884c\u5c55\u5f00\u8ba8\u8bba\u4e86\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u73b0\u5728\u5c31\u5bf9\u5404\u4e2a\u7248\u672c\u7684WAS\u7684\u5bc6\u7801\u7f16\u7801\u548c\u53cd\u7f16\u7801\u8fdb\u884c\u8ba8\u8bba\uff1a<\/p>\n<p>WAS 5.X\u7684\u7f16\u7801\uff1a<\/p>\n<blockquote><p>&gt; cd $WAS_INSTALL_DIR\/lib<br \/>\n&gt; ..\/java\/bin\/java -cp securityimpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordEncoder 123456<\/p><\/blockquote>\n<p>WAS 5.X\u7684\u53cd\u7f16\u7801\uff1a<\/p>\n<blockquote><p>&gt; cd $WAS_INSTALL_DIR\/lib<br \/>\n&gt; ..\/java\/bin\/java -cp securityimpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordDecoder {xor}bm1sa2pp<\/p><\/blockquote>\n<p>WAS 6.0\u7684\u7f16\u7801\uff1a<\/p>\n<blockquote><p>&gt; cd $WAS_INSTALL_DIR\/lib<br \/>\n&gt; ..\/java\/bin\/java -cp securityimpl.jar:iwsorb.jar::ras.jar:wsexception.jar:bootstrap.jar:emf.jar:ffdc.jar com.ibm.ws.security.util.PasswordEncoder 123456<\/p><\/blockquote>\n<p>WAS 6.0\u7684\u53cd\u7f16\u7801\uff1a<\/p>\n<blockquote><p>&gt; cd $WAS_INSTALL_DIR\/lib<br \/>\n&gt; ..\/java\/bin\/java -cp securityimpl.jar:iwsorb.jar::ras.jar:wsexception.jar:bootstrap.jar:emf.jar:ffdc.jar com.ibm.ws.security.util.PasswordDecoder {xor}bm1sa2pp<\/p><\/blockquote>\n<p>WAS 6.1\u7684\u7f16\u7801\uff1a<\/p>\n<blockquote><p>&gt; cd $WAS_INSTALL_DIR\/bin\\ProfileManagement\\plugins\\com.ibm.websphere.v61_6.1.200<br \/>\n&gt; java -cp ws_runtime.jar com.ibm.ws.security.util.PasswordEncoder 123456<\/p><\/blockquote>\n<p>WAS 6.1\u7684\u53cd\u7f16\u7801\uff1a<\/p>\n<blockquote><p>&gt; cd $WAS_INSTALL_DIR\/bin\\ProfileManagement\\plugins\\com.ibm.websphere.v61_6.1.200<br \/>\n&gt; java -cp ws_runtime.jar com.ibm.ws.security.util.PasswordDecoder\u00a0 {xor}bm1sa2pp<\/p><\/blockquote>\n<p>\u4ee5\u4e0a\u5185\u5bb9\u53c2\u8003\u8f6c\u8f7d\u81ea<a href=\"http:\/\/robertmaldon.blogspot.com\/2006\/07\/recovering-passwords-from-websphere.html\" target=\"_blank\" rel=\"noopener noreferrer\">robertmaldon<\/a>\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u5982\u679c\u4f60\u89c9\u5f97\u5f88\u9ebb\u70e6\u7684\u8bdd\uff0c\u5176\u5b9e\u4e5f\u6709\u4e00\u4e2a\u7f51\u7ad9\u76f4\u63a5\u5e2e\u4f60\u89e3\u7801\uff1a<a href=\"http:\/\/www.sysman.nl\/wasdecoder\/\" target=\"_blank\" rel=\"noopener noreferrer\">WebSphere Password Decoder<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WebSphere\u4f1a\u5728\u914d\u7f6e\u6587\u4ef6\uff08\u4e00\u5806\u7684XML\uff09\u5f53\u4e2d\u5b58\u653e\u5404\u79cd\u5bc6\u7801\uff08\u5305\u62ec\u6570\u636e\u6e90\u3001\u8ba4\u8bc1\u522b\u540d\u7b49\u7b49\uff09\uff0c\u4f8b\u5982\u5728$WAS_P &hellip; <a href=\"https:\/\/www.sunnyblog.net\/blog\/archives\/3149\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u4eceWebSphere\u5f53\u4e2d\u6062\u590d\u5bc6\u7801<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[5,17],"tags":[37,43,44,55,131],"class_list":["post-3149","post","type-post","status-publish","format-standard","hentry","category-develop","category-digest","tag-decode","tag-encode","tag-encrypt","tag-ibm","tag-websphere"],"_links":{"self":[{"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/posts\/3149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/comments?post=3149"}],"version-history":[{"count":0,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/posts\/3149\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/media?parent=3149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/categories?post=3149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sunnyblog.net\/blog\/wp-json\/wp\/v2\/tags?post=3149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}