jeffy

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            70 Posts :: 1 Stories :: 14 Comments :: 0 Trackbacks

          #

          jive database : http://www.jivesoftware.com/builds/docs/forums/5.0.5/documentation/database-guide.html#jiveSearch


          http://www.chinaitpower.com/subject/30.asp

          手把手教你如何破解Jive的 License
          2.1 分析
          jive.license文件的內容是經過了base64編碼的。
          把它反編過來內容如下:
          <license>
          <licenseID>3</licenseID>
          <product>Jive Forums Professional</product>
          <licenseType>Evaluation</licenseType>
          <name />
          <company />
          <version>2.5</version>
          <numCopies>1</numCopies>
          <url />
          <expiresDate>2002/06/26</expiresDate>
          <creationDate>2002/05/26</creationDate>
          <signature>302c02144645c9e37dc97f7baa3d3049ba783ce79b58b3780214167f1c81ea83beacd56c63d15b1c708b47d79487</signature>
          </license>

          其中各元素含義如下:
          licenseID:1-->Basic, 2-->Professional, 3-->Enterprise
          product:Jive Forums Basic, Jive Forums Professional, Jive Forums Enterprise
          licenseType: Non-Commercial, Commercial, Evaluation

          其中expiresDate和creationDate元素限定了使用期限。
          修改expiresDate可以延長時間...... , 去掉該兩項,則expiresDate為無限期,creationDate為系統時間

          但大家要注意的是后面有一個signature元素是簽名信息。如果你修改了上面那些內容,在jive中會無法通過驗證。
          弄不到他的私鑰,無法偽造簽名。 所以你的破解可以有兩種方式,一種是在程序里crack license validate, 另一種是自己生成一對加密匙,用生成的私匙簽名替代掉加密程序中的簽名,這樣你就可以變一個Keygen小程序,生成任意的滿足你需求的License,很酷吧,象網上發布的Weblogic的破解便是采用了這種方法,具體操作就留給大家自己練習吧,在此只介紹第一種方法。

          2.2 破解 使用jad反編譯,修改相應的文件
          -------------------------------------------------------------------------
          2.2.1 破解簽名 解開jive.jar文件,找到com.jivesoftware.forum.LicenseManager類。
          -------------------------------------------------------------------------
          static boolean validate(License license)
          throws Exception
          {
          String publicKey = "308201b73082012c06072a8648ce3804013082011f02818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b6512669455d402251fb593d8d58fabfc5f5ba30f6cb9b556cd7813b801d346ff26660b76b9950a5a49f9fe8047b1022c24fbba9d7feb7c61bf83b57e7c6a8a6150f04fb83f6d3c51ec3023554135a169132f675f3ae2b61d72aeff22203199dd14801c70215009760508f15230bccb292b982a2eb840bf0581cf502818100f7e1a085d69b3ddecbbcab5c36b857b97994afbbfa3aea82f9574c0b3d0782675159578ebad4594fe67107108180b449167123e84c281613b7cf09328cc8a6e13c167a8b547c8d28e0a3ae1e2bb3a675916ea37f0bfa213562f1fb627a01243bcca4f1bea8519089a883dfe15ae59f06928b665e807b552564014c3bfecf492a038184000281800e12e8c79cffbadb747fa05f83e8ad7ce339c670c2b672e80a1f4dab0b0ea2696856212367d0371a8f56c6262ef0e54c8b954ab207e6bfb98cf0faa43a3b73c2a7ddd36c6b45a9fdbf2346124700a9bcb1b65b16a381e5f72368162e2861e2722c1682157055050b1582b8c9a338e44f4296cd225ee267a1bc2faaf71713e176";
          byte pub[] = StringUtils.decodeHex(publicKey);
          X509EncodedKeySpec pubKeySpec = new X509EncodedKeySpec(pub);
          KeyFactory keyFactory = KeyFactory.getInstance("DSA");
          java.security.PublicKey pubKey = keyFactory.generatePublic(pubKeySpec);
          Signature sig = Signature.getInstance("DSA");
          sig.initVerify(pubKey);
          sig.update(license.getFingerprint());
          return sig.verify(StringUtils.decodeHex(license.getSignature())); // here
          ---------------〉 return true;
          }

          -------------------------------------------------------------------------
          2.2.2 生成自己的License 解開jive.jar文件,找到com.jivesoftware.forum.License類。
          -------------------------------------------------------------------------
          將main改為:
          public static void main(String args[])
          throws Exception
          {
          License license = new License(3L, "Jive Forums Enterprise", "2.5", LicenseType.COMMERCIAL);
          license.setName("Warezman"); //anyname maybe yours
          license.setNumCopies(999); //any you want
          license.setNumClusterMembers(999); //any you want
          license.setCompany("warezman"); //any you want
          LicenseFactory.sign(license);
          System.out.println("Validating...");
          System.out.println(LicenseManager.validate(license));
          System.out.println(license.getExpiresDate());
          String xml = toXML(license);
          String x = StringUtils.encodeBase64(xml);
          for(int i = 0; i < x.length(); i += 80)
          System.out.println(x.substring(i, x.length() - i <= 80 ? i + (x.length() - i) : i + 80));
          }

          執行以下命令即可獲得Commerce/Enterprise/...無限期的License
          *** 為了生成license,必須將privkey文件放在d:\下
          set JAVA_HOME=d:\bea\jdk131
          :setEnv
          set CLASSPATH=%JAVA_HOME%\lib\tools.jar; jive_jar_dir\jive.jar; %CLASSPATH%

          java -classpath %CLASSPATH% com.jivesoftware.forum.License

          -----Result like-----> PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxsaWNlbnNlPjxsaWNlbnNlSUQ+MzwvbGljZW5zZUlEPjxwcm9kdWN0PkppdmUgRm9ydW1zIEVudGVycHJpc2U8L3Byb2R1Y3Q+PGxpY2Vuc2VUeXBlPkNvbW1lcmNpYWw8L2xpY2Vuc2VUeXBlPjxuYW1lPkZpUkVTVGFSPC9uYW1lPjxjb21wYW55Pjg4NDhDbHViPC9jb21wYW55Pjx2ZXJzaW9uPjIuNTwvdmVyc2lvbj48bnVtQ29waWVzPjk5OTwvbnVtQ29waWVzPjxudW1DbHVzdGVyTWVtYmVycz45OTk8L251bUNsdXN0ZXJNZW1iZXJzPjx1cmwgLz48ZXhwaXJlc0RhdGUgLz48Y3JlYXRpb25EYXRlPjIwMDIvMDcvMTg8L2NyZWF0aW9uRGF0ZT48c2lnbmF0dXJlPjMwMmMwMjE0M2NkNGRlOTZkNTY2ZGJlOWYwODM2ZjcwN2M4MDgwNTJjZDhhMmU3YTAyMTQ3ODdjNWI4YzFiYTJhZWZhM2U4NGQ4YzZlYmNlOTYzMDY4ODYxMGRlPC9zaWduYXR1cmU+PC9saWNlbnNlPg0K

          This is what you need.

          -------------------------------------------------------------------------
          2.2.3 修改版本由Professional-->Enterprise為 解開jive.jar文件,找到com.jivesoftware.forum.JiveGlobals類。
          -------------------------------------------------------------------------
          public static int getJiveEdition()
          {
          //by FiRESTaR Convert to Enterprise Edition
          //return 101;
          return 102;
          }

          2.3 重新打包
          2.3.1. Now compile source files and then make new jive.jar
          set CLASSPATH=%JAVA_HOME%\lib\tools.jar; jive_jar_dir\jive.jar; %CLASSPATH%
          javac -classpath %CLASSPATH% *.java

          2.3.2 將新的 Licnese.class, LicenseManager, JiveGlobals.class等替換掉jive.jar中的相應文件

          That's all.

          posted @ 2006-10-09 21:53 Live-in Java 閱讀(1170) | 評論 (0)編輯 收藏

          PROPAGATION_REQUIRED:事務傳播行為的標志:

          有以下選項可供使用: 形式是“PROPAGATION,ISOLATION,readonly,-Exception,+Exception".

          PROPAGATION_REQUIRED--支持當前事務,如果當前沒有事務,就新建一個事務。這是最常見的選擇。
          PROPAGATION_SUPPORTS--支持當前事務,如果當前沒有事務,就以非事務方式執行。
          PROPAGATION_MANDATORY--支持當前事務,如果當前沒有事務,就拋出異常。
          PROPAGATION_REQUIRES_NEW--新建事務,如果當前存在事務,把當前事務掛起。
          PROPAGATION_NOT_SUPPORTED--以非事務方式執行操作,如果當前存在事務,就把當前事務掛起。
          PROPAGATION_NEVER--以非事務方式執行,如果當前存在事務,則拋出異常。
          PROPAGATION_NESTED--如果當前存在事務,則在嵌套事務內執行。如果當前沒有事務,則進行與PROPAGATION_REQUIRED類似的操作。

          posted @ 2006-08-30 14:20 Live-in Java 閱讀(144) | 評論 (0)編輯 收藏

          在命令行中輸入:
          ??? ->db2 catalog tcpip node?xxx remote?serverName server 50000?
          ??? ->db2 catalog db?databaseName at node xxx?
          ??? ->db2 connect to?databaseName user Uid using?Pwd?
          ????說明:

          ???????catalog tcpip node xxx 中的xxx是任意起的一個結點名?
          ???????catalog db huaxing at node xxx 中的xxx指的是你在前面起的那個結點名
          ???????serverName 服務器名稱
          ??????? databaseName 數據庫名稱
          ??????? Uid 用戶名
          ??????? Pwd 密碼

          例:
          ??? ->db2 catalog tcpip node xxx remote wjs server 50000?
          ??? ->db2 catalog db huaxing at node xxx?
          ??? ->db2 connect to huaxing user song using 3568974

          posted @ 2006-08-13 00:57 Live-in Java 閱讀(351) | 評論 (0)編輯 收藏

          Websphere ClassLoader:
          http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/0408_baigang/part2.html


          CEI:相關api介紹:
          http://www-128.ibm.com/developerworks/cn/webservices/ws-odbp8/#resources

          http://server.e800.com.cn/articles/server/server_tech/200606/1150786581401_3.html
          http://www-128.ibm.com/developerworks/websphere/techjournal/0408_watkinson/0408_watkinson.html

          利用 WebSphere 管理控制臺配置公共事件基礎架構? http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/0504_watkinson/0504_watkinson.html

          Websphere JMS:
          http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/0304_yu/yu1.html

          JMS 例子: http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/0304_yu/yu3.html

          異步流程開發:(pick,關聯集合)
          http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/lizhi/0501/index.html
          調用流程定義的EJB接口
          // Obtain the initial JNDI context
          Properties prop = System.getProperties();
          prop.put(
          javax.naming.Context.PROVIDER_URL,
          "iiop://localhost:2809");
          context = new InitialContext(prop);

          // Lookup the home interface of the BusinessProcess bean
          Object result =
          context.lookup("com/example/www/process44905808/AsyProcess20030101T000000");

          // Convert the lookup result to the proper type
          AsyProcessHome processHome =
          (
          AsyProcessHome) javax
          .rmi
          .PortableRemoteObject
          .narrow(
          result,
          AsyProcessHome.class);

          // Access the BusinessProcess session bean's remote interface
          AsyProcess ap = processHome.create();
          ap.Listener1("1234");

          posted @ 2006-07-29 17:41 Live-in Java 閱讀(219) | 評論 (0)編輯 收藏

          1. EJB繼承AbstractStatelessSessionBean 方式:
          http://forum.springframework.org/showthread.php?t=18988?客戶端調用。
          2.LocalStatelessSessionProxyFactoryBean 調用 EJB 通過JNDI方式。
          ? <bean id="consumerManager" class="org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean">
          ????? <property name="jndiName" value="local/ConsumerManager"/>
          ????? <property name="resourceRef" value="true"/>
          ????? <property name="businessInterface" value="com.blackhawk.ff.service.ConsumerManager"/>
          ??? </bean>

          http://forum.springframework.org/showthread.php?t=16418&highlight=AbstractStatelessSessionBean
          posted @ 2006-07-14 00:45 Live-in Java 閱讀(170) | 評論 (0)編輯 收藏

          Spring Framework Support Forums > Core Spring & Sub Projects
          http://forum.springframework.org/forumdisplay.php?f=29&page=4&order=desc


          如何在Websphere V5.1上部署企業級應用程序
          http://blog.csdn.net/eye_of_back/archive/2006/03.aspx


          基于Spring框架的WebSphere應用開發
          http://kb.csdn.net/java/Articles/200603/0824bbb1-ac01-41a0-b82d-9e3d3bcbd150.html

          TSS提出兩種新的EJB調用模式
          http://www.jdon.com/jive/article.jsp?forum=91&thread=12347
          http://www.theserverside.com/patterns/thread.jsp?thread_id=22817

          Spring+EJB有兩種應用方式
          http://www.jdon.com/AOPdesign/spring2.htm

          Complete Code For Spring-StateLessSessionBean
          http://forum.springframework.org/showthread.php?t=18988
          How wire session hibernate with SLSB transaction
          http://forum.springframework.org/showthread.php?t=24874
          Spring/Hibernate CMT transaction participation problem
          http://forum.springframework.org/showthread.php?t=22128

          一個Spring+EJB+Jboss失敗的例子
          http://forum.javaeye.com/viewtopic.php?t=18398&start=0&postdays=0&postorder=asc&highlight=&sid=9fd1304a30b0d6e263032d666805e2ed

          一個SLSB+Spring框架的討論
          http://forum.javaeye.com/viewtopic.php?t=18741

          JdonFramework開源項目正式推出!
          http://www.jdon.com/jive/thread.jsp?forum=62&thread=18423&start=60&msRange=15


          KEY WORDS:
          SimpleRemoteStatelessSessionProxyFactoryBean
          hibernate slsb
          posted @ 2006-07-13 01:09 Live-in Java 閱讀(242) | 評論 (0)編輯 收藏

          The use of concrete portlets allows many instances of a portlet to run with different configurations, without creating extra portlet class instances.
          http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/lizhi/0411/part1.html

          開發與部署struts到protal http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/0401_hanis/hanis.html
          posted @ 2006-07-03 17:41 Live-in Java 閱讀(149) | 評論 (0)編輯 收藏

          長期運行的BPEL 流程中staff 動作的程序化控制 ?(有例子,web調用)

          http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/0502_butt/0502_butt.html#download

          通過WebSphere Process Choreographer 使用設計模式實現工作流,第1 部分
          http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/0508_simmons/0508_simmons.html

          基于表單的技術與業務流程整合

          http://www.mywelt.net/?q=node/1571

          使用 WebSphere 工具開發業務流程門戶應用程序? (protal整合流程)
          http://www.chinaitpower.com/2005September/2005-09-09/191760.html

          使用 Process Choreographer 5.1 對 BPEL 流程進行增強的審核日志數據分析和查詢

          http://www.chinakb.net/html/31/7425.html

          BPEL中的用戶解析技術剖析? http://www-128.ibm.com/developerworks/cn/webservices/ws-userresolution/index.html?ca=dwcn-newsletter-webservices


          IBM WebSphere Process Server V6? http://blog.china-pub.com/more.asp?name=jiangsukid&id=32620

          http://www-128.ibm.com/developerworks/cn/websphere/library/techarticles/0512_zhangyu/index.html
          http://www.ibm.com/developerworks/cn/websphere/library/techarticles/0512_zhangyu/index2.html

          http://www-128.ibm.com/developerworks/cn/webservices/

          長期運行的 BPEL 流程中 staff 動作的程序化控制

          IBM? WebSphere? Business Integration Server Foundation's Process Choreographer

          IBM的業務流程建模
          WBI Modeler,WebSphere Business Integration Modeler? 它的核心流程元素有五個,控制流,子流程,規則,角色,OTMPS場景的度量
          創建模型首先要定義流程元

          ·???????? 控制流

          ·???????? 子流程

          ·???????? 策略

          ·???????? 度量
          所以我們應從下面這些來開始描述建模方法:

        1. 標識和列出任務,就是指的用例, 每項任務說明包含輸入、輸出和完成該任務所需的資源。
        2. 任務排序,當然就是指用例的執行順序
        3. 任務之間控制流的創建 ,業務流的走向,它包括數據流和控制流
        4. 流程里面數據的引入 ,應該是指 data repository ,
        5. 流程模型內部服務的集成 ??web service integration ,這個有點不懂,還待研究。
        6. posted @ 2006-06-27 00:08 Live-in Java 閱讀(299) | 評論 (0)編輯 收藏

          1. 創建user時候,需要指定New Host ,%代表任何機器, localhost代表本機。

          2.?mysql的engine類型區別
          ?? MyISAM類型:是默認的engine,不支持事務處理等高級處理,優勢是速度比較快。
          ????? InnoDB類型:提供事務支持以及外部鍵等高級數據庫功能。

          3.指定數據庫engine類型為InnoDB,方法是在啟動數據庫時候,加參數,指定為InnoDB
          ??? "C:\Program Files\MySQL\MySQL Server 4.1\bin\mysqld-nt.exe"?? --default-storage-engine=InnoDB

          4. 指定數據庫編碼為UTF-8:
          ?數據庫編碼默認是latin,指定為utf-8,方法是在創建數據庫時候,指定編碼
          ? CREATE DATABASE sweas DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci


          Mysql4.1 Hibernate3.0下面查詢中文遇到問題:
          加工hibernate.query.factory_class=org.hibernate.hql.classic.ClassicQueryTranslatorFactory? 就可以了
          Hibernate3.0 采用新的基于ANTLR的HQL/SQL查詢翻譯器,org.hibernate.hql.ast.ASTQueryTranslatorFactory ,好像有bug


          posted @ 2006-04-10 10:26 Live-in Java 閱讀(193) | 評論 (0)編輯 收藏

          PostGreSQL8.1 安裝

          ? windows 2000 下面,如果文件系統的格式是 FAT32 ,就不能按照正常的安裝流程。

          如果電腦上沒有 NTFS 分區,安裝成服務就會報錯,可以通過下面方法安裝: ?

          1.? 安裝的時候不要選擇安裝成服務,僅僅安裝軟件,假設到 ? c:\pgsql8.1?

          2.? 管理工具 -> 電腦管理 ? 那里創建普通 windows 用戶,比如 ? postgres ,密碼設置為 ? 55555555?

          3.? 打開 windows 控制臺,假使它為控制臺 ? A?

          4.? 在控制臺 ? A? 運行 ? runas? /user:jeffy\postgres? cmd ,(其中 jeffy 是機器名稱)。就會打開一個以 ? postgres? 用戶身份執行的控制臺,簡稱控制臺 ? B?

          5.? 在控制臺 ? B? 上運行 ? c:\pgsql8.1\bin\initdb? -D? e:\pg_data? 初始化數據庫集群 ?

          6.? 在控制臺 ? A? 執行 ? c:\pgsql\bin\pg_ctl? register? -N? PostgreSQL? -U? posgres? -P? 55555555? -D? d:\pg_data? PG 注冊為 windows 服務,服務名稱為 PostgreSQL

          7.? ? 控制面板 ? -->? 管理工具 ? -->? 服務 ? 中啟動 ? PostgreSQL 可能啟動失敗,是因為創建的用戶 ? postgres? 沒有以服務方式登錄的權限,打開 ? PostgreSQL? 服務的屬性對話框,重新設定密碼即可。 ?

          8.? 控制臺 B ? 創建一個數據庫用戶。 ?

          ??? c:\pgsql8.1\bin\createuser? -a? -d? -P? Administrator? 創建一個超級管理員用戶。

          posted @ 2006-03-23 13:52 Live-in Java 閱讀(483) | 評論 (0)編輯 收藏

          僅列出標題
          共7頁: 上一頁 1 2 3 4 5 6 7 下一頁 
          主站蜘蛛池模板: 任丘市| 七台河市| 金坛市| 郓城县| 秀山| 申扎县| 太仓市| 宜宾市| 油尖旺区| 济阳县| 江华| 莱阳市| 徐州市| 达拉特旗| 长岛县| 沈丘县| 台安县| 泰州市| 秦皇岛市| 雅江县| 龙岩市| 根河市| 岗巴县| 理塘县| 诸暨市| 贡觉县| 和平区| 南丹县| 任丘市| 临湘市| 同德县| 威海市| 喜德县| 灵石县| 于都县| 巫溪县| 玉田县| 台湾省| 顺义区| 清涧县| 温宿县|