先安装IDA pro,安装好后,把根目录中的 ida32.dll和ida.dll赋值到python文件脚本同目录中,如图。

直接运行py
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!

最低0.47元/天 解锁文章
5万+

被折叠的 条评论
为什么被折叠?



