MacOSX: how to capture network events? Or: how does Private-Eye works?
Asked Answered
P

2

12

I stumbled upon Private Eye and wonder how it works.

I.e. what APIs it is using to get those information (all incoming/outcoming network connections and the application using it)?

It is installing a kext. Is that needed?

Provencher answered 8/10, 2011 at 12:42 Comment(0)
C
15

Developer here.

It uses a kext to catch the connections. The basic idea is to install a socket filter that gets called whenever there is a network event. The kext will then grab and store whatever information it needs, and communicate it over a kernel control socket to the userland client.

Here's Apple's great intro about making a network kernel extension. http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/NKEConceptual/intro/intro.html

Almost everything in that applies to Private Eye.

Caucasia answered 8/10, 2011 at 15:0 Comment(0)
P
0

chrome://net-internals/#events from google chrome may help, you can try

Paschal answered 26/2, 2013 at 16:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.