picoctf/web/match_the_regex/solution.md

17 lines
355 B
Markdown

```javascript
function send_request() {
let val = document.getElementById("name").value;
// ^p.....F!?
fetch(`/flag?input=${val}`)
.then(res => res.text())
.then(res => {
const res_json = JSON.parse(res);
alert(res_json.flag)
return false;
})
return false;
}
```
`picoCTF` -> `picoCTF{succ3ssfully_matchtheregex_f89ea585}`