web: add already solved challenges
This commit is contained in:
16
web/match_the_regex/solution.md
Normal file
16
web/match_the_regex/solution.md
Normal file
@@ -0,0 +1,16 @@
|
||||
```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}`
|
Reference in New Issue
Block a user