Files
Mobile-Security-Framework-M…/mobsf/DynamicAnalyzer/tools/frida_scripts/ios/dump/json.js
T
6e875fb77b Jailbroken iOS Device Support (#2536)
Enables dynamic analysis on real jailbroken iOS devices connected via USB or WiFi SSH, complementing the existing Corellium-based iOS analysis.              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                
  - SSH connectivity — connects to jailbroken devices over USB (via iproxy port forwarding) or WiFi using Paramiko SSH                                         
  - Frida instrumentation — spawns/attaches Frida on-device, with full hook support matching the existing Corellium flow                                       
  - Environment setup — installs AppSync Unified and Frida server on first run; supports both arm and arm64 devices                                            
  - Dynamic analysis — app file extraction, system log streaming (oslog), screenshot capture, process listing, and report generation
  - SSH terminal — execute shell commands on the device over SSH

---------

Co-authored-by: CylentSec <[email protected]>
Co-authored-by: Oz <[email protected]>
2026-03-23 01:46:03 -07:00

15 lines
484 B
JavaScript

function traceJSON(){
send('Tracing JSON Data');
var jsonHook = ObjC.classes.NSJSONSerialization["+ JSONObjectWithData:options:error:"];
Interceptor.attach(jsonHook.implementation,
{
onEnter: function(args) {
var jsonData = ObjC.Object(args[2]);
var jsonStr = jsonData.bytes().readUtf8String(jsonData.length());
send(JSON.stringify({'[MBSFDUMP] json': jsonStr}));
}
});
}
try {
traceJSON();
} catch(err) {}