一键限制ACE反作弊进程优先级和CPU相关性(SGuardSvc64.exe/SGuard64.exe进程)

该文章已生成可运行项目,

说明

  • 此版本完全基于 ASCII 编码编写,任何 Windows 系统都能兼容,不会出现乱码
  • 核心功能不变(优先级 + CPU 0 相关性配置、PID 动态适配、自动监控)

使用步骤

  1. 启动目标软件(例如三角洲行动)(确保 SGuardSvc64.exe 和 SGuard64.exe 进程已运行或即将启动)
  2. 右键 ACEover.bat → 选择「以管理员身份运行」
  3. 脚本自动检测、配置进程,显示执行结果后,关闭退出

源代码:(放心使用无任何木马)
 

@echo off
chcp 437 >nul 2>&1
setlocal enabledelayedexpansion

set "p1=SGuardSvc64.exe"
set "p2=SGuard64.exe"
set "pri=Idle"
set "check_interval=3"
set "target_core=0"

set "aff_hex=0x%target_core%"
set /a "aff_dec=1<<target_core"

for /f "skip=1 tokens=2 delims==" %%a in ('wmic cpu get NumberOfLogicalProcessors /value 2^>nul') do set "cpu=%%a"
if not defined cpu (
    for /f "tokens=3 delims= " %%a in ('reg query "HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor" /s ^| find /c "ProcessorNameString" 2^>nul') do set "cpu=%%a"
)
if not defined cpu set "cpu=1"

echo ==============================================
echo ACEover - Auto Process Config Tool
echo Target Processes (Order): 1.%p1%  2.%p2%
echo Config: Priority=Low (Idle), CPU=Core %target_core% (Total: %cpu%)
echo Check Interval: %check_interval%s (Auto PID Adapt)
echo ==============================================
echo Operation: 1. Keep script running  2. Start target app
echo Exit: Press Ctrl+C → Type Y → Enter
echo ==============================================
echo.

:MONITOR
set "pid1="
for /f "tokens=2 delims=," %%a in ('tasklist /fi "imagename eq %p1%" /fo csv /nh 2^>nul') do set "pid1=%%~a"
if defined pid1 (
    powershell -Command "(Get-Date -Format 'HH:mm:ss') | ForEach-Object { $t=$_; $p=Get-Process -Id !pid1! -ErrorAction SilentlyContinue; if($p){$p.PriorityClass='%pri%'; try{$p.ProcessorAffinity=%aff_dec%;}catch{$p.ProcessorAffinity=[uint64]'%aff_hex%';} if($p.ProcessorAffinity -eq %aff_dec%){write-host '['$t'] %p1% (PID: !pid1!) Success'}else{write-host '['$t'] %p1% (PID: !pid1!) Priority OK, Affinity Pending'}}}"
)

set "pid2="
for /f "tokens=2 delims=," %%a in ('tasklist /fi "imagename eq %p2%" /fo csv /nh 2^>nul') do set "pid2=%%~a"
if defined pid2 (
    powershell -Command "(Get-Date -Format 'HH:mm:ss') | ForEach-Object { $t=$_; $p=Get-Process -Id !pid2! -ErrorAction SilentlyContinue; if($p){$p.PriorityClass='%pri%'; try{$p.ProcessorAffinity=%aff_dec%;}catch{$p.ProcessorAffinity=[uint64]'%aff_hex%';} if($p.ProcessorAffinity -eq %aff_dec%){write-host '['$t'] %p2% (PID: !pid2!) Success'}else{write-host '['$t'] %p2% (PID: !pid2!) Priority OK, Affinity Pending'}}}"
)

timeout /t %check_interval% /nobreak >nul 2>&1
if errorlevel 1 (
    ping -n %check_interval% 127.0.0.1 >nul 2>&1
)
goto MONITOR

输出示例:

==============================================
ACEover - Auto Process Config Tool
Target Processes (Order): 1.SGuardSvc64.exe  2.SGuard64.exe
Config: Priority=Low (Idle), CPU=Core 0 (Total: 8)
Check Interval: 3s (Auto PID Adapt)
==============================================
Operation: 1. Keep script running  2. Start target app
Exit: Press Ctrl+C → Type Y → Enter
==============================================

[22:40:50] SGuardSvc64.exe (PID: 34644) Success
[22:40:51] SGuard64.exe (PID: 31848) Success

特点:

  • 零依赖:无需安装额外软件 / 模块,纯系统原生命令实现
  • 无乱码:采用 ASCII 编码,兼容所有 Windows 系统区域设置
  • 防闪退:内置重试机制和报错捕获,避免执行中断
  • 极简操作:双击运行(需管理员权限),全程自动化,无需专业知识
本文章已经生成可运行项目
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

混迹网络的权某

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值