Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
37155f9c
提交
37155f9c
authored
6月 24, 2022
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
弃用混淆代码
上级
bf9b5cd1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
127 行增加
和
127 行删除
+127
-127
binaryEncode.js
one_stop_public/Base16/binaryEncode.js
+32
-32
binaryToStr.js
one_stop_public/Base16/binaryToStr.js
+44
-44
strToBinary.js
one_stop_public/Base16/strToBinary.js
+51
-51
没有找到文件。
one_stop_public/Base16/binaryEncode.js
浏览文件 @
37155f9c
...
@@ -4,45 +4,45 @@ import { queryApiActionPath } from '@/webPublic/one_stop_public/utils/queryConfi
...
@@ -4,45 +4,45 @@ import { queryApiActionPath } from '@/webPublic/one_stop_public/utils/queryConfi
import
{
qqCw
}
from
'@/webPublic/one_stop_public/utils/request'
;
import
{
qqCw
}
from
'@/webPublic/one_stop_public/utils/request'
;
import
{
isJSON
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
isJSON
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
deepCopy
}
from
'@/webPublic/one_stop_public/utils/myutils'
;
import
{
deepCopy
}
from
'@/webPublic/one_stop_public/utils/myutils'
;
import
strToBinary
from
'./strToBinary'
;
// 字符串转二进制 混淆代码
//
import strToBinary from './strToBinary'; // 字符串转二进制 混淆代码
import
binaryToStr
from
'./binaryToStr'
;
// 二进制字符串转JSON字符串 混淆代码
//
import binaryToStr from './binaryToStr'; // 二进制字符串转JSON字符串 混淆代码
/**
/**
* 字符串转二进制
* 字符串转二进制
* */
* */
//
function strToBinary(str) {
function
strToBinary
(
str
)
{
//
let result = [];
let
result
=
[];
//
let list = str.split('');
let
list
=
str
.
split
(
''
);
//
for (let i = 0; i < list.length; i++) {
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
//
if (i !== 0) {
if
(
i
!==
0
)
{
//
result.push('_');
result
.
push
(
'_'
);
//
}
}
//
let item = list[i];
let
item
=
list
[
i
];
//
let binaryStr = item.charCodeAt()
let
binaryStr
=
item
.
charCodeAt
()
//
.toString(2);
.
toString
(
2
);
//
result.push(binaryStr);
result
.
push
(
binaryStr
);
//
}
}
//
let resultStr = result.join('');
let
resultStr
=
result
.
join
(
''
);
//
resultStr = resultStr.replaceAll('0', '-').replaceAll('1', '.');
resultStr
=
resultStr
.
replaceAll
(
'0'
,
'-'
).
replaceAll
(
'1'
,
'.'
);
//
return resultStr;
return
resultStr
;
//
}
}
/**
/**
* 二进制字符串转JSON字符串
* 二进制字符串转JSON字符串
* */
* */
//
function binaryToStr(binaryStr = '') {
function
binaryToStr
(
binaryStr
=
''
)
{
//
let res = '';
let
res
=
''
;
//
if (binaryStr) {
if
(
binaryStr
)
{
//
binaryStr = binaryStr.replaceAll('.', '1');
binaryStr
=
binaryStr
.
replaceAll
(
'.'
,
'1'
);
//
binaryStr = binaryStr.replaceAll('-', '0');
binaryStr
=
binaryStr
.
replaceAll
(
'-'
,
'0'
);
//
let strListArr = binaryStr.split('_');
let
strListArr
=
binaryStr
.
split
(
'_'
);
//
//
for (let i = 0; i < strListArr.length; i++) {
for
(
let
i
=
0
;
i
<
strListArr
.
length
;
i
++
)
{
//
let item = strListArr[i];
let
item
=
strListArr
[
i
];
//
res += String.fromCharCode(parseInt(item, 2));
res
+=
String
.
fromCharCode
(
parseInt
(
item
,
2
));
//
}
}
//
}
}
//
return res;
return
res
;
//
}
}
function
formatDatas
(
datas
,
url
=
''
)
{
function
formatDatas
(
datas
,
url
=
''
)
{
let
datasCode
=
JSON
.
stringify
(
datas
);
let
datasCode
=
JSON
.
stringify
(
datas
);
...
...
one_stop_public/Base16/binaryToStr.js
浏览文件 @
37155f9c
function
_0x1fe1
(
_0xba4fa3
,
_0x1a5a2c
)
{
//
function _0x1fe1(_0xba4fa3, _0x1a5a2c) {
const
_0x210c64
=
_0x210c
();
//
const _0x210c64 = _0x210c();
return
_0x1fe1
=
function
(
_0x1fe114
,
_0x38607b
)
{
//
return _0x1fe1 = function (_0x1fe114, _0x38607b) {
_0x1fe114
=
_0x1fe114
-
0x124
;
//
_0x1fe114 = _0x1fe114 - 0x124;
let
_0x638273
=
_0x210c64
[
_0x1fe114
];
//
let _0x638273 = _0x210c64[_0x1fe114];
return
_0x638273
;
//
return _0x638273;
},
_0x1fe1
(
_0xba4fa3
,
_0x1a5a2c
);
//
}, _0x1fe1(_0xba4fa3, _0x1a5a2c);
}
//
}
//
(
function
(
_0x10c1af
,
_0x545339
)
{
//
(function (_0x10c1af, _0x545339) {
const
_0x15b905
=
_0x1fe1
,
//
const _0x15b905 = _0x1fe1,
_0x316d2d
=
_0x10c1af
();
//
_0x316d2d = _0x10c1af();
while
(
!!
[])
{
//
while (!![]) {
try
{
//
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
;
//
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'
]());
//
if (_0x4e1d7b === _0x545339) break; else _0x316d2d['push'](_0x316d2d['shift']());
}
catch
(
_0x4e17c4
)
{
//
} catch (_0x4e17c4) {
_0x316d2d
[
'push'
](
_0x316d2d
[
'shift'
]());
//
_0x316d2d['push'](_0x316d2d['shift']());
}
//
}
}
//
}
}(
_0x210c
,
0x4c89e
));
//
}(_0x210c, 0x4c89e));
//
function
_0x210c
()
{
//
function _0x210c() {
const
_0xfdf36a
=
[
'661315fARfsd'
,
'4jTsGbX'
,
'split'
,
'1154489jkyGqU'
,
'1324143bPLxEM'
,
'5021250iOAfBC'
,
'4420215EKifMX'
,
'537926uMCSQX'
,
'86786XkjbYv'
,
'length'
,
'replaceAll'
,
'8hyNtuX'
,
'18ElZScC'
];
//
const _0xfdf36a = ['661315fARfsd', '4jTsGbX', 'split', '1154489jkyGqU', '1324143bPLxEM', '5021250iOAfBC', '4420215EKifMX', '537926uMCSQX', '86786XkjbYv', 'length', 'replaceAll', '8hyNtuX', '18ElZScC'];
_0x210c
=
function
()
{
//
_0x210c = function () {
return
_0xfdf36a
;
//
return _0xfdf36a;
};
//
};
return
_0x210c
();
//
return _0x210c();
}
//
}
//
function
binaryToStr
(
_0x3965d2
=
''
)
{
//
function binaryToStr(_0x3965d2 = '') {
const
_0xe2d440
=
_0x1fe1
;
//
const _0xe2d440 = _0x1fe1;
let
_0x530667
=
''
;
//
let _0x530667 = '';
if
(
_0x3965d2
)
{
//
if (_0x3965d2) {
_0x3965d2
=
_0x3965d2
[
_0xe2d440
(
0x126
)](
'.'
,
'1'
),
_0x3965d2
=
_0x3965d2
[
_0xe2d440
(
0x126
)](
'-'
,
'0'
);
//
_0x3965d2 = _0x3965d2[_0xe2d440(0x126)]('.', '1'), _0x3965d2 = _0x3965d2[_0xe2d440(0x126)]('-', '0');
let
_0xcdde8f
=
_0x3965d2
[
_0xe2d440
(
0x12b
)](
'_'
);
//
let _0xcdde8f = _0x3965d2[_0xe2d440(0x12b)]('_');
for
(
let
_0x6d2f3e
=
0x0
;
_0x6d2f3e
<
_0xcdde8f
[
_0xe2d440
(
0x125
)];
_0x6d2f3e
++
)
{
//
for (let _0x6d2f3e = 0x0; _0x6d2f3e < _0xcdde8f[_0xe2d440(0x125)]; _0x6d2f3e++) {
let
_0x2c7a33
=
_0xcdde8f
[
_0x6d2f3e
];
//
let _0x2c7a33 = _0xcdde8f[_0x6d2f3e];
_0x530667
+=
String
[
'fromCharCode'
](
parseInt
(
_0x2c7a33
,
0x2
));
//
_0x530667 += String['fromCharCode'](parseInt(_0x2c7a33, 0x2));
}
//
}
}
//
}
return
_0x530667
;
//
return _0x530667;
}
//
}
export
default
binaryToStr
;
//
export default binaryToStr;
one_stop_public/Base16/strToBinary.js
浏览文件 @
37155f9c
/**
/
/ /
**
* 代码混淆
//
* 代码混淆
* 2022年6月21日
//
* 2022年6月21日
* 钟是志
//
* 钟是志
* 解决北电科学校的 第三方安全测评公司的问题
//
* 解决北电科学校的 第三方安全测评公司的问题
* */
//
* */
function
_0x4ef8
()
{
//
function _0x4ef8() {
const
_0x17bb5a
=
[
'481374jxbvau'
,
'push'
,
'28wsNjbv'
,
'5xIHGnt'
,
'charCodeAt'
,
'1024904tHoNdW'
,
'11191763OpoFLZ'
,
'624243CCgrxw'
,
'2isqBwU'
,
'1394360vTUesG'
,
'387gETRxx'
,
'96020VVIGLY'
,
'367205YUbBcj'
];
//
const _0x17bb5a = ['481374jxbvau', 'push', '28wsNjbv', '5xIHGnt', 'charCodeAt', '1024904tHoNdW', '11191763OpoFLZ', '624243CCgrxw', '2isqBwU', '1394360vTUesG', '387gETRxx', '96020VVIGLY', '367205YUbBcj'];
_0x4ef8
=
function
()
{
//
_0x4ef8 = function () {
return
_0x17bb5a
;
//
return _0x17bb5a;
};
//
};
return
_0x4ef8
();
//
return _0x4ef8();
}
//
}
//
function
_0x251b
(
_0x3e6559
,
_0x18d143
)
{
//
function _0x251b(_0x3e6559, _0x18d143) {
const
_0x4ef8c2
=
_0x4ef8
();
//
const _0x4ef8c2 = _0x4ef8();
return
_0x251b
=
function
(
_0x251bf7
,
_0x3cfc29
)
{
//
return _0x251b = function (_0x251bf7, _0x3cfc29) {
_0x251bf7
=
_0x251bf7
-
0x10f
;
//
_0x251bf7 = _0x251bf7 - 0x10f;
let
_0x450bfc
=
_0x4ef8c2
[
_0x251bf7
];
//
let _0x450bfc = _0x4ef8c2[_0x251bf7];
return
_0x450bfc
;
//
return _0x450bfc;
},
_0x251b
(
_0x3e6559
,
_0x18d143
);
//
}, _0x251b(_0x3e6559, _0x18d143);
}
//
}
//
(
function
(
_0xca7f49
,
_0x4d2eee
)
{
//
(function (_0xca7f49, _0x4d2eee) {
const
_0x1de042
=
_0x251b
,
//
const _0x1de042 = _0x251b,
_0x4adbdc
=
_0xca7f49
();
//
_0x4adbdc = _0xca7f49();
while
(
!!
[])
{
//
while (!![]) {
try
{
//
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
;
//
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'
]());
//
if (_0x553796 === _0x4d2eee) break; else _0x4adbdc['push'](_0x4adbdc['shift']());
}
catch
(
_0x44d7aa
)
{
//
} catch (_0x44d7aa) {
_0x4adbdc
[
'push'
](
_0x4adbdc
[
'shift'
]());
//
_0x4adbdc['push'](_0x4adbdc['shift']());
}
//
}
}
//
}
}(
_0x4ef8
,
0x3333c
));
//
}(_0x4ef8, 0x3333c));
//
function
strToBinary
(
_0x18b19e
)
{
//
function strToBinary(_0x18b19e) {
const
_0x34cebd
=
_0x251b
;
//
const _0x34cebd = _0x251b;
let
_0x54a5d7
=
[],
//
let _0x54a5d7 = [],
_0x4f6eaa
=
_0x18b19e
[
'split'
](
''
);
//
_0x4f6eaa = _0x18b19e['split']('');
for
(
let
_0x2bcf5e
=
0x0
;
_0x2bcf5e
<
_0x4f6eaa
[
'length'
];
_0x2bcf5e
++
)
{
//
for (let _0x2bcf5e = 0x0; _0x2bcf5e < _0x4f6eaa['length']; _0x2bcf5e++) {
_0x2bcf5e
!==
0x0
&&
_0x54a5d7
[
_0x34cebd
(
0x110
)](
'_'
);
//
_0x2bcf5e !== 0x0 && _0x54a5d7[_0x34cebd(0x110)]('_');
let
_0x435a20
=
_0x4f6eaa
[
_0x2bcf5e
],
//
let _0x435a20 = _0x4f6eaa[_0x2bcf5e],
_0x1d8e9b
=
_0x435a20
[
_0x34cebd
(
0x113
)]()[
'toString'
](
0x2
);
//
_0x1d8e9b = _0x435a20[_0x34cebd(0x113)]()['toString'](0x2);
_0x54a5d7
[
_0x34cebd
(
0x110
)](
_0x1d8e9b
);
//
_0x54a5d7[_0x34cebd(0x110)](_0x1d8e9b);
}
//
}
let
_0x3be325
=
_0x54a5d7
[
'join'
](
''
);
//
let _0x3be325 = _0x54a5d7['join']('');
return
_0x3be325
=
_0x3be325
[
'replaceAll'
](
'0'
,
'-'
)[
'replaceAll'
](
'1'
,
'.'
),
_0x3be325
;
//
return _0x3be325 = _0x3be325['replaceAll']('0', '-')['replaceAll']('1', '.'), _0x3be325;
}
//
}
//
export
default
strToBinary
;
//
export default strToBinary;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论