date: 2024/6/21
通过使用process monitor监听clash发现,在点击开启系统代理与关闭系统代理时程序调用了一个名为sysproxy.exe的程序
进一步监听sysproxy.exe,同时查看该程序的process start操作,点击可以查看到调用该程序时传递的参数
#开启时
Command line:	sysproxy.exe global 127.0.0.1:7890 "localhost;127.*;10.*;172.16.*;172.17.*;172.18.*;172.19.*;172.20.*;172.21.*;172.22.*;172.23.*;172.24.*;172.25.*;172.26.*;172.27.*;172.28.*;172.29.*;172.30.*;172.31.*;192.168.*;<local>"
Current directory:	D:\ruanjian\clash_win\Clash\resources\static\files\win\common\
#关闭时
Command line:	sysproxy.exe set 1
Current directory:	D:\ruanjian\clash_win\Clash\resources\static\files\win\common\
所以即可使用该命令程序来实现在命令行中启动关闭clash中的系统代理