Skip to content

This project try to extract all assets in a cocos2d project using Frida

Notifications You must be signed in to change notification settings

mengxipeng1122/cocos2dExtractAssets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test APK

I am using a popular game using Cocos2d-X for testing.
Download link Game name: 放开那三国
Package name : com.sincetimes.fknsg

How to use

a. Install downloaded apk file to your Android device, and start frida server on your Android device.How to setup your Android device with frida server . And besure your android device have a good Intenet connection, or the app will not start.

b. Set up your NDK environment

    export NDKPATH=<your ndk path for android-ndk-r15c>

c. Connet your android device to you computer, and compile frida agent code

    cd frida
    make  # this command will compile frida agent code, and push .so to your android device

d. Install required node modules

    cd web
    npm i

e. Start web server

    cd web
    npm run dev

Now you can see the web interface in your browser. Visit http://localhost:3000

How to use

The web interface will enumerate all assets within the game. This process may take some time due to the extensive number of assets and is dependent on the performance of your Android device. Once the asset list is populated, you can search for assets by name; the search function is case-insensitive. Clicking on an asset will display its details in the right panel. If the asset is an image, you can click on the image to view it in a new tab. If the asset is a text file, clicking on the text will also open it in a new tab. For all other types of assets, a hexdump will be displayed in the right panel.

Screenshots

  • 001
  • 002

trouble shooting

  1. If you see error message like this:
    error while loading shared libraries: libncurses.so.5 : cannot open shared object file: No such file or directory 

This is because your machine has no libncurses.so.5 file, you can install it by apt install ncurses-dev in termux, or apt install libncurses5 in ubuntu. Or just link libncurses.so.5 to libncurses.so just link libtinfo.so.5 to libtinfo.so You can find these files in your linux system at /usr/lib/x86_64-linux-gnu

About

This project try to extract all assets in a cocos2d project using Frida

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published