picoctf/web/match_the_regex/solution.md

17 lines
355 B
Markdown
Raw Normal View History

2024-09-01 23:08:46 +02:00
```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}`