All Projects → keith → injectURLProtocol

keith / injectURLProtocol

Licence: MIT License
cycript script for injecting a custom NSURLProtocol into a running application

Programming Languages

Cycript
5 projects

Projects that are alternatives of or similar to injectURLProtocol

pytest-faulthandler
py.test plugin that activates the fault handler module during testing
Stars: ✭ 27 (+8%)
Mutual labels:  debugging
elm-monitor
Monitor your elm program with redux-devtools
Stars: ✭ 20 (-20%)
Mutual labels:  debugging
canopy
Web Audio API programming/debugging suite
Stars: ✭ 67 (+168%)
Mutual labels:  debugging
r2lldb
radare2-lldb integration
Stars: ✭ 54 (+116%)
Mutual labels:  debugging
question-driven-learning
Stay hungry stay foolish
Stars: ✭ 17 (-32%)
Mutual labels:  debugging
dwex
DWARF Explorer - a GUI utility for navigating the DWARF debug information
Stars: ✭ 58 (+132%)
Mutual labels:  debugging
CrashLogger
A dll injected into process to dump stack when crashing.
Stars: ✭ 19 (-24%)
Mutual labels:  debugging
Mediator
Cross-platform GUI gRPC debugging proxy
Stars: ✭ 36 (+44%)
Mutual labels:  debugging
slabdbg
GDB plug-in that helps exploiting the Linux kernel's SLUB allocator
Stars: ✭ 55 (+120%)
Mutual labels:  debugging
OpenImageDebugger
An advanced in-memory image visualization plugin for GDB and LLDB on Linux, MacOS and Windows (experimental). Previously known as gdb-imagewatch.
Stars: ✭ 115 (+360%)
Mutual labels:  debugging
pydbg
Python implementation of the Rust `dbg` macro
Stars: ✭ 85 (+240%)
Mutual labels:  debugging
debug.cr
Debug macro for Crystal
Stars: ✭ 86 (+244%)
Mutual labels:  debugging
pretty trace
Love Your Ruby's Backtrace
Stars: ✭ 13 (-48%)
Mutual labels:  debugging
ynm3k
ynm3k.readthedocs.io
Stars: ✭ 20 (-20%)
Mutual labels:  debugging
madbomber
Backtrace-on-throw C++ exception logger
Stars: ✭ 17 (-32%)
Mutual labels:  debugging
WhatTheStack
See a pretty error screen when your Android app crashes
Stars: ✭ 240 (+860%)
Mutual labels:  debugging
m3forth
m3forth is a forth cross-compiler for cortex-m3 ARM microcontrollers
Stars: ✭ 16 (-36%)
Mutual labels:  debugging
WinDbg Scripts
Useful scripts for WinDbg using the debugger data model
Stars: ✭ 92 (+268%)
Mutual labels:  debugging
gdbstub
An ergonomic and easy-to-integrate implementation of the GDB Remote Serial Protocol in Rust, with full no_std support.
Stars: ✭ 158 (+532%)
Mutual labels:  debugging
cproto
Chrome Debugging client for Python
Stars: ✭ 29 (+16%)
Mutual labels:  debugging

injectURLProtocol

This is a simple cycript script for injecting a custom NSURLProtocol that logs every HTTP request.

Installation

Install cycript. If you'd like to use homebrew instead you can use my tap with:

$ brew install keith/formulae/cycript

Then copy injectURLProtocol.cy to somewhere you can reference it.

Usage

Run the script in the process in question:

$ cycript -p APPLICATION injectURLProtocol.cy

Then open Console.app to see messages formatted like this:

1/1/70 00:00:00.000 Slack[83206]: Req: POST https://slack.com/api/api.test?error= Headers: {
    "Content-Type" = "application/x-www-form-urlencoded";
    Origin = "file://";
    "User-Agent" = "...";
}

NOTE: To make it easier to just see these requests, you can filter by searching for Req:

Alternatives

Depending on what else you're doing with cycript, you might actually be better off using CFNETWORK_DIAGNOSTICS which can provide similar functionality without any addition configuration. You can simple using this environment variable when launching the binary in question like this:

$ CFNETWORK_DIAGNOSTICS=3 path/to/binary

Warning

This script could print sensitive information into your console. Be careful out there!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].