某图片网站sign生成-第二版

网络爬虫 2021-01-13 1161

我的内心很崩溃,代码又变了,所以这就是我为什么已经不干爬虫的原因。

我自己的小程序需要下载4K图片,本来小程序就是做的玩的,因此不想下载所有的图片,毕竟1个图片就好几M。这才几天啊,生成sign的代码就失效了,必应的工程师也太勤快了,年底冲绩效!

下面是解密,步骤和上篇文章差不多,但是生成sign部分的代码,使用了jsjiami.com.v6的加密服务,我最讨厌看到这种恶心人的代码了,如果下次加密更恶心,我就不破解了。

源代码在https://static.todaybing.com/js/enclibs.js?v=1.0.1下(破解几个小时后,升级为1.1.0版本了,此代码已不可用),看版本号,以后会升级。

var _0xod7 = 'jsjiami.com.v6'
  , _0x1b12 = [_0xod7, 'Q2x9wpjDmA==', 'w4lKwrzCtMKbwqFPw7DDrMOqw6fChcKewrPDtQtZw6A6CEPCvlvCi8KV', 'RzXDvnBQ', 'G8Ojw5IUw4g=', 'PVpcYzE=', 'HBXClSPCtMKeFmxcUw==', 'w5DDrk3CqUw=', 'ZRjDplY=', 'ck/DmcOGJg==', 'wqUXwo3CvV0=', 'w488w7TDosO8', 'wqbCmsKdN8O6', 'w4YhcMKOw4U=', 'w7zCuMKnCU9q', 'WgfDuVfDsg==', 'LD/CpgjCg8KjbA==', 'QcOJw51aw4o=', 'GcKhwqPCgzI3eMKuLzl2wq5pX8ONE8OF', 'SsK6w4Miwpc=', 'KMOaw6xpwqk=', 'w4AFw6fDtcO5w4LCrG/CgjrCtD/DjBLCuMOOw7IFwqDCpiJ7w7Zw', 'HsOFw5ANw5RiHcKiw6bDqyXCjw==', 'w517MVsQW8Oq', 'dMKRw6HClk0=', 'I2keFwU=', 'b8KKw4vCrnA=', 'D3AwKcOJ', 'GRXCszPClw==', 'V8Kpw7PChl0=', 'w5R5wprCpUI=', 'w6XDtzXCvgDCvcOyAcOpYMKcwq45', 'ecOxwp/Cm8KRIsO0w6DDmXE=', 'DcKqIMOEw7M=', 'QsOkw492w4XDgU7Ci8OA', 'w7bCqMKnDU9rwr7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'w4A2w6PDlsOsw6M=', 'VsObwqHCpcK3Aw==', 'wqjCu8KwFMOgW0Y=', 'TipfDMKq', 'esOcKcO3ag==', 'YCVzEMKxXzw=', 'w7ATWcK2w6Q=', 'jHNsjiEamTiu.cfokrXmwu.xnVuyv6=='];
(function(_0x43573e, _0x32cf56, _0x57a588) {
    var _0x1992d7 = function(_0x1d377c, _0xb31491, _0x3a5ea9, _0x158a47, _0x48a0d4) {
        _0xb31491 = _0xb31491 >> 0x8,
        _0x48a0d4 = 'po';
        var _0x2ff357 = 'shift'
          , _0x325fee = 'push';
        if (_0xb31491 < _0x1d377c) {
            while (--_0x1d377c) {
                _0x158a47 = _0x43573e[_0x2ff357]();
                if (_0xb31491 === _0x1d377c) {
                    _0xb31491 = _0x158a47;
                    _0x3a5ea9 = _0x43573e[_0x48a0d4 + 'p']();
                } else if (_0xb31491 && _0x3a5ea9['replace'](/[HNETufkrXwuxnVuy=]/g, '') === _0xb31491) {
                    _0x43573e[_0x325fee](_0x158a47);
                }
            }
            _0x43573e[_0x325fee](_0x43573e[_0x2ff357]());
        }
        return 0x6bc03;
    };
    return _0x1992d7(++_0x32cf56, _0x57a588) >> _0x32cf56 ^ _0x57a588;
}(_0x1b12, 0x79, 0x7900));
var _0x2c17 = function(_0x5ec398, _0x1b26e3) {
    _0x5ec398 = ~~'0x'['concat'](_0x5ec398);
    var _0x582786 = _0x1b12[_0x5ec398];
    if (_0x2c17['yoXFhZ'] === undefined) {
        (function() {
            var _0x400190 = typeof window !== 'undefined' ? window : typeof process === 'object' && typeof require === 'function' && typeof global === 'object' ? global : this;
            var _0x48069d = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
            _0x400190['atob'] || (_0x400190['atob'] = function(_0x36cbff) {
                var _0x38108f = String(_0x36cbff)['replace'](/=+$/, '');
                for (var _0x435c44 = 0x0, _0x177c2e, _0x1eb6cc, _0x1c2737 = 0x0, _0x599727 = ''; _0x1eb6cc = _0x38108f['charAt'](_0x1c2737++); ~_0x1eb6cc && (_0x177c2e = _0x435c44 % 0x4 ? _0x177c2e * 0x40 + _0x1eb6cc : _0x1eb6cc,
                _0x435c44++ % 0x4) ? _0x599727 += String['fromCharCode'](0xff & _0x177c2e >> (-0x2 * _0x435c44 & 0x6)) : 0x0) {
                    _0x1eb6cc = _0x48069d['indexOf'](_0x1eb6cc);
                }
                return _0x599727;
            }
            );
        }());
        var _0x4a34ad = function(_0x2bdafb, _0x1b26e3) {
            var _0x7e533b = [], _0x26e85e = 0x0, _0x49c651, _0x2a8b7d = '', _0x1ba6a1 = '';
            _0x2bdafb = atob(_0x2bdafb);
            for (var _0x5cff74 = 0x0, _0x300f11 = _0x2bdafb['length']; _0x5cff74 < _0x300f11; _0x5cff74++) {
                _0x1ba6a1 += '%' + ('00' + _0x2bdafb['charCodeAt'](_0x5cff74)['toString'](0x10))['slice'](-0x2);
            }
            _0x2bdafb = decodeURIComponent(_0x1ba6a1);
            for (var _0x50ed3a = 0x0; _0x50ed3a < 0x100; _0x50ed3a++) {
                _0x7e533b[_0x50ed3a] = _0x50ed3a;
            }
            for (_0x50ed3a = 0x0; _0x50ed3a < 0x100; _0x50ed3a++) {
                _0x26e85e = (_0x26e85e + _0x7e533b[_0x50ed3a] + _0x1b26e3['charCodeAt'](_0x50ed3a % _0x1b26e3['length'])) % 0x100;
                _0x49c651 = _0x7e533b[_0x50ed3a];
                _0x7e533b[_0x50ed3a] = _0x7e533b[_0x26e85e];
                _0x7e533b[_0x26e85e] = _0x49c651;
            }
            _0x50ed3a = 0x0;
            _0x26e85e = 0x0;
            for (var _0x507ea7 = 0x0; _0x507ea7 < _0x2bdafb['length']; _0x507ea7++) {
                _0x50ed3a = (_0x50ed3a + 0x1) % 0x100;
                _0x26e85e = (_0x26e85e + _0x7e533b[_0x50ed3a]) % 0x100;
                _0x49c651 = _0x7e533b[_0x50ed3a];
                _0x7e533b[_0x50ed3a] = _0x7e533b[_0x26e85e];
                _0x7e533b[_0x26e85e] = _0x49c651;
                _0x2a8b7d += String['fromCharCode'](_0x2bdafb['charCodeAt'](_0x507ea7) ^ _0x7e533b[(_0x7e533b[_0x50ed3a] + _0x7e533b[_0x26e85e]) % 0x100]);
            }
            return _0x2a8b7d;
        };
        _0x2c17['lASfhn'] = _0x4a34ad;
        _0x2c17['ncrXzH'] = {};
        _0x2c17['yoXFhZ'] = !![];
    }
    var _0x1ae435 = _0x2c17['ncrXzH'][_0x5ec398];
    if (_0x1ae435 === undefined) {
        if (_0x2c17['USubuO'] === undefined) {
            _0x2c17['USubuO'] = !![];
        }
        _0x582786 = _0x2c17['lASfhn'](_0x582786, _0x1b26e3);
        _0x2c17['ncrXzH'][_0x5ec398] = _0x582786;
    } else {
        _0x582786 = _0x1ae435;
    }
    return _0x582786;
};
function makeSign(_0xa54440) {
    var _0xa92f6e = {
        'eTDBG': function(_0x4bb885, _0x51f296) {
            return _0x4bb885 == _0x51f296;
        },
        'UTLdp': function(_0x2aa4be, _0x4d2de8) {
            return _0x2aa4be == _0x4d2de8;
        },
        'vCvIi': function(_0x1d9d2c, _0x4a11c6) {
            return _0x1d9d2c(_0x4a11c6);
        },
        'Mobpv': function(_0x4c6e00, _0x216413) {
            return _0x4c6e00 + _0x216413;
        },
        'yjBzZ': function(_0x3aed15, _0x1e90dc) {
            return _0x3aed15 + _0x1e90dc;
        },
        'gKIna': _0x2c17('4a', 'RinO'),
        'icwEG': function(_0x33cee6, _0x3c6182) {
            return _0x33cee6 === _0x3c6182;
        },
        'iOruS': _0x2c17('4b', 'Xvym'),
        'coySd': function(_0x2290a6, _0xd4d685) {
            return _0x2290a6 + _0xd4d685;
        },
        'gOIFb': function(_0x92752c, _0x593656) {
            return _0x92752c + _0x593656;
        }
    };
    var _0x379984 = _0xa92f6e[_0x2c17('4c', 'H4^l')](hex_md5, _0xa92f6e[_0x2c17('4d', 'HFyl')](_0xa92f6e['yjBzZ'](window['location']['host'], _0x2c17('4e', 'kx!z')), _0xa92f6e[_0x2c17('4f', 'Gm%V')]));
    var _0x576b60 = Object[_0x2c17('50', 'Xvym')](_0xa54440)['sort']();
    var _0x11b0cd = '';
    for (var _0x20f028 in _0x576b60) {
        if (_0xa92f6e[_0x2c17('51', '$z6n')](_0xa92f6e['iOruS'], _0x2c17('52', 'ezN0'))) {
            _0x11b0cd += _0xa92f6e['yjBzZ'](_0xa92f6e[_0x2c17('53', 'ZZae')](_0xa92f6e[_0x2c17('54', 'hOCB')](_0x576b60[_0x20f028], '='), _0xa54440[_0x576b60[_0x20f028]]), '&');
        } else {
            if (_0xa92f6e[_0x2c17('55', '47VF')](d3[_0x2c17('56', 'DwUO')], 0x4) && array[0x2][0x0](d3, 0x3, 0x66)) {
                array[0x2][0x1](0x0, 0x4, d3);
            } else if (_0xa92f6e[_0x2c17('57', 'IynI')](d3[_0x2c17('43', 'TjE^')], 0x8) && array[0x2][0x0](d3, 0x7, 0x65) && array[0x2][0x0](d3, 0x0, 0x68)) {
                array[0x2][0x1](0x0, 0x3, d3);
            }
        }
    }
    _0x11b0cd += _0x2c17('58', 'kx!z') + _0x379984;
    var _0x5f3314 = _0xa92f6e[_0x2c17('59', '4Hvr')](hex_md5, _0x11b0cd)['toUpperCase']();
    return getRsaSign(_0x5f3314);
}
function getRsaSign(_0x53b799) {
    var _0x145a19 = {
        'NJhBm': _0x2c17('5a', 'BNb&'),
        'xonCf': 'nucVcJcxRAEcpPprb8X3hfdxKEEYjOPAuVseewmO5cM+x7zi9FWbZ89uOp5sxjMn',
        'pekUk': 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDAbfx4VggVVpcfCjzQ+nEiJ2DL',
        'ULpiH': '-----END\x20PUBLIC\x20KEY-----',
        'DgCVH': 'nRg3e2QdDf/m/qMvtqXi4xhwvbpHfaX46CzQznU8l9NJtF28pTSZSKnE/791MJfV'
    };
    var _0x23d557 = _0x145a19['NJhBm']['split']('|')
      , _0x4e31d4 = 0x0;
    while (!![]) {
        switch (_0x23d557[_0x4e31d4++]) {
        case '0':
            var _0x4e339d = new JSEncrypt();
            continue;
        case '1':
            _0x13ae84 += _0x145a19[_0x2c17('5b', 'bUrX')];
            continue;
        case '2':
            _0x13ae84 += _0x145a19[_0x2c17('5c', 's&]r')];
            continue;
        case '3':
            _0x13ae84 += _0x2c17('5d', 'ZZae');
            continue;
        case '4':
            _0x4e339d[_0x2c17('5e', 'H4^l')](_0x13ae84);
            continue;
        case '5':
            return _0x4e339d[_0x2c17('5f', '37KQ')](_0x53b799);
        case '6':
            _0x13ae84 += _0x145a19[_0x2c17('60', 'BNb&')];
            continue;
        case '7':
            _0x13ae84 += _0x145a19['DgCVH'];
            continue;
        case '8':
            var _0x13ae84 = '-----BEGIN\x20PUBLIC\x20KEY-----';
            continue;
        }
        break;
    }
}
;_0xod7 = 'jsjiami.com.v6';

其中不是所有的代码都需要,上面是必须的代码。

解密,我使用https://tool.lu/js,对代码进行了解密和美化。得到下方代码:

var _0xod7 = 'jsjiami.com.v6',
	_0x1b12 = [_0xod7, 'Q2x9wpjDmA==', 'w4lKwrzCtMKbwqFPw7DDrMOqw6fChcKewrPDtQtZw6A6CEPCvlvCi8KV', 'RzXDvnBQ', 'G8Ojw5IUw4g=', 'PVpcYzE=', 'HBXClSPCtMKeFmxcUw==', 'w5DDrk3CqUw=', 'ZRjDplY=', 'ck/DmcOGJg==', 'wqUXwo3CvV0=', 'w488w7TDosO8', 'wqbCmsKdN8O6', 'w4YhcMKOw4U=', 'w7zCuMKnCU9q', 'WgfDuVfDsg==', 'LD/CpgjCg8KjbA==', 'QcOJw51aw4o=', 'GcKhwqPCgzI3eMKuLzl2wq5pX8ONE8OF', 'SsK6w4Miwpc=', 'KMOaw6xpwqk=', 'w4AFw6fDtcO5w4LCrG/CgjrCtD/DjBLCuMOOw7IFwqDCpiJ7w7Zw', 'HsOFw5ANw5RiHcKiw6bDqyXCjw==', 'w517MVsQW8Oq', 'dMKRw6HClk0=', 'I2keFwU=', 'b8KKw4vCrnA=', 'D3AwKc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=', 'GcOvw6JdwrY=', 'w4BiwpLCm34=', 'T3DCtMK2w4E=', 'BXYZwrZuw5c=', 'dUDDlMO6BA==', 'w7vCjMK7InE=', 'WsKFw5Unbw==', 'XDHDmXxE', 'YMKhw4ATwps=', 'NTXDg0AawqE=', 'bsK5w4QxVg==', 'w4A2w6PDlsOsw6M=', 'VsObwqHCpcK3Aw==', 'wqjCu8KwFMOgW0Y=', 'TipfDMKq', 'esOcKcO3ag==', 'YCVzEMKxXzw=', 'w7ATWcK2w6Q=', 'jHNsjiEamTiu.cfokrXmwu.xnVuyv6=='];
const md5 = require('md5');
const JSEncrypt = require('node-jsencrypt');
var window = {};
(function(_0x43573e, _0x32cf56, _0x57a588) {
	var _0x1992d7 = function(_0x1d377c, _0xb31491, _0x3a5ea9, _0x158a47, _0x48a0d4) {
			_0xb31491 = _0xb31491 >> 0x8, _0x48a0d4 = 'po';
			var _0x2ff357 = 'shift',
				_0x325fee = 'push';
			if (_0xb31491 < _0x1d377c) {
				while (--_0x1d377c) {
					_0x158a47 = _0x43573e[_0x2ff357]();
					if (_0xb31491 === _0x1d377c) {
						_0xb31491 = _0x158a47;
						_0x3a5ea9 = _0x43573e[_0x48a0d4 + 'p']()
					} else if (_0xb31491 && _0x3a5ea9['replace'](/[HNETufkrXwuxnVuy=]/g, '') === _0xb31491) {
						_0x43573e[_0x325fee](_0x158a47)
					}
				}
				_0x43573e[_0x325fee](_0x43573e[_0x2ff357]())
			}
			return 0x6bc03
		};
	return _0x1992d7(++_0x32cf56, _0x57a588) >> _0x32cf56 ^ _0x57a588
}(_0x1b12, 0x79, 0x7900));
var _0x2c17 = function(_0x5ec398, _0x1b26e3) {
		_0x5ec398 = ~~'0x' ['concat'](_0x5ec398);
		var _0x582786 = _0x1b12[_0x5ec398];
		if (_0x2c17['yoXFhZ'] === undefined) {
			(function() {
				var _0x400190 = typeof window !== 'undefined' ? window : typeof process === 'object' && typeof require === 'function' && typeof global === 'object' ? global : this;
				var _0x48069d = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
				_0x400190['atob'] || (_0x400190['atob'] = function(_0x36cbff) {
					var _0x38108f = String(_0x36cbff)['replace'](/=+$/, '');
					for (var _0x435c44 = 0x0, _0x177c2e, _0x1eb6cc, _0x1c2737 = 0x0, _0x599727 = ''; _0x1eb6cc = _0x38108f['charAt'](_0x1c2737++);~_0x1eb6cc && (_0x177c2e = _0x435c44 % 0x4 ? _0x177c2e * 0x40 + _0x1eb6cc : _0x1eb6cc, _0x435c44++ % 0x4) ? _0x599727 += String['fromCharCode'](0xff & _0x177c2e >> (-0x2 * _0x435c44 & 0x6)) : 0x0) {
						_0x1eb6cc = _0x48069d['indexOf'](_0x1eb6cc)
					}
					return _0x599727
				})
			}());
			var _0x4a34ad = function(_0x2bdafb, _0x1b26e3) {
					var _0x7e533b = [],
						_0x26e85e = 0x0,
						_0x49c651, _0x2a8b7d = '',
						_0x1ba6a1 = '';
					_0x2bdafb = window.atob(_0x2bdafb);
					for (var _0x5cff74 = 0x0, _0x300f11 = _0x2bdafb['length']; _0x5cff74 < _0x300f11; _0x5cff74++) {
						_0x1ba6a1 += '%' + ('00' + _0x2bdafb['charCodeAt'](_0x5cff74)['toString'](0x10))['slice'](-0x2)
					}
					_0x2bdafb = decodeURIComponent(_0x1ba6a1);
					for (var _0x50ed3a = 0x0; _0x50ed3a < 0x100; _0x50ed3a++) {
						_0x7e533b[_0x50ed3a] = _0x50ed3a
					}
					for (_0x50ed3a = 0x0; _0x50ed3a < 0x100; _0x50ed3a++) {
						_0x26e85e = (_0x26e85e + _0x7e533b[_0x50ed3a] + _0x1b26e3['charCodeAt'](_0x50ed3a % _0x1b26e3['length'])) % 0x100;
						_0x49c651 = _0x7e533b[_0x50ed3a];
						_0x7e533b[_0x50ed3a] = _0x7e533b[_0x26e85e];
						_0x7e533b[_0x26e85e] = _0x49c651
					}
					_0x50ed3a = 0x0;
					_0x26e85e = 0x0;
					for (var _0x507ea7 = 0x0; _0x507ea7 < _0x2bdafb['length']; _0x507ea7++) {
						_0x50ed3a = (_0x50ed3a + 0x1) % 0x100;
						_0x26e85e = (_0x26e85e + _0x7e533b[_0x50ed3a]) % 0x100;
						_0x49c651 = _0x7e533b[_0x50ed3a];
						_0x7e533b[_0x50ed3a] = _0x7e533b[_0x26e85e];
						_0x7e533b[_0x26e85e] = _0x49c651;
						_0x2a8b7d += String['fromCharCode'](_0x2bdafb['charCodeAt'](_0x507ea7) ^ _0x7e533b[(_0x7e533b[_0x50ed3a] + _0x7e533b[_0x26e85e]) % 0x100])
					}
					return _0x2a8b7d
				};
			_0x2c17['lASfhn'] = _0x4a34ad;
			_0x2c17['ncrXzH'] = {};
			_0x2c17['yoXFhZ'] = !! []
		}
		var _0x1ae435 = _0x2c17['ncrXzH'][_0x5ec398];
		if (_0x1ae435 === undefined) {
			if (_0x2c17['USubuO'] === undefined) {
				_0x2c17['USubuO'] = !! []
			}
			_0x582786 = _0x2c17['lASfhn'](_0x582786, _0x1b26e3);
			_0x2c17['ncrXzH'][_0x5ec398] = _0x582786
		} else {
			_0x582786 = _0x1ae435
		}
		return _0x582786
	};

function makeSign(_0xa54440) {
	var _0xa92f6e = {
		'eTDBG': function(_0x4bb885, _0x51f296) {
			return _0x4bb885 == _0x51f296
		},
		'UTLdp': function(_0x2aa4be, _0x4d2de8) {
			return _0x2aa4be == _0x4d2de8
		},
		'vCvIi': function(_0x1d9d2c, _0x4a11c6) {
			return _0x1d9d2c(_0x4a11c6)
		},
		'Mobpv': function(_0x4c6e00, _0x216413) {
			return _0x4c6e00 + _0x216413
		},
		'yjBzZ': function(_0x3aed15, _0x1e90dc) {
			return _0x3aed15 + _0x1e90dc
		},
		'gKIna': _0x2c17('4a', 'RinO'),
		'icwEG': function(_0x33cee6, _0x3c6182) {
			return _0x33cee6 === _0x3c6182
		},
		'iOruS': _0x2c17('4b', 'Xvym'),
		'coySd': function(_0x2290a6, _0xd4d685) {
			return _0x2290a6 + _0xd4d685
		},
		'gOIFb': function(_0x92752c, _0x593656) {
			return _0x92752c + _0x593656
		}
	};
	var _0x379984 = _0xa92f6e[_0x2c17('4c', 'H4^l')](md5, _0xa92f6e[_0x2c17('4d', 'HFyl')](_0xa92f6e['yjBzZ']("www.todaybing.com", _0x2c17('4e', 'kx!z')), _0xa92f6e[_0x2c17('4f', 'Gm%V')]));
	var _0x576b60 = Object[_0x2c17('50', 'Xvym')](_0xa54440)['sort']();
	var _0x11b0cd = '';
	for (var _0x20f028 in _0x576b60) {
		if (_0xa92f6e[_0x2c17('51', '$z6n')](_0xa92f6e['iOruS'], _0x2c17('52', 'ezN0'))) {
			_0x11b0cd += _0xa92f6e['yjBzZ'](_0xa92f6e[_0x2c17('53', 'ZZae')](_0xa92f6e[_0x2c17('54', 'hOCB')](_0x576b60[_0x20f028], '='), _0xa54440[_0x576b60[_0x20f028]]), '&')
		} else {
			if (_0xa92f6e[_0x2c17('55', '47VF')](d3[_0x2c17('56', 'DwUO')], 0x4) && array[0x2][0x0](d3, 0x3, 0x66)) {
				array[0x2][0x1](0x0, 0x4, d3)
			} else if (_0xa92f6e[_0x2c17('57', 'IynI')](d3[_0x2c17('43', 'TjE^')], 0x8) && array[0x2][0x0](d3, 0x7, 0x65) && array[0x2][0x0](d3, 0x0, 0x68)) {
				array[0x2][0x1](0x0, 0x3, d3)
			}
		}
	}
	_0x11b0cd += _0x2c17('58', 'kx!z') + _0x379984;
	var _0x5f3314 = _0xa92f6e[_0x2c17('59', '4Hvr')](md5, _0x11b0cd)['toUpperCase']();
	return getRsaSign(_0x5f3314)
}
function getRsaSign(_0x53b799) {
	var _0x145a19 = {
		'NJhBm': _0x2c17('5a', 'BNb&'),
		'xonCf': 'nucVcJcxRAEcpPprb8X3hfdxKEEYjOPAuVseewmO5cM+x7zi9FWbZ89uOp5sxjMn',
		'pekUk': 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDAbfx4VggVVpcfCjzQ+nEiJ2DL',
		'ULpiH': '-----END PUBLIC KEY-----',
		'DgCVH': 'nRg3e2QdDf/m/qMvtqXi4xhwvbpHfaX46CzQznU8l9NJtF28pTSZSKnE/791MJfV'
	};
	var _0x23d557 = _0x145a19['NJhBm']['split']('|'),
		_0x4e31d4 = 0x0;
	while ( !! []) {
		switch (_0x23d557[_0x4e31d4++]) {
		case '0':
			var _0x4e339d = new JSEncrypt();
			continue;
		case '1':
			_0x13ae84 += _0x145a19[_0x2c17('5b', 'bUrX')];
			continue;
		case '2':
			_0x13ae84 += _0x145a19[_0x2c17('5c', 's&]r')];
			continue;
		case '3':
			_0x13ae84 += _0x2c17('5d', 'ZZae');
			continue;
		case '4':
			_0x4e339d[_0x2c17('5e', 'H4^l')](_0x13ae84);
			continue;
		case '5':
			return _0x4e339d[_0x2c17('5f', '37KQ')](_0x53b799);
		case '6':
			_0x13ae84 += _0x145a19[_0x2c17('60', 'BNb&')];
			continue;
		case '7':
			_0x13ae84 += _0x145a19['DgCVH'];
			continue;
		case '8':
			var _0x13ae84 = '-----BEGIN PUBLIC KEY-----';
			continue
		}
		break
	}
};
_0xod7 = 'jsjiami.com.v6';


const da = {
	aid: "mYn4LfiT",
	ts: 1610523642
}
const y = makeSign(da);
console.log(y);

其中有2个地方需要注意,一个是atob()函数,它是window中一个解码base64的函数,你需要将其变为window.atob,另一个为location.host,转为网站的host,之后再运行就问题不大了。

标签:网络爬虫

文章评论

评论列表

已有0条评论