Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netanelc305/darwin_ssl_sniffer
Utility for sniffing SSL/TLS encrypted traffic on a darwin-based platforms.
https://github.com/netanelc305/darwin_ssl_sniffer
Last synced: 3 months ago
JSON representation
Utility for sniffing SSL/TLS encrypted traffic on a darwin-based platforms.
- Host: GitHub
- URL: https://github.com/netanelc305/darwin_ssl_sniffer
- Owner: netanelc305
- Created: 2023-06-19T09:16:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-29T13:15:20.000Z (12 months ago)
- Last Synced: 2024-10-13T11:27:25.862Z (3 months ago)
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 23
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
**Utility for sniffing SSL/TLS encrypted traffic on a darwin-based platforms.**
`CFNetwork.framework` contains a debug/verbosity global, enforcing a dump of every packet transferred through it, to be
logged into device syslog in plaintext form. In order to have a nicer view with clean control flow of this traffic, we
attach each such packet appropriate TCP flags and write it back into a PCAP file.This allows us to later dissect this traffic using popular and convenient tools (e.g. Wireshark 🦈).
On iOS, this will require a jailbroken iOS device.
# Installation
```shell
python3 -m pip install -U darwin-ssl-sniffer
```# Usage
## Local macOS machine
Simply execute:
```shell
# output file can be given using the -o option (traffic.pcapng by default)
python3 -m darwin_ssl_sniffer sniff
```## Jailbroken iOS device
- Download and install [`rpcserver`](https://rpc-project.readthedocs.io/en/latest/getting_started/installation.html) on
a jailbroken device.
- Execute:
```shell
python3 -m darwin_ssl_sniffer mobile setup -p 5910
```
This step should be performed only once on the device. The first time will require a device reboot (you will be
prompted to if this is indeed the first time).
- Execute:
```shell
# output file can be given using the -o option (traffic.pcapng by default)
python3 -m darwin_ssl_sniffer mobile sniff
```