Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网络监控里面为什么不直接hook socket #9

Open
hcl416029105 opened this issue Dec 4, 2017 · 3 comments
Open

网络监控里面为什么不直接hook socket #9

hcl416029105 opened this issue Dec 4, 2017 · 3 comments
Assignees

Comments

@hcl416029105
Copy link

Network监控里面用到的NSURLConnection,NSURLSession,CFNetwork,最底层还是使用的socket,我们要同时监控NSURLConnection,NSURLSession,CFNetwork。那为什么不直接监控iOS里面的socket呢?

@aozhimin
Copy link
Owner

aozhimin commented Dec 4, 2017

@hcl416029105 BSD Socket 函数在 iOS 真机上实际测试下来是没有办法 hook 成功的,参考这个 Issue

@aozhimin
Copy link
Owner

aozhimin commented Feb 26, 2018

@Liman123 确实不能 hook socket

@zhaowq32
Copy link

那为啥close和send等bsd函数可以被hook成功?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants