hook eval && bypass native code check
return "function eval() { [native code] }"

经典hook

var a=eval+""
var _eval=eval
eval=function(arg){
    console.log(arg)
    return _eval(arg)
}
eval.toString=function(){return "function eval() { [native code] }"}
var _old=Function.prototype.toString.call;
console.log(_old);
Function.prototype.toString.call=function(arg){
    if(arg==eval){
        return "function eval() { [native code] }"
    }
    return _old.call(this,arg);

}
// console.log(Function.prototype.toString.call(eval))
console.log(Function.prototype.toString.call(RegExp))

永乐
23 声望7 粉丝

目前文章属于笔记类型,暂未整理。 后期会系统化整理。


« 上一篇
JS逆向 02

引用和评论

0 条评论