AutoMacro的本意是好的,但过度泛滥,违反了公平的本意。
简单地说,宏里面不再能处理插件提供的命令行执行,宏就是宏,只能执行系统提供的保护函。
分析 PTR 2.4.3的代码文件,这个插件利用的漏洞已被修复,如果更新后进游戏抱错,请自行删除掉AutoMacro。
简单说明如下
在2.4.2
if ( securecall("ChatEdit_HandleChatType", editBox, msg, command, send) ) then
return;
end
改成
在2.4.3
-- Handle chat types. No need for a securecall here, since we should be done with anything secure.
if ( ChatEdit_HandleChatType(editBox, msg, command, send) ) then
return;
end
解释是,这里不再需要使用securecall,因为我们需要让所有东东安全的被执行。就是这样。