Can’t read contents of React Native index.android.bundle

> file index.android.bundle index.android.bundle: Unicode text, UTF-8 text, with very long lines (56418), with no line terminators 

I want to bypass root detection of some React Native app but not able to see the app code to use dynamic instrumentation to manipulate the code

What I tried:

  1. ​

https://infosecwriteups.com/lets-know-how-i-have-explored-the-buried-secrets-in-react-native-application-6236728198f7

tldr: create .html file with http://./index.android.bundle and open using google chrome dev tools -> sources

Didn’t work, the file didn’t show and got this error log

Uncaught SyntaxError: Invalid or unexpected token

  1. react-native-decompiler package

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

    Reading file… [!] No modules were found! [!] Possible reasons: [!] – The React Native app is unbundled. If it is, export the “js-modules” folder from the app and provide it as the –js-modules argument [!] – The bundle is a Hermes/binary file (ex. Facebook, Instagram). These files are not supported [!] – The provided Webpack bundle input is not or does not contain the entrypoint bundle [!] – The provided Webpack bundle was built from V5, which is not supported [!] – The file provided is not a React Native or Webpack bundle.

Any suggestions? or is there another way to bypass root detection without the need to read the file contents? Thanks

submitted by /u/Insid3Play
[link] [comments]

July 28, 2023
Read More >>