Compare commits
No commits in common. "069eecd12a510adfc6451d69261434f893d8dc3b" and "a6d71944756980b6705e97500edc6ce9cd19c4a5" have entirely different histories.
069eecd12a
...
a6d7194475
|
|
@ -4,6 +4,7 @@
|
||||||
# @Author :qiangyanwen
|
# @Author :qiangyanwen
|
||||||
# @File :user_entity.py.py
|
# @File :user_entity.py.py
|
||||||
from pydantic import BaseModel, EmailStr
|
from pydantic import BaseModel, EmailStr
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
|
||||||
class UserFrom(BaseModel):
|
class UserFrom(BaseModel):
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,14 @@ class Listener:
|
||||||
ctx.log.error('mitmproxy intercept http error:' + repr(e))
|
ctx.log.error('mitmproxy intercept http error:' + repr(e))
|
||||||
|
|
||||||
def response(self, flow):
|
def response(self, flow):
|
||||||
resp = flow.response
|
response = flow.response
|
||||||
print('=====>', resp)
|
response_text = response.text
|
||||||
print("--=-====>content===?", resp.content)
|
log_info = ctx.log.info
|
||||||
|
print('=====>', response)
|
||||||
|
print("--=-====>content===?", response.content)
|
||||||
|
print(response_text, "====>text")
|
||||||
|
with open('ut_log.text', 'wb') as f:
|
||||||
|
f.write(response.content)
|
||||||
|
|
||||||
|
|
||||||
class TlsStrategy(ABC):
|
class TlsStrategy(ABC):
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue