2 Star 2 Fork 1

donnote/taiko-score-getter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pre_config.bat 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
wuweiliang 提交于 2024-07-01 23:10 . v1.0.0
@echo off
REM ________________________________________________________________
REM Setting working directory to the script directory
cd /d "%~dp0"
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
goto UACPrompt
) else (
goto gotAdmin
)
:UACPrompt
echo Set UAC = CreateObject("Shell.Application") > "%temp%\getAdmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getAdmin.vbs"
"%temp%\getAdmin.vbs"
exit /B
:gotAdmin
del "%temp%\getAdmin.vbs" 2>nul
REM Setting local proxy
set proxy_host=127.0.0.1
set proxy_port=8080
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d %proxy_host%:%proxy_port% /f
curl -x %proxy_host%:%proxy_port% -o mitmproxy-ca-cert.cer http://mitm.it/cert/cer
certutil.exe -addstore root mitmproxy-ca-cert.cer
if %errorlevel% EQU 0 (
echo Cert file is installed successfully
) else (
echo Failed to install cert file
)
exit /B
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/donnote/taiko-score-getter.git
[email protected]:donnote/taiko-score-getter.git
donnote
taiko-score-getter
taiko-score-getter
master

搜索帮助