terms-and-conditions

solved by hartmannsyg

We have an “I Accept” button that we need to click, but it keeps running away from our cursor

If we open up console, it says “NO CONSOLE ALLOWED”

However, this check is only checking for window resize:

index.html
156
157
158
159
160
161
162
setInterval(function() {
    if (window.innerHeight !== height || window.innerWidth !== width) {
        document.body.innerHTML = "<div><h1>NO CONSOLE ALLOWED</h1></div>";
        height = window.innerHeight;
        width = window.innerWidth;
    }
}, 10);

It only checks for changes in window size, so if we reload it while console is open we can bypass this check:

Now if we click the button using javascript (by typing this in the console):

index.html
156
157
158
159
160
161
162
document.getElementById('accept').click()

We get an alert popup that says lactf{that_button_was_definitely_not_one_of_the_terms}