Giter Site home page Giter Site logo

crackercat / auto-il2cppdumper-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andnixsh/auto-il2cppdumper

1.0 0.0 0.0 228 KB

Internal dumper for Unity3D libil2cpp.so

License: MIT License

C++ 37.91% C 59.56% Java 0.69% Makefile 1.65% Batchfile 0.20%

auto-il2cppdumper-1's Introduction

Auto-Il2cppDumper

Il2CppDumper without Magisk/Zygisk, dump il2cpp data at runtime, can bypass protection, encryption and obfuscation.

This project is based on BrianGIG Auto-Il2cppDumper which I continue to maintain it

Usage

This is full auto, no need to put unity version anymore since it's based on Zygisk-Il2cppDumper.

You can download pre-compiled libs HERE and follow steps below

###jni/Includes/config.h

Uncomment #define RootMode to use it as root mode

#define Sleep X: Default is 2 seconds. Increase if getting issue with dumper, like if not fully dumped

How to use

Non root method

This method requires to modify APK. You may need to bypass APK integrity and signature check if you want to use this method

  • Decompile the game
  • Copy result libil2cppdumper.so into the decompiled folder apk. Make sure only copy same ABIs as the Target App, for example if Target App has only armeabi-v7a, then you should only copy armeabi-v7a
  • Search the main activity in AndroidManifest.xml. Example: com.gameloft.android.XamarinMainActivity
<activity android:configChanges="density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:label="@string/icon_label" android:launchMode="singleTop" android:multiprocess="false" android:name="com.gameloft.android.XamarinMainActivity" android:resizeableActivity="false" android:screenOrientation="sensorLandscape" android:theme="@style/Theme.acp.notitlebar.fullscreen">
    <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
    </intent-filter>
</activity>
  • Locate the smali file of main activity
  • Copy and paste this smali code into onCreate function
 const-string v0, "il2cppdumper"
 
 invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

Like

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    const-string v0, "il2cppdumper"
 
    invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

    whatever code below
  • Re-compile, zipalign and sign the APK
  • Install APK

Root method

This is useful to get around security. Does not need to modify game APK at all! This is a trick to load our fake libunity.so and load game's renamed lib librealunity.so

Note: Some games does not extract the libs in /data/data. In this case, try to use older Android version or modify APK file (See above).

  • Make sure you know the architecture of the game and your device before proceed
  • Rename libil2cppdumper.so lib to libunity.so
  • On rooted device/VM, use any file manager app that can access root. Go to /data/data/(package name)/lib
  • IMPORTANT! Rename game's libunity.so to librealunity.so
  • Put our lib file libunity.so

Dumping

  • Run the game
  • Wait a few seconds. Let the game load into main screen
  • Once the dump complete it will auto generate dump.cs in /storage/emulated/0/Android/data/(Package name)/ (Android 10 and below) or /storage/emulated/0/Download (Android 11 and above) without storage permission

Credits

auto-il2cppdumper-1's People

Contributors

andnixsh avatar bryangig avatar

Stargazers

P.C. avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.