首页 > 其他分享 >解析function(_0x457ace, _0x349832) 即random出处

解析function(_0x457ace, _0x349832) 即random出处

时间:2025-01-16 15:26:59浏览次数:1  
标签:function 0x457ace 0x0 0xb659b6 random 0x46b693 0x3b9660 0x3f32c6 var

function(_0x457ace, _0x349832) {
	_0x457ace = _0x457ace - 0x18a;
	var _0x4c6e1a = _0x19971f[_0x457ace];
	if (a0_0x457a['pIaRKj'] === undefined) {
		var _0x2a073e = function(_0x3f86c9) {
			var _0x153ef8 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
			var _0x6873a5 = '',
			_0x41c8da = '';
			for (var _0x5c7b8d = 0x0,
			_0x27fa83, _0x3f32c6, _0xef38ce = 0x0; _0x3f32c6 = _0x3f86c9['charAt'](_0xef38ce++);~_0x3f32c6 && (_0x27fa83 = _0x5c7b8d % 0x4 ? _0x27fa83 * 0x40 + _0x3f32c6: _0x3f32c6, _0x5c7b8d++%0x4) ? _0x6873a5 += String['fromCharCode'](0xff & _0x27fa83 >> ( - 0x2 * _0x5c7b8d & 0x6)) : 0x0) {
				_0x3f32c6 = _0x153ef8['indexOf'](_0x3f32c6);
			}
			for (var _0x56ffc6 = 0x0,
			_0x2026b1 = _0x6873a5['length']; _0x56ffc6 < _0x2026b1; _0x56ffc6++) {
				_0x41c8da += '%' + ('00' + _0x6873a5['charCodeAt'](_0x56ffc6)['toString'](0x10))['slice']( - 0x2);
			}
			return decodeURIComponent(_0x41c8da);
		};
		var _0x384326 = function(_0x5a7df8, _0x68a587) {
			var _0x46b693 = [],
			_0xb659b6 = 0x0,
			_0x38697a,
			_0x299539 = '';
			_0x5a7df8 = _0x2a073e(_0x5a7df8);
			var _0x3b9660;
			for (_0x3b9660 = 0x0; _0x3b9660 < 0x100; _0x3b9660++) {
				_0x46b693[_0x3b9660] = _0x3b9660;
			}
			for (_0x3b9660 = 0x0; _0x3b9660 < 0x100; _0x3b9660++) {
				_0xb659b6 = (_0xb659b6 + _0x46b693[_0x3b9660] + _0x68a587['charCodeAt'](_0x3b9660 % _0x68a587['length'])) % 0x100,
				_0x38697a = _0x46b693[_0x3b9660],
				_0x46b693[_0x3b9660] = _0x46b693[_0xb659b6],
				_0x46b693[_0xb659b6] = _0x38697a;
			}
			_0x3b9660 = 0x0,
			_0xb659b6 = 0x0;
			for (var _0x271a01 = 0x0; _0x271a01 < _0x5a7df8['length']; _0x271a01++) {
				_0x3b9660 = (_0x3b9660 + 0x1) % 0x100,
				_0xb659b6 = (_0xb659b6 + _0x46b693[_0x3b9660]) % 0x100,
				_0x38697a = _0x46b693[_0x3b9660],
				_0x46b693[_0x3b9660] = _0x46b693[_0xb659b6],
				_0x46b693[_0xb659b6] = _0x38697a,
				_0x299539 += String['fromCharCode'](_0x5a7df8['charCodeAt'](_0x271a01) ^ _0x46b693[(_0x46b693[_0x3b9660] + _0x46b693[_0xb659b6]) % 0x100]);
			}
			return _0x299539;
		};
		a0_0x457a['mlzgZn'] = _0x384326,
		_0x348322 = arguments,
		a0_0x457a['pIaRKj'] = !![];
	}
	var _0x2a2c40 = _0x19971f[0x0],
	_0x17806e = _0x457ace + _0x2a2c40,
	_0x4fed40 = _0x348322[_0x17806e];
	return ! _0x4fed40 ? (a0_0x457a['kveOFi'] === undefined && (a0_0x457a['kveOFi'] = !![]), _0x4c6e1a = a0_0x457a['mlzgZn'](_0x4c6e1a, _0x349832), _0x348322[_0x17806e] = _0x4c6e1a) : _0x4c6e1a = _0x4fed40,
	_0x4c6e1a;
}

调试入口:
image

测试Date_0x36c5d3(0x37b, 'aO!D'),生成一个时间戳
image

验证得到这是一个时间戳
image

解出时间戳为

