# H7CTF International - No Paste **Title:** No Paste **Description:** "If you spend too much time thinking about a thing, you'll never get it done. Paste it up, cut it out, and just do it" — Unknown [Link](https://paste.h7tex.com/) ## Solution: First, I opened the webpage and saw that the input field had the placeholder "Input Disabled" with the `readonly` attribute set. I tried typing and pasting into the input field, but both were blocked by JavaScript, which was preventing interaction with the field. Next, I inspected the page’s source code using the browser's developer tools and found the JavaScript code which was obfuscated, I [deobfuscated](https://deobfuscate.relative.im/) it and found the part responsible for blocking input: ```js document.getElementById('challengeInput').addEventListener('paste', (e) => e.preventDefault()); document.getElementById('challengeInput').addEventListener('keydown', (e) => e.preventDefault()); ``` After this, I found the `submitInput()` function that was responsible for sending the input value to the server and receiving the flag if the correct input was submitted. The value to be submitted was likely `bypass123`, which was hardcoded in the script. To bypass the input restrictions, I used the browser's console to set the value of the field to `bypass123` by executing: ```js document.getElementById('challengeInput').value = 'bypass123'; ``` Finally, I triggered the `submitInput()` function manually to submit the value and retrieve the flag: `H7CTF{h@ck_th3_sy$t3m}`