2020
09-28
09-28
Python3自定义http/https请求拦截mitmproxy脚本实例
脚本内容代码如下:frommitmproxyimporthttp,ctxfrommultiprocessingimportLockclassFilter:def__init__(self,filter_info):self.log_info=""self.mutex=Lock()self.filter_info=filter_infoself.response_file=Noneself.switch_on=Falseself.log_file="log.txt"deflog(self,info)->None:self.log_info+=f"{info}\n\n"defwrite_log(self,mode="w+")->None:...
继续阅读 >