All Projects → nomi9995 → react-native-decompiler

nomi9995 / react-native-decompiler

Licence: AGPL-3.0 license
Decompile React Native Android/IOS Bundle.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-decompiler

Android Crack Tool
🐞Android crack tool For Mac
Stars: ✭ 2,666 (+3317.95%)
Mutual labels:  apk, decompile
Wasmdec
WebAssembly to C decompiler
Stars: ✭ 290 (+271.79%)
Mutual labels:  decompiler, decompile
Apkmod
Apkmod can decompile, recompile, sign APK, and bind the payload with any legit APP
Stars: ✭ 235 (+201.28%)
Mutual labels:  apk, decompile
Firebase Distribution Github Action
This action uploads artifacts (.apk or .ipa) to Firebase App Distribution.
Stars: ✭ 118 (+51.28%)
Mutual labels:  apk, ipa
android-decompile
📱 Decompile android apps with a single command
Stars: ✭ 17 (-78.21%)
Mutual labels:  apk, decompile
Appdeploy
🚀 AppDeploy is the fastest way to get info on your mobile app & deploy it OTA without specific server configuration
Stars: ✭ 166 (+112.82%)
Mutual labels:  apk, ipa
apk-decompiler
Small Rust utility to decompile Android apks
Stars: ✭ 48 (-38.46%)
Mutual labels:  decompiler, apk
Decompile Apk
🔥 Decompile APK(反编译APK)
Stars: ✭ 464 (+494.87%)
Mutual labels:  apk, decompile
Bytecode Viewer
A Java 8+ Jar & Android APK Reverse Engineering Suite (Decompiler, Editor, Debugger & More)
Stars: ✭ 12,606 (+16061.54%)
Mutual labels:  decompiler, apk
Jremapper
Remapping tool for compiled java programs.
Stars: ✭ 97 (+24.36%)
Mutual labels:  decompiler, decompile
Apk Dependency Graph Plugin
Displays dependencies between classes as fancy graph.
Stars: ✭ 36 (-53.85%)
Mutual labels:  apk, decompile
Recaf
The modern Java bytecode editor
Stars: ✭ 3,374 (+4225.64%)
Mutual labels:  decompiler, decompile
Onekey Decompile Apk
一步到位反编译apk工具(onekey decompile apk)
Stars: ✭ 746 (+856.41%)
Mutual labels:  apk, decompile
Command Mobile Penetration Testing Cheatsheet
Mobile penetration testing android & iOS command cheatsheet
Stars: ✭ 221 (+183.33%)
Mutual labels:  apk, ipa
Apk Dependency Graph
Android class dependency visualizer. This tool helps to visualize the current state of the project.
Stars: ✭ 675 (+765.38%)
Mutual labels:  apk, decompile
ti recover
Appcelerator Titanium APK source code recovery tool
Stars: ✭ 17 (-78.21%)
Mutual labels:  decompiler, apk
Reverseapk
Quickly analyze and reverse engineer Android packages
Stars: ✭ 419 (+437.18%)
Mutual labels:  apk, decompile
Appinfoscanner
一款适用于以HW行动/红队/渗透测试团队为场景的移动端(Android、iOS、WEB、H5、静态网站)信息收集扫描工具,可以帮助渗透测试工程师、攻击队成员、红队成员快速收集到移动端或者静态WEB站点中关键的资产信息并提供基本的信息输出,如:Title、Domain、CDN、指纹信息、状态信息等。
Stars: ✭ 424 (+443.59%)
Mutual labels:  apk, ipa
Reko
Reko is a binary decompiler.
Stars: ✭ 942 (+1107.69%)
Mutual labels:  decompiler, decompile
Ilspy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
Stars: ✭ 14,011 (+17862.82%)
Mutual labels:  decompiler, decompile

React Native Decompiler [ALPHA]

A CLI for React Native that allows you to decompile JS code of Android and IOS.

icon

DOES NOT SUPPORT ENCRYPTED/BINARY (FACEBOOK, INSTAGRAM) BUNDLES

Decompiles React Native index.android.bundle JS files. Webpack files too!

Also tries to remove some compilation artifacts (via internal plugins, ESLint, and Prettier) to make it easier to read.

using npx

npx react-native-decompiler

using npm

npm i -g react-native-decompiler
react-native-decompiler

# or you can write blow command

rnd

Usage

Example 1: npx react-native-decompiler -i ./index.android.bundle -o ./output

Example 2: npx react-native-decompiler -i ./main.jsbundle -o ./output

Example 3: react-native-decompiler -i ./index.android.bundle -o ./output

Example 4: rnd -i ./index.android.bundle -o ./output

Command params:

  • -i (required) - input file/folder
  • -o (required) - the path to the output folder
  • -e - a module ID, if specified will only decompile that module & it's dependencies.
  • -p - performance monitoring flag, will print out runtime for each decompiler plugin
  • -v - verbose flag, does not include debug logging (use DEBUG=react-native-decompiler:* env flag for that)
  • --es6 - attempts to decompile to ES6 module syntax.
  • --noEslint - does not run ESLint after doing decompilation
  • --prettier - does not run Prettier after doing decompilation
  • --unpackOnly - only unpacks the app with no other adjustments
  • --decompileIgnored - decompile ignored modules (modules are generally ignored if they are flagged as an NPM module)
  • --agressiveCache - skips some cache checks at the expense of possible cache desync
  • --noProgress - don't show progress bar
  • --debug - when also given a module ID, will print out that modules code after any plugin handles the app.

Android

Extract index.android.bundle from APK

installation of apktool

For Macbook

brew install apktool

For Linux

apt-get install -y apktool

For Window

you can read installion step for window DOCS

after install apktool, unzip apk file by run this command on terminal like this:

apktool  d /pathOfApkFile.apk

After that you will get index.android.bundle file at pathOfApkFile/assets/index.android.bundle

than you can use react-native-decompiler for decompile index.android.bundle file

IOS

Extract main.jsbundle from IPA

you can unzip ipa by unzip command on terminal

$ unzip AppName.ipa

after unzip, you will get Playload folder, then you have to copy main.jsbundle file. there are two ways to copy this file as follow below

  1. run this command cp ./Payload/AppName.app/main.jsbundle ./ to get get main.jsbundle file

  2. Go to Payload folder and right click on AppName.app and choose Show Package Contents then you will find main.jsbundle file at root. you can copy this file to any location

after getting main.jsbundle you can use react-native-decompiler for decompile main.jsbundle file

Valid inputs

The following input formats are currently supported:

  • A single index.android.bundle/main.jsbundle file that contains all modules (most cases for React Native)
  • A folder containing React Native modules (usually called js-modules) in "unbundled" apps
  • A single Webpack entrypoint bundle file (entrypoint bundles begin with !function(e), chunked bundles start with window.webpackJsonp)
  • A folder containg Webpack chunks, where at least one file is the entrypoint

Extending

The decompiler operates on a tagger -> editor -> decompiler system.

  • Taggers - Manipulates the module metadata
  • Editors - Manipulates the module lines (add, move, or remove).
  • Decompilers - Manipulates the module code.

To add a new plugin, add it into the represpective list.

The plugins are initialized per module, so any data you store in your plugins will only persist for the current module.

If your plugin needs to be run before or after other plugins, adjust the ordering in the list, or modify it's pass position.

Guidelines:

  • When doing any modifications to the AST, use the NodePath methods.
  • When you are only doing reading, directly reading from .node is acceptable.

Contributors

All Contributors

Thanks goes to these wonderful people (emoji key):


Richard

💻

Numan

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].