提交 37155f9c authored 作者: 钟是志's avatar 钟是志

弃用混淆代码

上级 bf9b5cd1
......@@ -4,45 +4,45 @@ import { queryApiActionPath } from '@/webPublic/one_stop_public/utils/queryConfi
import { qqCw } from '@/webPublic/one_stop_public/utils/request';
import { isJSON } from '@/webPublic/zyd_public/utils/utils';
import { deepCopy } from '@/webPublic/one_stop_public/utils/myutils';
import strToBinary from './strToBinary'; // 字符串转二进制 混淆代码
import binaryToStr from './binaryToStr'; // 二进制字符串转JSON字符串 混淆代码
// import strToBinary from './strToBinary'; // 字符串转二进制 混淆代码
// import binaryToStr from './binaryToStr'; // 二进制字符串转JSON字符串 混淆代码
/**
* 字符串转二进制
* */
// function strToBinary(str) {
// let result = [];
// let list = str.split('');
// for (let i = 0; i < list.length; i++) {
// if (i !== 0) {
// result.push('_');
// }
// let item = list[i];
// let binaryStr = item.charCodeAt()
// .toString(2);
// result.push(binaryStr);
// }
// let resultStr = result.join('');
// resultStr = resultStr.replaceAll('0', '-').replaceAll('1', '.');
// return resultStr;
// }
function strToBinary(str) {
let result = [];
let list = str.split('');
for (let i = 0; i < list.length; i++) {
if (i !== 0) {
result.push('_');
}
let item = list[i];
let binaryStr = item.charCodeAt()
.toString(2);
result.push(binaryStr);
}
let resultStr = result.join('');
resultStr = resultStr.replaceAll('0', '-').replaceAll('1', '.');
return resultStr;
}
/**
* 二进制字符串转JSON字符串
* */
// function binaryToStr(binaryStr = '') {
// let res = '';
// if (binaryStr) {
// binaryStr = binaryStr.replaceAll('.', '1');
// binaryStr = binaryStr.replaceAll('-', '0');
// let strListArr = binaryStr.split('_');
//
// for (let i = 0; i < strListArr.length; i++) {
// let item = strListArr[i];
// res += String.fromCharCode(parseInt(item, 2));
// }
// }
// return res;
// }
function binaryToStr(binaryStr = '') {
let res = '';
if (binaryStr) {
binaryStr = binaryStr.replaceAll('.', '1');
binaryStr = binaryStr.replaceAll('-', '0');
let strListArr = binaryStr.split('_');
for (let i = 0; i < strListArr.length; i++) {
let item = strListArr[i];
res += String.fromCharCode(parseInt(item, 2));
}
}
return res;
}
function formatDatas(datas, url = '') {
let datasCode = JSON.stringify(datas);
......
function _0x1fe1(_0xba4fa3, _0x1a5a2c) {
const _0x210c64 = _0x210c();
return _0x1fe1 = function (_0x1fe114, _0x38607b) {
_0x1fe114 = _0x1fe114 - 0x124;
let _0x638273 = _0x210c64[_0x1fe114];
return _0x638273;
}, _0x1fe1(_0xba4fa3, _0x1a5a2c);
}
(function (_0x10c1af, _0x545339) {
const _0x15b905 = _0x1fe1,
_0x316d2d = _0x10c1af();
while (!![]) {
try {
const _0x4e1d7b = -parseInt(_0x15b905(0x124)) / 0x1 + parseInt(_0x15b905(0x130)) / 0x2 + -parseInt(_0x15b905(0x12d)) / 0x3 * (parseInt(_0x15b905(0x12a)) / 0x4) + parseInt(_0x15b905(0x129)) / 0x5 * (parseInt(_0x15b905(0x128)) / 0x6) + parseInt(_0x15b905(0x12c)) / 0x7 * (parseInt(_0x15b905(0x127)) / 0x8) + -parseInt(_0x15b905(0x12f)) / 0x9 + parseInt(_0x15b905(0x12e)) / 0xa;
if (_0x4e1d7b === _0x545339) break; else _0x316d2d['push'](_0x316d2d['shift']());
} catch (_0x4e17c4) {
_0x316d2d['push'](_0x316d2d['shift']());
}
}
}(_0x210c, 0x4c89e));
function _0x210c() {
const _0xfdf36a = ['661315fARfsd', '4jTsGbX', 'split', '1154489jkyGqU', '1324143bPLxEM', '5021250iOAfBC', '4420215EKifMX', '537926uMCSQX', '86786XkjbYv', 'length', 'replaceAll', '8hyNtuX', '18ElZScC'];
_0x210c = function () {
return _0xfdf36a;
};
return _0x210c();
}
function binaryToStr(_0x3965d2 = '') {
const _0xe2d440 = _0x1fe1;
let _0x530667 = '';
if (_0x3965d2) {
_0x3965d2 = _0x3965d2[_0xe2d440(0x126)]('.', '1'), _0x3965d2 = _0x3965d2[_0xe2d440(0x126)]('-', '0');
let _0xcdde8f = _0x3965d2[_0xe2d440(0x12b)]('_');
for (let _0x6d2f3e = 0x0; _0x6d2f3e < _0xcdde8f[_0xe2d440(0x125)]; _0x6d2f3e++) {
let _0x2c7a33 = _0xcdde8f[_0x6d2f3e];
_0x530667 += String['fromCharCode'](parseInt(_0x2c7a33, 0x2));
}
}
return _0x530667;
}
export default binaryToStr;
// function _0x1fe1(_0xba4fa3, _0x1a5a2c) {
// const _0x210c64 = _0x210c();
// return _0x1fe1 = function (_0x1fe114, _0x38607b) {
// _0x1fe114 = _0x1fe114 - 0x124;
// let _0x638273 = _0x210c64[_0x1fe114];
// return _0x638273;
// }, _0x1fe1(_0xba4fa3, _0x1a5a2c);
// }
//
// (function (_0x10c1af, _0x545339) {
// const _0x15b905 = _0x1fe1,
// _0x316d2d = _0x10c1af();
// while (!![]) {
// try {
// const _0x4e1d7b = -parseInt(_0x15b905(0x124)) / 0x1 + parseInt(_0x15b905(0x130)) / 0x2 + -parseInt(_0x15b905(0x12d)) / 0x3 * (parseInt(_0x15b905(0x12a)) / 0x4) + parseInt(_0x15b905(0x129)) / 0x5 * (parseInt(_0x15b905(0x128)) / 0x6) + parseInt(_0x15b905(0x12c)) / 0x7 * (parseInt(_0x15b905(0x127)) / 0x8) + -parseInt(_0x15b905(0x12f)) / 0x9 + parseInt(_0x15b905(0x12e)) / 0xa;
// if (_0x4e1d7b === _0x545339) break; else _0x316d2d['push'](_0x316d2d['shift']());
// } catch (_0x4e17c4) {
// _0x316d2d['push'](_0x316d2d['shift']());
// }
// }
// }(_0x210c, 0x4c89e));
//
// function _0x210c() {
// const _0xfdf36a = ['661315fARfsd', '4jTsGbX', 'split', '1154489jkyGqU', '1324143bPLxEM', '5021250iOAfBC', '4420215EKifMX', '537926uMCSQX', '86786XkjbYv', 'length', 'replaceAll', '8hyNtuX', '18ElZScC'];
// _0x210c = function () {
// return _0xfdf36a;
// };
// return _0x210c();
// }
//
// function binaryToStr(_0x3965d2 = '') {
// const _0xe2d440 = _0x1fe1;
// let _0x530667 = '';
// if (_0x3965d2) {
// _0x3965d2 = _0x3965d2[_0xe2d440(0x126)]('.', '1'), _0x3965d2 = _0x3965d2[_0xe2d440(0x126)]('-', '0');
// let _0xcdde8f = _0x3965d2[_0xe2d440(0x12b)]('_');
// for (let _0x6d2f3e = 0x0; _0x6d2f3e < _0xcdde8f[_0xe2d440(0x125)]; _0x6d2f3e++) {
// let _0x2c7a33 = _0xcdde8f[_0x6d2f3e];
// _0x530667 += String['fromCharCode'](parseInt(_0x2c7a33, 0x2));
// }
// }
// return _0x530667;
// }
// export default binaryToStr;
/**
* 代码混淆
* 2022年6月21日
* 钟是志
* 解决北电科学校的 第三方安全测评公司的问题
* */
function _0x4ef8() {
const _0x17bb5a = ['481374jxbvau', 'push', '28wsNjbv', '5xIHGnt', 'charCodeAt', '1024904tHoNdW', '11191763OpoFLZ', '624243CCgrxw', '2isqBwU', '1394360vTUesG', '387gETRxx', '96020VVIGLY', '367205YUbBcj'];
_0x4ef8 = function () {
return _0x17bb5a;
};
return _0x4ef8();
}
function _0x251b(_0x3e6559, _0x18d143) {
const _0x4ef8c2 = _0x4ef8();
return _0x251b = function (_0x251bf7, _0x3cfc29) {
_0x251bf7 = _0x251bf7 - 0x10f;
let _0x450bfc = _0x4ef8c2[_0x251bf7];
return _0x450bfc;
}, _0x251b(_0x3e6559, _0x18d143);
}
(function (_0xca7f49, _0x4d2eee) {
const _0x1de042 = _0x251b,
_0x4adbdc = _0xca7f49();
while (!![]) {
try {
const _0x553796 = parseInt(_0x1de042(0x11b)) / 0x1 + parseInt(_0x1de042(0x117)) / 0x2 * (parseInt(_0x1de042(0x116)) / 0x3) + -parseInt(_0x1de042(0x114)) / 0x4 * (parseInt(_0x1de042(0x112)) / 0x5) + parseInt(_0x1de042(0x10f)) / 0x6 * (parseInt(_0x1de042(0x111)) / 0x7) + parseInt(_0x1de042(0x118)) / 0x8 + parseInt(_0x1de042(0x119)) / 0x9 * (parseInt(_0x1de042(0x11a)) / 0xa) + -parseInt(_0x1de042(0x115)) / 0xb;
if (_0x553796 === _0x4d2eee) break; else _0x4adbdc['push'](_0x4adbdc['shift']());
} catch (_0x44d7aa) {
_0x4adbdc['push'](_0x4adbdc['shift']());
}
}
}(_0x4ef8, 0x3333c));
function strToBinary(_0x18b19e) {
const _0x34cebd = _0x251b;
let _0x54a5d7 = [],
_0x4f6eaa = _0x18b19e['split']('');
for (let _0x2bcf5e = 0x0; _0x2bcf5e < _0x4f6eaa['length']; _0x2bcf5e++) {
_0x2bcf5e !== 0x0 && _0x54a5d7[_0x34cebd(0x110)]('_');
let _0x435a20 = _0x4f6eaa[_0x2bcf5e],
_0x1d8e9b = _0x435a20[_0x34cebd(0x113)]()['toString'](0x2);
_0x54a5d7[_0x34cebd(0x110)](_0x1d8e9b);
}
let _0x3be325 = _0x54a5d7['join']('');
return _0x3be325 = _0x3be325['replaceAll']('0', '-')['replaceAll']('1', '.'), _0x3be325;
}
export default strToBinary;
// /**
// * 代码混淆
// * 2022年6月21日
// * 钟是志
// * 解决北电科学校的 第三方安全测评公司的问题
// * */
// function _0x4ef8() {
// const _0x17bb5a = ['481374jxbvau', 'push', '28wsNjbv', '5xIHGnt', 'charCodeAt', '1024904tHoNdW', '11191763OpoFLZ', '624243CCgrxw', '2isqBwU', '1394360vTUesG', '387gETRxx', '96020VVIGLY', '367205YUbBcj'];
// _0x4ef8 = function () {
// return _0x17bb5a;
// };
// return _0x4ef8();
// }
//
// function _0x251b(_0x3e6559, _0x18d143) {
// const _0x4ef8c2 = _0x4ef8();
// return _0x251b = function (_0x251bf7, _0x3cfc29) {
// _0x251bf7 = _0x251bf7 - 0x10f;
// let _0x450bfc = _0x4ef8c2[_0x251bf7];
// return _0x450bfc;
// }, _0x251b(_0x3e6559, _0x18d143);
// }
//
// (function (_0xca7f49, _0x4d2eee) {
// const _0x1de042 = _0x251b,
// _0x4adbdc = _0xca7f49();
// while (!![]) {
// try {
// const _0x553796 = parseInt(_0x1de042(0x11b)) / 0x1 + parseInt(_0x1de042(0x117)) / 0x2 * (parseInt(_0x1de042(0x116)) / 0x3) + -parseInt(_0x1de042(0x114)) / 0x4 * (parseInt(_0x1de042(0x112)) / 0x5) + parseInt(_0x1de042(0x10f)) / 0x6 * (parseInt(_0x1de042(0x111)) / 0x7) + parseInt(_0x1de042(0x118)) / 0x8 + parseInt(_0x1de042(0x119)) / 0x9 * (parseInt(_0x1de042(0x11a)) / 0xa) + -parseInt(_0x1de042(0x115)) / 0xb;
// if (_0x553796 === _0x4d2eee) break; else _0x4adbdc['push'](_0x4adbdc['shift']());
// } catch (_0x44d7aa) {
// _0x4adbdc['push'](_0x4adbdc['shift']());
// }
// }
// }(_0x4ef8, 0x3333c));
//
// function strToBinary(_0x18b19e) {
// const _0x34cebd = _0x251b;
// let _0x54a5d7 = [],
// _0x4f6eaa = _0x18b19e['split']('');
// for (let _0x2bcf5e = 0x0; _0x2bcf5e < _0x4f6eaa['length']; _0x2bcf5e++) {
// _0x2bcf5e !== 0x0 && _0x54a5d7[_0x34cebd(0x110)]('_');
// let _0x435a20 = _0x4f6eaa[_0x2bcf5e],
// _0x1d8e9b = _0x435a20[_0x34cebd(0x113)]()['toString'](0x2);
// _0x54a5d7[_0x34cebd(0x110)](_0x1d8e9b);
// }
// let _0x3be325 = _0x54a5d7['join']('');
// return _0x3be325 = _0x3be325['replaceAll']('0', '-')['replaceAll']('1', '.'), _0x3be325;
// }
//
// export default strToBinary;
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论