更新52pojie
This commit is contained in:
parent
92daf2cd1b
commit
060403b8fe
404
52pojie.js
Normal file
404
52pojie.js
Normal file
@ -0,0 +1,404 @@
|
||||
//使用加密函数对特征对象进行加密 LE用来最后加密,另外两个数字用来生成answer
|
||||
//encodeFunc = LS;
|
||||
/**
|
||||
var Lq = '/waf_zw_verify',
|
||||
LW = '/home.php?mod=task&do=apply&id=2&referer=%2F',
|
||||
LZ = '2339',
|
||||
LJ = '6140',
|
||||
LE = 'xATvp9QaykDg28bBSYouKHW1UMX5nfme7i04ORGC3hLNj6ZIrVqcszwF+/tJdEPl';
|
||||
|
||||
*/
|
||||
//var LZ = '53856',
|
||||
//LJ = '22503';
|
||||
//var LE = '2ADkJSjHOzf4wVIibWnoaxLPdR6ge+/0CYvN7c93FEXutKry1Z5lpQTsBMGmhqU8';
|
||||
//colorDepth: 24 后有个 isExtended: undefined
|
||||
//deviceInfos 最前面有个 deviceMemory: undefined
|
||||
|
||||
b = [
|
||||
{
|
||||
"key": "plugins",
|
||||
"value": {
|
||||
"details": [
|
||||
{
|
||||
"name": "PDF Viewer",
|
||||
"description": "Portable Document Format",
|
||||
"filename": "internal-pdf-viewer",
|
||||
"mimetypes": [
|
||||
{
|
||||
"type": "application/pdf",
|
||||
"suffixes": "pdf"
|
||||
},
|
||||
{
|
||||
"type": "text/pdf",
|
||||
"suffixes": "pdf"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Chrome PDF Viewer",
|
||||
"description": "Portable Document Format",
|
||||
"filename": "internal-pdf-viewer",
|
||||
"mimetypes": [
|
||||
{
|
||||
"type": "application/pdf",
|
||||
"suffixes": "pdf"
|
||||
},
|
||||
{
|
||||
"type": "text/pdf",
|
||||
"suffixes": "pdf"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Chromium PDF Viewer",
|
||||
"description": "Portable Document Format",
|
||||
"filename": "internal-pdf-viewer",
|
||||
"mimetypes": [
|
||||
{
|
||||
"type": "application/pdf",
|
||||
"suffixes": "pdf"
|
||||
},
|
||||
{
|
||||
"type": "text/pdf",
|
||||
"suffixes": "pdf"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Microsoft Edge PDF Viewer",
|
||||
"description": "Portable Document Format",
|
||||
"filename": "internal-pdf-viewer",
|
||||
"mimetypes": [
|
||||
{
|
||||
"type": "application/pdf",
|
||||
"suffixes": "pdf"
|
||||
},
|
||||
{
|
||||
"type": "text/pdf",
|
||||
"suffixes": "pdf"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "WebKit built-in PDF",
|
||||
"description": "Portable Document Format",
|
||||
"filename": "internal-pdf-viewer",
|
||||
"mimetypes": [
|
||||
{
|
||||
"type": "application/pdf",
|
||||
"suffixes": "pdf"
|
||||
},
|
||||
{
|
||||
"type": "text/pdf",
|
||||
"suffixes": "pdf"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"names": [
|
||||
"Chrome PDF Viewer",
|
||||
"Chromium PDF Viewer",
|
||||
"Microsoft Edge PDF Viewer",
|
||||
"PDF Viewer",
|
||||
"WebKit built-in PDF"
|
||||
],
|
||||
"fp": "9772d5556d57fcc8177f76029bfd92ef"
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "fonts",
|
||||
"value": {
|
||||
"names": [
|
||||
"Arial",
|
||||
"Arial Black",
|
||||
"Arial Narrow",
|
||||
"Calibri",
|
||||
"Cambria",
|
||||
"Cambria Math",
|
||||
"Comic Sans MS",
|
||||
"Consolas",
|
||||
"Courier",
|
||||
"Courier New",
|
||||
"Georgia",
|
||||
"Helvetica",
|
||||
"Impact",
|
||||
"Lucida Console",
|
||||
"Lucida Sans Unicode",
|
||||
"Microsoft Sans Serif",
|
||||
"MS Gothic",
|
||||
"MS PGothic",
|
||||
"MS Sans Serif",
|
||||
"MS Serif",
|
||||
"Palatino Linotype",
|
||||
"Segoe Print",
|
||||
"Segoe Script",
|
||||
"Segoe UI",
|
||||
"Segoe UI Light",
|
||||
"Segoe UI Semibold",
|
||||
"Segoe UI Symbol",
|
||||
"Tahoma",
|
||||
"Times",
|
||||
"Times New Roman",
|
||||
"Trebuchet MS",
|
||||
"Verdana",
|
||||
"Wingdings"
|
||||
],
|
||||
"fp": "f730c0cc627b3b3d7db9f459836db692"
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "screenObject",
|
||||
"value": {
|
||||
"screenResolution": [
|
||||
1920,
|
||||
1080
|
||||
],
|
||||
"availableScreenResolution": [
|
||||
1920,
|
||||
1050
|
||||
],
|
||||
"colorDepth": 24,
|
||||
isExtended: undefined,
|
||||
"availTop": 0,
|
||||
"availLeft": 0,
|
||||
"pixelDepth": 24,
|
||||
"top": 0,
|
||||
"left": 0,
|
||||
"orientation": {
|
||||
"angle": 0,
|
||||
"type": "landscape-primary"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "intlObject",
|
||||
"value": {
|
||||
"locale": "zh-Hans-CN",
|
||||
"calendar": "gregory",
|
||||
"numberingSystem": "latn",
|
||||
"timeZone": "Asia/Shanghai",
|
||||
"year": "numeric",
|
||||
"month": "numeric",
|
||||
"day": "numeric",
|
||||
"timezoneOffset": -480
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "touchSupport",
|
||||
"value": [
|
||||
0,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "audio",
|
||||
"value": "35.749968223273754"
|
||||
},
|
||||
{
|
||||
"key": "webdriver",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"key": "webGL",
|
||||
"value": {
|
||||
"webgl_version": "WebGL 1.0",
|
||||
"webgl_vendor_and_renderer": "Google Inc. (Intel)~ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0), or similar",
|
||||
"webgl_unmasked_renderer": "ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0), or similar",
|
||||
"webgl_unmasked_vendor": "Google Inc. (Intel)",
|
||||
"webgl_aliased_point_size_range": [
|
||||
1,
|
||||
1024
|
||||
],
|
||||
"webgl_fragment_shader_medium_int_precision_rangeMax": 30,
|
||||
"webgl_fragment_shader_medium_int_precision_rangeMin": 31,
|
||||
"fp": "9631a557b3fdf1c28cfbd6500ad35bc8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "canvas",
|
||||
"value": {
|
||||
"canvas_winding": true,
|
||||
"fp": "da766c3ea7221c96d06cf280d3a4e60a"
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "deviceInfos",
|
||||
"value": {
|
||||
deviceMemory: undefined,
|
||||
"hardwareConcurrency": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "storageObject",
|
||||
"value": {
|
||||
"localStorage": true,
|
||||
"openDatabase": false,
|
||||
"indexedDb": true,
|
||||
"sessionStorage": true,
|
||||
"addBehavior": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "navigatorObject",
|
||||
"value": {
|
||||
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0",
|
||||
"platform": "Win32",
|
||||
"vendor": "",
|
||||
"language": "zh-CN",
|
||||
"languages": [
|
||||
"zh-CN",
|
||||
"zh",
|
||||
"zh-TW",
|
||||
"zh-HK",
|
||||
"en-US",
|
||||
"en"
|
||||
],
|
||||
"productSub": "20100101",
|
||||
"oscpu": "Windows NT 10.0; Win64; x64"
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "functions",
|
||||
"value": {
|
||||
"eval_tostring_length": 37
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
encodeData =
|
||||
{
|
||||
'fp_infos': fp_info_generate(b),
|
||||
'answer': anwser_gernerate(),
|
||||
'hostname': "www.52pojie.cn",
|
||||
'scheme': "https"
|
||||
};
|
||||
function fp_info_generate(fp_data) {
|
||||
var result = {
|
||||
'errors': {
|
||||
}
|
||||
};
|
||||
for (var index in fp_data) {
|
||||
if (false) {
|
||||
throw new Error('未实现')
|
||||
} else {
|
||||
var item = fp_data[index],
|
||||
key = item["key"],
|
||||
value = item['value'];
|
||||
if (typeof value === "string" && value.indexOf("Error: ") != -1) {
|
||||
result["errors"][key] = value;
|
||||
} else {
|
||||
if (true) {
|
||||
result[key] = value;
|
||||
} else {
|
||||
throw new Error('未实现')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var t = new Date();
|
||||
result["dateTime"] = {
|
||||
'timestamp': t.getTime()
|
||||
};
|
||||
|
||||
//设置fp
|
||||
result["fp"] = "bd5db91d97ce71f00bf0b3eb63790c74";
|
||||
result["protocol"] = "https";
|
||||
//设置protocol
|
||||
//设置verify
|
||||
setVerify(result);
|
||||
return result;
|
||||
}
|
||||
function setVerify(i) {
|
||||
var P = (i["dateTime"]["timestamp"] % 10) || 10;
|
||||
|
||||
for (var N in i) {
|
||||
var I = i[N];
|
||||
if (typeof I != "object")
|
||||
continue;
|
||||
var g = 0;
|
||||
for (var R in I) {
|
||||
var m = I[R];
|
||||
if (typeof m == "number") {
|
||||
g += parseInt(m);
|
||||
} else {
|
||||
if (typeof m == "string") {
|
||||
g += m['length'];
|
||||
} else g += P;
|
||||
}
|
||||
}
|
||||
g && (i[N]["verify"] = g * P);
|
||||
}
|
||||
}
|
||||
//anwer需要两个js中的动态变量LZ、LJ
|
||||
//方法搜索"WZWS_CONFIRM_PREFIX_LABEL"
|
||||
function anwser_gernerate() {
|
||||
|
||||
var p = 0;
|
||||
|
||||
var V = 1;
|
||||
|
||||
for (var T = 0; T < LZ['length']; T++) {
|
||||
p = 2 * (p + LZ["charCodeAt"](T));
|
||||
V = 2 * (V + T + 1)
|
||||
}
|
||||
|
||||
p *= LJ;
|
||||
|
||||
p += V;
|
||||
|
||||
return 'WZWS_CONFIRM_PREFIX_LABEL' + p;
|
||||
}
|
||||
//加密
|
||||
function encodebody(b) {
|
||||
b = JSON["stringify"](b);
|
||||
//"1,8,6,2,7,0,3,5,4"
|
||||
|
||||
var N = LE;
|
||||
|
||||
var K, e, P;
|
||||
|
||||
var p, t, M;
|
||||
|
||||
P = b.length;
|
||||
|
||||
e = 0;
|
||||
|
||||
K = '';
|
||||
|
||||
while (e < P) {
|
||||
if (true) {
|
||||
p = b["charCodeAt"](e++) & 255;
|
||||
if (e == P) {
|
||||
K += N["charAt"](p >> 2);
|
||||
K += N["charAt"]((p & 3) << 4);
|
||||
K += '==';
|
||||
break
|
||||
}
|
||||
t = b["charCodeAt"](e++);
|
||||
if (e == P) {
|
||||
K += N["charAt"](p >> 2);
|
||||
K += N["charAt"](((p & 3) << 4) | ((t & 240) >> 4));
|
||||
K += N["charAt"]((t & 15) << 2)
|
||||
|
||||
K += '=';
|
||||
break;
|
||||
}
|
||||
|
||||
M = b["charCodeAt"](e++);
|
||||
K += N["charAt"](p >> 2);
|
||||
K += N["charAt"](((p & 3) << 4) | ((t & 240) >> 4));
|
||||
K += N["charAt"](((t & 15) << 2) | ((M & 192) >> 6));
|
||||
|
||||
K += N["charAt"](M & 63);
|
||||
|
||||
} else {
|
||||
throw new Error('未实现')
|
||||
}
|
||||
}
|
||||
return K;
|
||||
}
|
||||
function getData(){
|
||||
return encodebody(encodeData);
|
||||
}
|
||||
@ -17,10 +17,12 @@ import re
|
||||
import os
|
||||
from wxpusher import WxPusher
|
||||
|
||||
pojie_cookie = os.getenv("pojie_cookie").split('\n')
|
||||
# pojie_cookie = os.getenv("pojie_cookie").split('\n')
|
||||
|
||||
# pojie_cookie = ['i655BeA4@0259LfQUV5YzmlaQOhNMuckxhQIrtvMpv%2BaMIIpW65Dj6Rv%2FrArtIp1UUAS43AyYiZv9wgwPCdFo8uEz5XPlp33lCSw1@UID_iEX04ORBuLG5ch5B3tbqBUx3G8SP']
|
||||
pojie_cookie = ['i655BeA4@0259LfQUV5YzmlaQOhNMuckxhQIrtvMpv%2BaMIIpW65Dj6Rv%2FrArtIp1UUAS43AyYiZv9wgwPCdFo8uEz5XPlp33lCSw1@UID_iEX04ORBuLG5ch5B3tbqBUx3G8SP']
|
||||
|
||||
|
||||
# 获取“在测试中需要从文件中获取,quicker中从变量中获取”的变量
|
||||
def getParaFromFile(fileName):
|
||||
try:
|
||||
with open(fileName, 'r', encoding='UTF-8') as file:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user