删除了一些print语句
This commit is contained in:
parent
b58fe23e8b
commit
6cc1c9ecc3
@ -9,7 +9,7 @@ import adbutils
|
|||||||
from mitmproxy import http
|
from mitmproxy import http
|
||||||
from mitmproxy.tools.main import mitmdump
|
from mitmproxy.tools.main import mitmdump
|
||||||
|
|
||||||
auto_jump = False
|
auto_jump = True
|
||||||
|
|
||||||
# 拦截 HTTP 响应,检查 URL 并逐个字段替换
|
# 拦截 HTTP 响应,检查 URL 并逐个字段替换
|
||||||
def response(flow: http.HTTPFlow):
|
def response(flow: http.HTTPFlow):
|
||||||
@ -22,7 +22,6 @@ def response(flow: http.HTTPFlow):
|
|||||||
if "application/json" in flow.response.headers.get("Content-Type", ""):
|
if "application/json" in flow.response.headers.get("Content-Type", ""):
|
||||||
# 读取原始响应体
|
# 读取原始响应体
|
||||||
response_text = flow.response.text
|
response_text = flow.response.text
|
||||||
print(response_text)
|
|
||||||
|
|
||||||
# 使用正则表达式逐个替换字段
|
# 使用正则表达式逐个替换字段
|
||||||
response_text = re.sub(r'"answer":"[^"]+"', '"answer":"1"', response_text)
|
response_text = re.sub(r'"answer":"[^"]+"', '"answer":"1"', response_text)
|
||||||
@ -56,7 +55,6 @@ def swipe_screen():
|
|||||||
|
|
||||||
device = adbutils.adb.device()
|
device = adbutils.adb.device()
|
||||||
device.shell(command)
|
device.shell(command)
|
||||||
print(command)
|
|
||||||
|
|
||||||
def answer_write(answer):
|
def answer_write(answer):
|
||||||
time.sleep(13)
|
time.sleep(13)
|
||||||
|
Loading…
Reference in New Issue
Block a user