var _constructor = constructor;
Function.prototype.constructor = function(s) {
if (s == "debugger") {
console.log(s);
return null;
}
return _constructor(s);
}
//去除无限debugger
Function.prototype.__constructor_back = Function.prototype.constructor;
Function.prototype.constructor = function() {
if(arguments && typeof arguments[0]==='string'){
if("debugger" === arguments[0]){
return
}
}
return Function.prototype.__constructor_back.apply(this,arguments);
}
var _Function = Function;
Function = function(s) {
if (s == "debugger") {
console.log(s);
return null;
}
return _Function(s);
}
window.setInterval = function(){};
(function() {
Function.prototype.constructor_hook = Function.prototype.constructor
Function.prototype.constructor = function(x){
if (x === "debugger"){
console.log('虚拟机无限debugger')
return {}
}
return Function.prototype.constructor_hook(x)
}
// Function.prototype._constructor = Function.prototype.constructor;
// Function.prototype.constructor = function() {
// if(arguments.toString().includes('debugger')){
// return null
// }
// return Function.prototype._constructor.apply(this,arguments);
// }
var _constructor = constructor;
Function.prototype.constructor = function(s) {
if (s == "debugger") {
console.log(s);
return null;
}
return _constructor(s);
}
var _Function = window.Function;
window.Function = function(s) {
if (s == "debugger") {
console.log(s);
return null;
}
return _Function(s);
}
var setInterval_back = window.setInterval
window.setInterval = function(a,b){
if(a.toString().includes('debugger')){
return null;
}
return setInterval_back(a, b);
}
})();