image.png

When we open the webpage and view the source code, we see the Javascript that our browser has loaded.

image.png

Summary of the challenge:

window.guess = new Proxy({ value: null }, { ... });
{
    set(target, prop, value) {
        ...
    }
}
if (prop === 'value') {
    ...
}
if (value === secretNumber) {
    fetchFlag();
}

Summary: We need to guess a number between 1 and 20,000.

Open up the javascript console and use the following code:

for (let i = 1; i <= 20000; i++) {
    guess.value = i; 
}