Simple iOS app blackbox assessment tool. Powered by frida.re and vuejs.
npm install -g passionfruit
passionfruit
- Cross plarform web GUI!
- Also supports non-jailbroken device (see Non-jailbroken device).
- List all url schemes.
- List human readable app meta info (Info.plist).
- Capture screenshot.
- Checksec: see if target app is encrypted, and has enabled PIE, ARC and stack canary.
- App sandbox file browser. Directly preview images, SQLite databases and plist files on device. You can always download the file for further investigation.
- Check the loaded frameworks. Hook exported native functions from these dylib to print the arguments and stack trace.
- Log SQLite operations.
- Log and try to bypass jailbreak detection.
- List Objective-C classes from app, hook the methods and inspect the arguments and stack trace.
- Read keychain items.
- Read cookies.
- Read UserDefaults.
- Simple ui dump.
Checksec, url schemes and metainfo.
File browser with hex viewer, image viewer, plist viewer and SQLite database reader.
Loaded frameworks and their exported symbols.
Objective C classes and methods.
Intercepted calls, arguments and stack trace.
Dump ui description of the key window.
KeyChain reader.
- Latest node.js (>=7.10.1) and npm to run the api server and web gui
- Any modern desktop browser you like
Passionfruit is now avaliable on npm, so just type following command to install:
npm install -g passionfruit
Then launch it:
passionfruit
Note that if the port 31337 is in use, set environment variable PORT
to use an alternative port. Also, setting HOST
can force to listen on an alternative interface, but be careful because it has no authentication yet:
HOST=192.168.1.100 PORT=12345 passionfruit
See https://www.frida.re/docs/ios/
Start
Cydia
and add Frida’s repository by going toManage
->Sources
->Edit
->Add
and enterhttps://build.frida.re
. You should now be able to find and install theFrida
package which lets Frida inject JavaScript into apps running on your iOS device. This happens over USB, so you will need to have your USB cable handy, though there’s no need to plug it in just yet.
Official documentation of frida.re (linked above) also introduces how to inject FridaGadget.dylib to the ipa, requires repack and resign.
Here are some articles about how to do so:
- MonkeyDev/wiki/非越狱App集成#集成frida(Chinese)
- https://github.com/tanprathan/Fridpa
- https://www.nccgroup.trust/uk/about-us/newsroom-and-events/blogs/2016/october/ios-instrumentation-without-jailbreak/
Clone this project and install requirements:
git clone https://github.com/chaitin/passionfruit.git
npm run init
For those who wants to contribute, you may probably need to restart the api server and reload webpage each time you make a change. The following steps enable livereload.
You need three individual shells simultaneously.
npm run dev
cd gui
npm run dev
Frida agent needs to be compiled at the first time:
npm run prepare
If you need livereload like webpack, use:
npm run watch
Now open http://localhost:8080
in browser.
This project uses the lastest ECMAScript feature in server side. You need nodejs v7.10.1 at least, but v8.x and above is recommended. I've got some users reporting that yarn is not compatible with lower nodejs version.
Make sure you have frida.re successfully installed. Also, check if the version on of frida on device matches. Frida offers both 32bit and 64bit version, wrong architecture will not work.
Users from China mainland may encounter network problem. Try npm mirrors like cnpm.
All npm command mentioned above can be replaced with yarn, if you prefer.
Besides, after updating source with git pull
, or having nodejs engine upgraded, you may need to remove node_modules
directory and re-run npm install
.
The app you're trying to attach has multiple processes, and frida couldn't decide which one to inject. You can try terminate the app via device gesture.
MIT