Il2CppInspector 工具linux编译使用
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
文章目录
- 前言
- 一、Il2CppInspector是什么?
- 二、使用步骤
- 1.编译
- 总结
前言
提示:这里可以添加本文要记录的大概内容:
Il2CppInspector工具源码下载编译和使用
提示:以下是本篇文章正文内容,下面案例可供参考
一、Il2CppInspector是什么?
Il2CppInspector是一个解析unity il2cpp的工具,可以通过so和dat文件生成带地址的cs文件,方便查看游戏逻辑。
项目网址:
https://github.com/djkaty/Il2CppInspector
il2cpp各版本c++函数文件定义网址:
https://github.com/4ch12dy/il2cpp/blob/master/unity_2017_x/libil2cpp/il2cpp-api-functions.h
二、使用步骤
1.编译
环境:
ubuntu 22.04
git clone --recursive https://github.com/djkaty/Il2CppInspector
cd Il2CppInspectorsudo apt update
sudo apt install -y apt-transport-https ca-certificates# 下载并安装 Microsoft 包签名密钥
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo rm packages-microsoft-prod.debsudo apt update
sudo apt install -y dotnet-sdk-8.0dotnet --versioncd Il2CppInspector.CLI
dotnet publish -r linux-x64 -c Release//Get all current plugins (optional):../get-plugins.sh
//下载plug 下载不下来手动下下载
//要放在和 Il2CppInspector 执行文同一目录
plug 没有放到执行文同一目录报错:
lxt@lxt-ubuntu:~/code/Il2CppInspector$ ./Il2CppInspector.CLI/bin/Release/netcoreapp3.1/linux-x64/publish/Il2CppInspector
Il2CppInspector Command-Line Edition
Version 2021.1+116c6355e7ee3656eab85ca753f913d428abc7a3
(c) 2017-2021 Katy Coe - www.djkaty.com - www.github.com/djkatyPlugins folder not found. Please ensure you have installed the latest set of plugins before starting. The plugins folder should be placed in the same directory as Il2CppInspector. Use get-plugins.ps1 or get-plugins.sh to update your plugins. For more information, see the Il2CppInspector README.md file.
总结
以上介绍了Il2CppInspector软件的编译和使用