Hi
I'm using Anti Anti Debug version 1.0.7 in Google Chrome version 145.0.7632.117
The extension is allowed on all sites.
A page I'm visiting (I won't post the link here in case they find it and adapt their site) has an iframe on it with some content, and the following javascript within the contents of that iframe:
<script>
(function() {
const detectDevTools = () => {
const threshold = 100;
const check = () => {
const start = performance.now();
debugger;
return performance.now() - start > threshold;
};
if (check()) {
emitEvent(true);
}
};
const emitEvent = (isOpen) => {
console.log(`DevTools is ${isOpen ? 'open' : 'closed'}`);
if (isOpen) {
window.location.href = "https://example.com";
}
};
setInterval(detectDevTools, 500);
debugger;
})();
</script>
If I open then close DevTools (in it's own window) the iframe then redirects to example.com
Hope you can help
Hi
I'm using Anti Anti Debug version 1.0.7 in Google Chrome version 145.0.7632.117
The extension is allowed on all sites.
A page I'm visiting (I won't post the link here in case they find it and adapt their site) has an iframe on it with some content, and the following javascript within the contents of that iframe:
If I open then close DevTools (in it's own window) the iframe then redirects to example.com
Hope you can help