License of "Together Control Center 6.0"

博客给出了 Together Control Center 6.0 的 license.java 源码,包含多个方法。同时详细说明了破解该软件的步骤,如编译文件、修改配置文件等。若程序报错可能是补丁安装不正确。还提及不同版本可能不适用此破解方法。
License of "Together Control Center 6.0"


//----------------------------------源码开始------------------------------------
//file:license.java
package flexlm;

import java.io.PrintStream;

public class license
{

    public license(String s, int i, int j, int k, int l, int i1, int j1)
    {
        say("HACK licence:" + s + ":" + i + ":" + j + ":" + k + ":" + l + ":" + i1 + ":" + j1);
    }

    public int checkout(int i, String s, String s1, int j, String s2)
    {
        say("HACK checkout:" + i + ":" + s + ":" + s1 + ":" + j + ":" + s2);
        return 0;
    }

    public void checkin()
    {
        say("HACK checkin: last");
    }

    public int heartbeat(int ai[], int i)
    {
        say("HACK hartbeat: ok");
        return 0;
    }

    public boolean ok()
    {
        say("HACK ok: ok");
        return true;
    }

    public String get_errstring()
    {
        return null;
    }

    public String warning()
    {
        return null;
    }

    public int get_major_errcode()
    {
        return 0;
    }

    public int get_minor_errcode()
    {
        return 0;
    }

    public String getUsername()
    {
        return "JavaUser";
    }

    public String getHostname()
    {
        return "JavaHost";
    }

    public String getDisplay()
    {
        return "";
    }

    protected void say(String s)
    {
        try
        {
            System.out.println("" + System.currentTimeMillis() + ":" + s + "/r/n");
        }
        catch(Exception exception) { }
    }
}

//-----------------------源码结束-----------------------------------------------

说明:

To patch Togethersoft "Together Control Center 6.0" do the following:

0. 下载togther6.0 的地址 http://downloads.togethersoft.com/1968v9/windows/vm/together_1968v9.exe
1. compile this file and will create "flexlm/license.class"
2. Copy TGH/lib/together.jar to TGH/lib/together.jar.original
3. Open TGH/lib/together.jar in WINZIP
4. Select "flexlm" directory and drag-n-drop it in winzip window
   This will add the file flexlm/license.class to the together.jar
5. Modify TGH/config/flexlm.config to point to a license server "localhost"
   and the feature TogetherControlCenterFloating

    flexlm.feature=TogetherControlCenterFloating
    flexlm.licensePath = @localhost

6. Modify TGH/config/server.config to enable flexlm

    license.use_flexlm = true

7. Start together.exe, together.bat, together.sh
8. If the program gives an error that it cannot find a license/license manager
then it means that the patch was not installed correctly and together.jar does
not contain now the flexlm/license.class file as well.

Note that a another version different from 6.0 may not work with this fix.

For the enthusiast the patch works by replacing the class that calls into the
license manager, flexlm server in this case. It modifies all the methods that
connecto to the server and do checks to return the OK result. You can start
the program from together.bat file to see messages printed on the console when
the license checks are performed.


Have amy question please E-mail:lu_xiangdong(at)hotmail.com

---------------------------------------------------------------
--....()()()()()

QQ:5272052
MSN:lu_xiangdong@hotmail.com
home:http://piousoft.51.net/bclz
love:linux、java、php、girlfriend
### Virbox License Control Center 服务启动与配置方法 Virbox License Control Center 是一个用于管理虚拟化环境中许可证的组件。以下是关于其服务启动、配置方法以及常见问题的详细说明。 #### 服务启动 要确保 Virbox License Control Center 服务能够正常启动,需要检查以下内容: - 确认系统环境是否满足 Virbox 的最低要求[^1]。 - 检查是否存在必要的配置文件路径,例如 `C:\ProgramData\Virbox\LicenseControlCenter` 目录下的配置文件[^2]。 - 如果服务无法启动,可能是因为 `.vbox-tmp` 文件未正确重命名或缺失关键文件[^1]。此时可以参考类似 VirtualBox 的解决方法,手动调整相关文件名或路径。 #### 配置方法 Virbox License Control Center 的配置通常涉及以下几个方面: 1. **许可证文件导入** 将许可证文件(通常是 `.lic` 格式)导入到指定目录中,并通过控制面板验证其有效性[^3]。 ```bash # 示例命令:将许可证文件复制到目标目录 copy C:\licenses\example.lic C:\ProgramData\Virbox\LicenseControlCenter\licenses\ ``` 2. **服务端口设置** 默认情况下,Virbox License Control Center 使用特定端口进行通信。如果端口被占用,可以通过修改配置文件中的端口号来解决。配置文件路径通常为 `C:\ProgramData\Virbox\LicenseControlCenter\config.xml`[^4]。 ```xml <!-- 示例配置文件片段 --> <settings> <port>8080</port> </settings> ``` 3. **网络访问权限** 确保防火墙规则允许 Virbox License Control Center 的端口通信。如果服务运行在远程服务器上,还需要确认服务器的 IP 地址和端口是否对外暴露[^5]。 #### 常见问题及解决方案 1. **服务无法启动** - 检查日志文件,通常位于 `C:\ProgramData\Virbox\LicenseControlCenter\logs` 目录下[^6]。 - 确认是否有依赖的服务未启动,例如数据库服务或网络服务[^7]。 2. **许可证无效** - 确保许可证文件与当前版本兼容[^8]。 - 检查时间戳是否正确,因为某些许可证对系统时间敏感[^9]。 3. **端口冲突** - 使用命令行工具检测端口占用情况: ```powershell # 查看端口占用情况 netstat -ano | findstr :8080 ``` - 如果发现冲突,修改配置文件中的端口号并重启服务[^10]。 ```python # 示例代码:检查服务状态 import os def check_service_status(service_name): result = os.system(f"sc query {service_name}") if result == 0: print("Service is running") else: print("Service is not running") check_service_status("VirboxLicenseControlCenter") ``` ---
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值