All Downloads are FREE. Search and download functionalities are using the official Maven repository.

__pycache__.mitm_start_script.cpython-38.pyc Maven / Gradle / Ivy

Go to download

基于selenium、browserproxy、okhttp等研发的工具包,方便使用。够牛逼!

There is a newer version: 2.0.2
Show newest version
U

??^?	?@s?ddlZddlZddlZddlZddlZddlmZed?ejD]Z	ee	?qBdZ
dZe?d?
e
e??Zejed?Zdd	?Zejd
?dd?Zejdd
?dd?Zejdd
?dd?ZdS)?N)?httpzThe command line arguments are:z	127.0.0.1?8013z{0}:{1})?channelcCs&|sdSt?d|?}|sdS|?d?S)NzBrowserId/(\w+)?)?re?search?group)?	userAgent?m?r?mitm_start_script.py?getBrowserIdsr
)?reqc
Cs~|jd}t|?}|sdStjd|d?}g}t|j?}|??D] \}}tj||d?}|?|?q>tj||j	|j
||jd?}	|	S)Nz
User-Agent?)?mitmserverId?	browserId??name?value)?mitmBinding?url?method?headers?content)rr
?
mitm_flow_pb2?MitmBinding?dict?items?
MitmHeader?append?MitmRequestrrr)
rr	rr?mitmHeaders?
headersMap?k?v?
mitmHeader?mitmRequestrrr?createMitmRequests

r')?flow?returncCsZ|j}t|?}|dkrdSt?|?}|j|_|j|_|jD]}|j|j|j<q:|j	|_	dS)N)
?requestr'?client?
onMitmRequestrrrrrr)r(rr&?fixedMitmRequest?fixedHeaderrrrr*(s

r*c
Cs?|j}|j}t|?}|dkr dS|j}g}t|j?}|??D] \}}tj||d?}	|?	|	?qs 






© 2015 - 2025 Weber Informatics LLC | Privacy Policy