任鸟飞逆向2022失落的方舟(LOSTARK)C++逆向安全课程
创造一个新的接口,使用全局变量 otherNode ,无侵入式调用。
调用方法:
let node = otherNode.call(undefined,node)node.operationClass.call(undefined,{red:true,blue:false})node.getSiblings.call(undefined))
window.otherNode = (node) => {
return {
operationClass: (classes) => {
for (let key in classes) {
let method = classes[key] ? 'add' : 'remove'
node.classList[method](key)
}
},
getSiblings : () => {