Administrator
发布于 2024-08-06 / 30 阅读
0

js 反混淆 操作 hook Function eval

hook `Function`:

```js
Function.prototype.__defineGetter__('constructor', function() {
return function(...args) {
console.log('code:', ...args);
return Function(...args);
};
});

// run code here
```
              
hook eval :


```js
Function.prototype.__defineGetter__('eval', function() {
return function(...args) {
console.log('code:', ...args);
return Function(...args);
};
});

// run code here
```