吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 12277|回复: 55
收起左侧

[Python 原创] ida 9.0注册机傻瓜版—完美生成中文用户名!!!

  [复制链接]
shieep 发表于 2025-3-4 22:04
本帖最后由 shieep 于 2025-3-5 19:25 编辑

irabbit原创注册机,本人在此基础上进行改进 。
安装包和原版本注册机全来自下面帖子。
https://www.52pojie.cn/thread-1999866-1-1.html
对您有用请加热心!!!!!!
转载请注明。
改进:
1,不需要改动源码,来写用户名,直接运行,根据提示输入用户名和邮箱。

2,根据win mac linux作了区分,不会运行时显示找不到其他系统下的文件。

3,win系统直接从注册表读取程序目录,不需要拷贝到程序目录运行

4,修改破解逻辑, 现在不需要手动重命名破解文件,原文件加.bak备份。原来在需要备份原版的 ida.dll 和 ida32.dll 文件, 并将 ida.dll.patched 和 ida32.dll.patched 文件重命名为 ida.dll 和 ida32.dll.

5,许可证开始时间自动为当前时间,过期时间为当前时间+10年,而不是固定的,这样显示的时间更长。
6,配置payload里面的owner参数和name一样,就可以显示用户名(根据千百度的研究)。
7,又经过一段时间研究,解决不显示中文用户名问题,请下载附件,代码段为修复中文名前的代码。
image.png

[Python] 纯文本查看 复制代码
import json
import hashlib
import os
from datetime import datetime, timedelta
import platform
import winreg

name = input("Please enter your name(only ascii chars): ")
email = input("Please enter your email: ")
# originally made by irabbit
current_time = datetime.now()
start_date = current_time.strftime("%Y-%m-%d %H:%M:%S")
end_date = (current_time + timedelta(days=365*10)).strftime("%Y-%m-%d %H:%M:%S")

if platform.system() == "Windows":
    try:
        reg_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Hex-Rays SA\IDA Professional 9.0")
        location, _ = winreg.QueryValueEx(reg_key, "Location")
        os.chdir(location)
    except FileNotFoundError:
        print("Registry key not found. Using current directory.")
    except Exception as e:
        print(f"An error occurred: {e}. Using current directory.")

license = {
    "header": {"version": 1},
    "payload": {
        "name": name,
        "email": email,
        "licenses": [
            {
                "description": "license",
                "edition_id": "ida-pro",
                "id": "48-2137-ACAB-99",
                "license_type": "named",
                "product": "IDA",
                "seats": 1,
                "start_date": start_date,
                "end_date": end_date,  # This can't be more than 10 years!
                "issued_on": start_date,
                "owner": name,
                "product_id": "IDAPRO",
                "add_ons": [],
                "features": [],
            }
        ],
    },
}


def add_every_addon(license):
    platforms = [
        "W",  # Windows
        "L",  # Linux
        "M",  # macOS
    ]
    addons = [
        "HEXX86",
        "HEXX64",
        "HEXARM",
        "HEXARM64",
        "HEXMIPS",
        "HEXMIPS64",
        "HEXPPC",
        "HEXPPC64",
        "HEXRV64",
        "HEXARC",
        "HEXARC64",
        # Probably cloud?
        # "HEXCX86",
        # "HEXCX64",
        # "HEXCARM",
        # "HEXCARM64",
        # "HEXCMIPS",
        # "HEXCMIPS64",
        # "HEXCPPC",
        # "HEXCPPC64",
        # "HEXCRV",
        # "HEXCRV64",
        # "HEXCARC",
        # "HEXCARC64",
    ]

    i = 0
    for addon in addons:
        i += 1
        license["payload"]["licenses"][0]["add_ons"].append(
            {
                "id": f"48-1337-DEAD-{i:02}",
                "code": addon,
                "owner": license["payload"]["licenses"][0]["id"],
                "start_date": start_date,
                "end_date": end_date,
            }
        )
    # for addon in addons:
    #     for platform in platforms:
    #         i += 1
    #         license["payload"]["licenses"][0]["add_ons"].append(
    #             {
    #                 "id": f"48-1337-DEAD-{i:02}",
    #                 "code": addon + platform,
    #                 "owner": license["payload"]["licenses"][0]["id"],
    #                 "start_date": "2024-08-10 00:00:00",
    #                 "end_date": "2033-12-31 23:59:59",
    #             }
    #         )


add_every_addon(license)


def json_stringify_alphabetical(obj):
    return json.dumps(obj, sort_keys=True, ensure_ascii=False, separators=(",", ":"))


def buf_to_bigint(buf):
    return int.from_bytes(buf, byteorder="little")


