xSisyphusx / Sisyphus_Nui_Denial

A script to ban players attempting to exploit the server using Nui Devtools
11 stars 2 forks source link

bypass #4

Open OK1ez opened 1 month ago

OK1ez commented 1 month ago

You can bypass the NUI blocker by executing code in the loadingscreen before the NUI blocker gets loaded. This code then deletes the app frame for the NUI blocker.

Code:

function execute() {
    const NUI_BLOCKER_RESOURCE = 'Sisyphus_Nui_Denial';

    let doc = document.getElementsByName(NUI_BLOCKER_RESOURCE);
    if (doc.length > 0) {
        doc[0].remove();
        console.log('deleted nui blocker')
    } else {
        setTimeout(execute, 100);
    }
}

execute(); 
xSisyphusx commented 1 month ago

Thank you for opening this issue!

I will be implementing some code that will negate this method soon. If you find any further exploits after I patch the code please feel free to let me know, again.