-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
57 lines (52 loc) · 2.81 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package common
import (
"fmt"
"net/http"
"github.com/google/uuid"
)
var FORWARDED_IP = fmt.Sprintf("13.%d.%d.%d", RandFromRange(104, 107), RandFromRange(0, 255), RandFromRange(0, 255))
var HEADERS_WSS = http.Header{
"accept": {"application/json"},
"accept-language": {"en-US,en;q=0.9"},
"content-type": {"application/json"},
"sec-ch-ua": {"\"Not_A Brand\";v=\"99\", \"Microsoft Edge\";v=\"110\", \"Chromium\";v=\"110\""},
"sec-ch-ua-arch": {"\"x86\""},
"sec-ch-ua-bitness": {"\"64\""},
"sec-ch-ua-full-version": {"\"109.0.1518.78\""},
"sec-ch-ua-full-version-list": {"\"Chromium\";v=\"110.0.5481.192\", \"Not A(Brand\";v=\"24.0.0.0\", \"Microsoft Edge\";v=\"110.0.1587.69\""},
"sec-ch-ua-mobile": {"?0"},
"sec-ch-ua-model": {""},
"sec-ch-ua-platform": {"\"Windows\""},
"sec-ch-ua-platform-version": {"\"15.0.0\""},
"sec-fetch-dest": {"empty"},
"sec-fetch-mode": {"cors"},
"sec-fetch-site": {"same-origin"},
"x-ms-client-request-id": {uuid.NewString()},
"x-ms-useragent": {"azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.0 OS/Win32"},
"Referer": {"https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx"},
"Referrer-Policy": {"origin-when-cross-origin"},
"x-forwarded-for": {FORWARDED_IP},
}
var HEADERS_HTTPS = http.Header{
"authority": {"edgeservices.bing.com"},
"accept": {"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"},
"accept-language": {"en-US,en;q=0.9"},
"cache-control": {"max-age=0"},
"sec-ch-ua": {"\"Chromium\";v=\"110\", \"Not A(Brand\";v=\"24\", \"Microsoft Edge\";v=\"110\""},
"sec-ch-ua-arch": {"\"x86\""},
"sec-ch-ua-bitness": {"\"64\""},
"sec-ch-ua-full-version": {"\"110.0.1587.69\""},
"sec-ch-ua-full-version-list": {"\"Chromium\";v=\"110.0.5481.192\", \"Not A(Brand\";v=\"24.0.0.0\", \"Microsoft Edge\";v=\"110.0.1587.69\""},
"sec-ch-ua-mobile": {"?0"},
"sec-ch-ua-model": {"\"\""},
"sec-ch-ua-platform": {"\"Windows\""},
"sec-ch-ua-platform-version": {"\"15.0.0\""},
"sec-fetch-dest": {"document"},
"sec-fetch-mode": {"navigate"},
"sec-fetch-site": {"none"},
"sec-fetch-user": {"?1"},
"upgrade-insecure-requests": {"1"},
"user-agent": {"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.69"},
"x-edge-shopping-flag": {"1"},
"x-forwarded-for": {FORWARDED_IP},
}