Files
search_stores/搜索店铺2/启动抓包.bat
T
2026-10-28 14:37:48 +08:00

39 lines
1.2 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
cd /d "%~dp0"
rem 在 cmj 目录里跑抓包,抓到的包会写进本目录,界面默认就能读到。
rem 必须用 Python3.10:PATH 里默认的 python 是 Minconda,缺依赖。
set "PY310=C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe"
if not exist "%PY310%" (
echo 找不到 Python3.10: %PY310%
pause
exit /b 1
)
rem 8080 被占用说明已经有一个抓包在跑,再起一个会失败
netstat -ano | findstr ":8080" | findstr "LISTENING" >nul 2>&1
if not errorlevel 1 (
echo.
echo [警告] 8080 端口已经被占用,可能已经有一个抓包脚本在跑。
echo 同时跑两个会冲突。请先关掉那个,或者直接开界面。
echo.
choice /c YN /m "仍然继续启动"
if errorlevel 2 exit /b 1
)
echo 正在启动抓包脚本...
echo.
echo 1. 看到「代理已经打开!」后再去手机上刷新美团外卖页面
echo 2. 手机上看到弹窗 MARKET_程序启动正常 就说明注入成功
echo 3. 然后另开一个窗口跑 启动界面.bat
echo.
echo 关闭这个窗口会停止抓包(系统代理需要手动关掉)。
echo.
"%PY310%" "script_all25_便利店保存.py"
echo.
echo 抓包已停止。别忘了把系统代理关掉。
pause