反编译并修改授权验证类 gpx.class
/Applications/JIRA Client.app/Contents/Resources/Java/components/almworks-tracker.jar
关键修改点:
1、原有代码:
public static byte[] b(byte abyte0[])
{
try
{
Cipher cipher = Cipher.getInstance("TripleDES");
cipher.init(2, a());
byte abyte1[] = cipher.doFinal(abyte0);
return abyte1;
}
catch(NoSuchAlgorithmException nosuchalgorithmexception)
{
throw new afh(10, nosuchalgorithmexception);
}
catch(NoSuchPaddingException nosuchpaddingexception)
{
throw new afh(10, nosuchpaddingexception);
}
catch(InvalidKeyException invalidkeyexception)
{
throw new afh(11, invalidkeyexception);
}
catch(IllegalBlockSizeException illegalblocksizeexception)
{
throw new afh(12, illegalblocksizeexception);
}
catch(BadPaddingException badpaddingexception)
{
throw new afh(12, badpaddingexception);
}
}
修改为:
public static byte[] b(byte abyte0[])
{return abyte0; }
2、原有代码
boolean flag = signature.verify(abyte1);
修改为
boolean flag = true;
然后自己建立个明文licese文件,格式如下:
<almworks>
<licenseTerms version="2">
<UserName>suddy</UserName>
<UserCompany>TEAM</UserCompany>
<LicenseType>SITE</LicenseType>
<CustomerID>1337-1337</CustomerID>
<AdditionalInfo></AdditionalInfo>
<X-Gen-Version>0.3</X-Gen-Version>
<feature name="jira">
<active>true</active>
</feature>
<Signature>aU5WaVNpQkxFIFRFQU0=</Signature>
</licenseTerms>
<license><LicenseType>VALID</LicenseType>
<Signature>aU5WaVNpQkxFIFRFQU0=</Signature>
</license>
<padding>no-777-no-888-no-999-no-111-no-222-no-333-no-444-no-555-no-666-no-777</padding>
</almworks>
由于不再验证签名等因素,随便改成自己想要的就成。
附上修改完成的almworks-tracker.jar以及licese文件,需要的可以直接用jar文件替换/Applications/JIRA Client.app/Contents/Resources/Java/components下的同名文件后用license文件注册
注:仅在mac osx 3.0.2版本下测试通过