All Projects → SmileZXLee → Zxrequestblock

SmileZXLee / Zxrequestblock

Licence: mit
基于NSURLProtocol一句话实现iOS应用底层所有网络请求拦截(含网页ajax请求拦截【不支持WKWebView】)、一句话实现防抓包(使Thor,Charles,Burp等代理抓包方式全部失效,且即使开启了代理,也不影响App内部的正常请求)。包含http-dns解决方法,有效防止DNS劫持。用于分析http,https请求等

Projects that are alternatives of or similar to Zxrequestblock

Ivre
Network recon framework, published by @cea-sec & @ANSSI-FR. Build your own, self-hosted and fully-controlled alternatives to Shodan / ZoomEye / Censys and GreyNoise, run your Passive DNS service, collect and analyse network intelligence from your sensors, and much more!
Stars: ✭ 2,331 (+1356.88%)
Mutual labels:  network, network-monitoring, network-security
Batfish
Batfish is a network configuration analysis tool that can find bugs and guarantee the correctness of (planned or current) network configurations. It enables network engineers to rapidly and safely evolve their network, without fear of outages or security breaches.
Stars: ✭ 592 (+270%)
Mutual labels:  network, network-security
Wfn
Windows Firewall Notifier extends the default Windows embedded firewall by allowing to handle and notify about outgoing connections, offers real time connections monitoring, connections map, bandwidth usage monitoring and more...
Stars: ✭ 404 (+152.5%)
Mutual labels:  network, network-monitoring
Scapy
Scapy: the Python-based interactive packet manipulation program & library. Supports Python 2 & Python 3.
Stars: ✭ 6,932 (+4232.5%)
Mutual labels:  network, network-security
Hack-Utils
Script to facilitate different functions and checks
Stars: ✭ 27 (-83.12%)
Mutual labels:  network-monitoring, network-security
Graphpath
Graphpath generates an ASCII network diagram from the route table of a Unix/Linux
Stars: ✭ 321 (+100.63%)
Mutual labels:  network, network-monitoring
Anubis
🔓Subdomain enumeration and information gathering tool
Stars: ✭ 722 (+351.25%)
Mutual labels:  network, network-security
network-tools
Network Tools
Stars: ✭ 27 (-83.12%)
Mutual labels:  network-monitoring, network-security
Sensu Plugins Network Checks
This plugin provides native network instrumentation for monitoring and metrics collection, including: hardware, TCP response, RBLs, whois, port status, and more.
Stars: ✭ 28 (-82.5%)
Mutual labels:  network, network-monitoring
2016lykagguvenligivesizmatestleri
Network Security Notes ☔️
Stars: ✭ 75 (-53.12%)
Mutual labels:  network, network-security
Networkeye
a iOS network debug library, monitor HTTP requests
Stars: ✭ 1,326 (+728.75%)
Mutual labels:  network, network-monitoring
pycommunityid
A Python implementation of the Community ID flow hashing standard
Stars: ✭ 18 (-88.75%)
Mutual labels:  network-monitoring, network-security
Zeek-Network-Security-Monitor
A Zeek Network Security Monitor tutorial that will cover the basics of creating a Zeek instance on your network in addition to all of the necessary hardware and setup and finally provide some examples of how you can use the power of Zeek to have absolute control over your network.
Stars: ✭ 38 (-76.25%)
Mutual labels:  network-monitoring, network-security
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+2255.63%)
Mutual labels:  network, network-monitoring
BGP-Ranking
BGP ranking is a free software to calculate the security ranking of Internet Service Provider (ASN)
Stars: ✭ 49 (-69.37%)
Mutual labels:  network-monitoring, network-security
Nfstream
NFStream: a Flexible Network Data Analysis Framework.
Stars: ✭ 622 (+288.75%)
Mutual labels:  network-monitoring, network-security
Dotzu
📱👀 In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
Stars: ✭ 1,802 (+1026.25%)
Mutual labels:  network, network-monitoring
analyzer-d4-passivedns
A Passive DNS backend and collector
Stars: ✭ 26 (-83.75%)
Mutual labels:  network-monitoring, network-security
testmynids.org
A website and framework for testing NIDS detection
Stars: ✭ 55 (-65.62%)
Mutual labels:  network-monitoring, network-security
Bmon
bandwidth monitor and rate estimator
Stars: ✭ 787 (+391.88%)
Mutual labels:  network, network-monitoring

ZXRequestBlock

License MIT  CocoaPods  CocoaPods  Support 

安装

通过CocoaPods安装

pod 'ZXRequestBlock'

手动导入

  • 将ZXRequestBlock拖入项目中。

导入头文件

#import "ZXRequestBlock.h"

注意

不支持WKWebView!!


使用方法

拦截全局请求

[ZXRequestBlock handleRequest:^NSURLRequest *(NSURLRequest *request) {
        //拦截回调在异步线程
        NSLog(@"拦截到请求-%@",request);
        dispatch_async(dispatch_get_main_queue(), ^{
            self.blockTv.text = [self.blockTv.text stringByAppendingString:[NSString stringWithFormat:@"拦截到请求--%@\n",request]];
        });
        //在这里可以将request赋值给可变的NSURLRequest,进行一些修改(例如根据request的url过滤单独对一些请求的请求体进行修改等)然后再return,达到修改request的目的。
        return request;
}];

防代理抓包

禁止网络代理抓包(开启后将无法通过网络代理抓包,通过Thor,Charles,Burp等均无法抓取此App的包,且在代理网络下App内部请求不受任何影响)

[ZXRequestBlock disableHttpProxy];

允许网络代理抓包【默认为允许】

[ZXRequestBlock enableHttpProxy];

注意


HTTPDNS

启用HTTPDNS(将会直接从本地或http://119.29.29.29 进行DNS解析,是一种避免DNS劫持的措施)

[ZXRequestBlock enableHttpDns];

关闭HTTPDNS【默认为关闭】

[ZXRequestBlock disableHttpDns];

禁止/恢复所有网络请求

禁止所有网络请求

[ZXRequestBlock cancelAllRequest];

恢复所有网络请求

[ZXRequestBlock resumeAllRequest];

防抓包Demo演示

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].