def bigint_to_buf(i):
    return i.to_bytes((i.bit_length() + 7) // 8, byteorder="little")


# Yup, you only have to patch 5c -> cb in libida64.so
pub_modulus_hexrays = buf_to_bigint(
    bytes.fromhex(
        "edfd425cf978546e8911225884436c57140525650bcf6ebfe80edbc5fb1de68f4c66c29cb22eb668788afcb0abbb718044584b810f8970cddf227385f75d5dddd91d4f18937a08aa83b28c49d12dc92e7505bb38809e91bd0fbd2f2e6ab1d2e33c0c55d5bddd478ee8bf845fcef3c82b9d2929ecb71f4d1b3db96e3a8e7aaf93"
    )
)
pub_modulus_patched = buf_to_bigint(
    bytes.fromhex(
        "edfd42cbf978546e8911225884436c57140525650bcf6ebfe80edbc5fb1de68f4c66c29cb22eb668788afcb0abbb718044584b810f8970cddf227385f75d5dddd91d4f18937a08aa83b28c49d12dc92e7505bb38809e91bd0fbd2f2e6ab1d2e33c0c55d5bddd478ee8bf845fcef3c82b9d2929ecb71f4d1b3db96e3a8e7aaf93"
    )
)

private_key = buf_to_bigint(
    bytes.fromhex(
        "77c86abbb7f3bb134436797b68ff47beb1a5457816608dbfb72641814dd464dd640d711d5732d3017a1c4e63d835822f00a4eab619a2c4791cf33f9f57f9c2ae4d9eed9981e79ac9b8f8a411f68f25b9f0c05d04d11e22a3a0d8d4672b56a61f1532282ff4e4e74759e832b70e98b9d102d07e9fb9ba8d15810b144970029874"
    )
)


def decrypt(message):
    decrypted = pow(buf_to_bigint(message), exponent, pub_modulus_patched)
    decrypted = bigint_to_buf(decrypted)
    return decrypted[::-1]


def encrypt(message):
    encrypted = pow(buf_to_bigint(message[::-1]), private_key, pub_modulus_patched)
    encrypted = bigint_to_buf(encrypted)
    return encrypted


exponent = 0x13


def sign_hexlic(payload: dict) -> str:
    data = {"payload": payload}
    data_str = json_stringify_alphabetical(data)
    buffer = bytearray(128)
    # first 33 bytes are random
    for i in range(33):
        buffer[i] = 0x42

    # compute sha256 of the data
    sha256 = hashlib.sha256()
    sha256.update(data_str.encode("gbk"))
    digest = sha256.digest()

    # copy the sha256 digest to the buffer
    for i in range(32):
        buffer[33 + i] = digest[i]

    # encrypt the buffer
    encrypted = encrypt(buffer)

    return encrypted.hex().upper()


def generate_patched_dll(filename):
    if not os.path.exists(filename):
        print(f"Didn't find {filename}, skipping patch generation")
        return

    with open(filename, "rb") as f:
        data = f.read()

        if data.find(bytes.fromhex("EDFD42CBF978")) != -1:
            print(f"{filename} looks to be already patched :)")
            return

        if data.find(bytes.fromhex("EDFD425CF978")) == -1:
            print(f"{filename} doesn't contain the original modulus.")
            return

    data = data.replace(
        bytes.fromhex("EDFD425CF978"), bytes.fromhex("EDFD42CBF978")
    )

    bak_filename = f"{filename}.bak"
    os.rename(filename, bak_filename)
    patched_filename = filename
    with open(patched_filename, "wb") as f:
        f.write(data)

    print(
        f"Generated modulus patch is applied, have you fun! Backup saved to {bak_filename}")


# message = bytes.fromhex(license["signature"])
# print(decrypt(message).hex())
# print(encrypt(decrypt(message)).hex())

license["signature"] = sign_hexlic(license["payload"])

serialized = json_stringify_alphabetical(license)

# write to ida.hexlic
filename = "idapro.hexlic"

with open(filename, "w") as f:
    f.write(serialized)

print(f"Saved new license to {filename}!")
if platform.system() == "Windows":
    generate_patched_dll("ida32.dll")
    generate_patched_dll("ida.dll")
elif platform.system() == "Linux":
    generate_patched_dll("libida32.so")
    generate_patched_dll("libida.so")
elif platform.system() == "Darwin":
    generate_patched_dll("libida32.dylib")
    generate_patched_dll("libida.dylib")



通过再次调试,找到了问题所在,解决了中文用户名的问题,请从附件下载,可以生成中文的KEYGEN

IdaPro9Beta-Keygen-iRabbit.rar (2.54 KB, 下载次数: 1009)

免费评分

参与人数 9吾爱币 +18 热心值 +8 收起 理由
Kasugano + 1 + 1 谢谢@Thanks!
onskk + 1 + 1 谢谢@Thanks!
sblpp + 1 谢谢@Thanks!
LINGLANSO + 1 + 1 谢谢@Thanks!
苏紫方璇 + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
笙若 + 1 + 1 谢谢@Thanks!
kfxllxh + 1 + 1 谢谢@Thanks!
E式丶男孩 + 2 + 1 我很赞同!
ciker_li + 3 + 1 谢谢@Thanks!

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

UNNT7 发表于 2025-3-5 11:52
失败了,安装在C盘不生成破解文件
Kiζs~乄 发表于 2025-3-4 22:27
应该支持中文用户名吧,把 data_str 编码成 utf-8,写 idapro.hexlic 时指定 utf-8 编码
away99 发表于 2025-3-4 22:47
无法无天2020 发表于 2025-3-4 23:23
一看这就是大佬们的,哈哈
freecode 发表于 2025-3-4 23:30
很好,学习学习
MingTian1425 发表于 2025-3-5 07:14
傻瓜版来了!回头试试
ruofei5211 发表于 2025-3-5 07:24
感谢分享,试一下
zhju1978 发表于 2025-3-5 08:03
给大佬点赞,牛
sunyuwa 发表于 2025-3-5 08:20
不太懂,这个是所有软件都能注册吗?
Einsten.M 发表于 2025-3-5 08:36
感谢分享
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-11-17 06:30

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表