mirror of
https://github.com/NohamR/Tweaks.git
synced 2026-08-26 02:39:42 +00:00
1.2 KiB
1.2 KiB
NetworkLogger
Logs every network request and response to the console via os_log. Useful for debugging API calls, reverse-engineering endpoints, and understanding how an app communicates with its backend.
What it hooks
NSURLSessiontask creation (dataTaskWithRequest:,dataTaskWithURL:,uploadTaskWithRequest:fromData:,downloadTaskWithRequest:)NSURLSessionTask resumeNSURLConnection sendAsynchronousRequest:queue:completionHandler:(legacy)
Output format
[NetworkLogger] ▶ REQUEST GET https://platform.runawayplay.com/dragons/api/mailbox
Headers:
Authorization: Bearer <token>
X-Client-Platform: ios
Body: (none)
[NetworkLogger] ◀ RESPONSE GET https://platform.runawayplay.com/dragons/api/mailbox
HTTP 200
Content-Type: application/json
...
Body: {"mailItems": [...]}
Build
make clean && make package THEOS_PACKAGE_SCHEME=rootless
Inject
cyan -i <input.ipa> -o <output_patched.ipa> -f <tweak.deb> -u
Viewing logs
log stream --predicate 'eventMessage contains "NetworkLogger"' --level debug
Or view in Console.app filtering for NetworkLogger.