ChiChou / bagbak

Yet another frida based iOS dumpdecrypted. Also decrypts app extensions
MIT License
1.12k stars 184 forks source link

error when dumping some apps #102

Closed asdfzxcvbn closed 11 months ago

asdfzxcvbn commented 12 months ago

Describe the bug for example, Picsart fails to dump successfully. the dumping process ends like so:

patch PluginKit validation
dump extensions
FATAL ERROR: session detached
reason: process-terminated
unable to dump plugins Error: Script is destroyed
Please file a bug to https://github.com/ChiChou/bagbak/issues
Error: Script is destroyed
    at onScriptDestroyed (/usr/local/lib/node_modules/bagbak/node_modules/frida/dist/script.js:125:26)
FATAL ERROR
[Error: Script is destroyed]

To Reproduce Steps to reproduce the behavior:

just try dumping picsart, for example bagbak Picsart

Expected behavior A clear and concise description of what you expected to happen.

extensions get dumped correctly and the script doesnt exit.

Screenshots If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

ChiChou commented 11 months ago

v3.0.0 全部重写的架构已发布

asdfzxcvbn commented 11 months ago

v3.0.0 全部重写的架构已发布

thank you, this update is amazing! i can't believe how fast it decrypts now.. there's just one issue: the directory structure of the ipa is invalid. it should be:

Example.ipa
├─ Payload/
│  ├─ Example.app/
│  │  ├─ ...

however, bagbak is currently generating it like this:

Example.ipa
├─ var/
│  ├─ folders/
│  │  ├─ c3/
│  │  │  ├─ .../
│  │  │  │  ├─ T/
│  │  │  │  │  ├─ bagbak/
│  │  │  │  │  │  ├─ com.example.app/
│  │  │  │  │  │  │  ├─ Payload/
│  │  │  │  │  │  │  │  ├─ ...
ChiChou commented 11 months ago

@asdfzxcvbn which host OS it is?

asdfzxcvbn commented 11 months ago

@asdfzxcvbn which host OS it is?

it's an iphone 7 running iOS 14.8, dualbooted with https://github.com/dualra1n/dualra1n

asdfzxcvbn commented 11 months ago

@asdfzxcvbn which host OS it is?

oh sorry i mean macos mojave