Skip to content

Latest commit

 

History

History

ChromiumDevtoolsScopePane

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Chromium Devtools Scope Pane

POC

function malicious() {
    const detect = (function(){
        const dummy = /./;
        dummy.toString = () => {
            alert('someone is debugging the malicious function!');
            return 'SOME_NAME';
        };
        return dummy;
    }());

    // do a malicious action
    if (window.stealUserCookies) window.stealUserCookies();
}

function legit() {
    // do a legit action
    return 1 + 1;
}

function main() {
    legit();
    malicious();
}

debugger;
main();

Resources