const _0x4085c6 = ''.concat(Date.now());

验证 _0xbae138[_0x36c5d3(0x5fd, 't[mc')])()

image
得到
_0xbae138.getRandom()
最终得到
const _0x48393f = _0xbae138.getRandom();

标签:function,0x457ace,0x0,0xb659b6,random,0x46b693,0x3b9660,0x3f32c6,var
From: https://www.cnblogs.com/Gimm/p/18674826

相关文章

  • psSign、random推导
    入口:传递的参数值:sign函数function(){ var_0x36c5d3=_0x79c1ce; let_0x479298=arguments[_0x36c5d3(0x5a9,'PHXL')]>0x0&&void0x0!==arguments[0x0]?arguments[0x0]:{}; try{ var_0x1a6f66; if(!_0x32d6a8[_0x36c5d3(0x4d7,&......
  • 【0388】Postgres内核 SQL function 删除 physical replication slot 底层实现( 4 )
    文章目录1.概述2.`SQLfunction`2.1待删除`physicalreplicationslot`2.2检查当前用户权限2.3检查`Postgres`服务配置3.删除`physicalreplicationslot`3.1获取先前创建的`slot`3.1.1获取`slot`3.1.1初始化`active_pid`3.2永久删......
  • 深入浅出:Agent如何调用工具——从OpenAI Function Call到CrewAI框架
    深入浅出:Agent如何调用工具——从OpenAIFunctionCall到CrewAI框架嗨,大家好!作为一个喜欢折腾AI新技术的算法攻城狮,最近又学习了一些Agent工作流调用工具的文章,学完之后,我真的是“啊这”,一边感慨AI技术的强大,一边觉得自己打开了新世界的大门。于是,我决定写这篇博客,把我的学习心得......
  • 【Azure Function】C#独立工作模式下参数类型 ServiceBusReceivedMessage 无法正常工
    问题描述在C#AzureFunction使用ServiceBus作为触发器时候,在C#独立工作模式下,说可以支持使用 ServiceBusReceivedMessage类型作为触发消息的参数类型:[Function(nameof(ServiceBusReceivedMessageFunction))][ServiceBusOutput("outputQueue",Connect......
  • Functional接口(函数式接口)
    函数式接口是指仅包含一个抽象方法的接口。它可以包含多个默认方法或静态方法,但抽象方法只能有一个。这种接口都有一个@FuntionalInterface注解。我们可以直接使用Lambda表达式来创建函数式接口,然后将创建的函数式接口直接作为某些方法的参数。eg:list.forEach(t->Syst......
  • Vue - 解决报错 TypeError: transpileDependencies.map is not a function(vue项目运行
    前言关于此问题网上的教程都无法解决,如果您的报错信息与我相似,即可解决。在vue项目开发中,解决项目运行报错:ERRORTypeError:transpileDependencies.mapisnotafunction,莫名其妙非常恶心的错误,另外项目打包build时也可能会提示错误,vue项目跑不起来了,无论是新老项目......
  • G. D-Function 题解 (快速幂, 组合数学)
    原题链接:https://codeforces.com/contest/1985/problem/G题目:思路:要满足D(kn)==kD(n),k与n的每一位相乘都不能发生进位,k只能是一位数。考虑n的位数可能有1e9,所以用到了快速幂。代码:#include<bits/stdc++.h>#defineintlonglongusingnamespacestd;constintmod......
  • 【Azure Function】部署Java Function失败:报错deploy [ERROR] Status code 401和警告
    问题描述部署JavaFunctionApp到中国区Azure上时,遇见了错误信息:错误信息:deploy[ERROR]Statuscode401,(emptybody)警告信息:ChinaNorth3maynotbeavalidregion,pleaserefertohttps://aka.ms/maven_function_configuration#supported-regionsforvalues. ......
  • EBS在form中调用另一个form的方法,函数:fnd_function.execute
    如何在form1中调用form2呢?可以使用函数fnd_function.execute。其函数定义如下:fnd_function.execute(function_name,--功能名称open_flag,session_flag,--两个form是否使用同一个会话other_params--参数activate_flag--光标是否移到新formbrower_target);例子1:fnd_function......
  • [cause]: TypeError: e_.createContext is not a function (Next.js 15)
    开发Next.js项目遇到报错: [cause]:TypeError:e_.createContextisnotafunction 出现这个报错的原因是在Next.js项目中,在 ServerComponent 中使用了MUI组件,但是MUI组件没有做SSR适配就会导致这个报错。解决办法解决办法就是在文件顶部添加 useclient 声明,让......