This commit is contained in:
cilame 2023-06-16 01:16:13 +08:00
parent a07d5b11cf
commit 24f22a7cd5
2 changed files with 9 additions and 1 deletions

View File

@ -1275,6 +1275,7 @@ function muti_process_defusion(jscode, config){
function muti_process_sojsondefusion(jscode, config){ function muti_process_sojsondefusion(jscode, config){
var ast = parser.parse(jscode); var ast = parser.parse(jscode);
config = config || {}
if (ast.program.body.length == 1){ if (ast.program.body.length == 1){
ast.program.body = ast.program.body[0].expression.callee.body.body ast.program.body = ast.program.body[0].expression.callee.body.body

View File

@ -44,8 +44,15 @@ function get_ob_config(){
} }
sojsontn.addEventListener('click', function(e){ sojsontn.addEventListener('click', function(e){
try{
try{ try{
;(txt2||txt).value = muti_process_sojsondefusion(txt.value, get_ob_config()) ;(txt2||txt).value = muti_process_sojsondefusion(txt.value, get_ob_config())
}catch(e){
console.log('解密失败,尝试不配置清理 clear_ob_extra 再次解密')
var config = get_ob_config()
delete config.clear_ob_extra
;(txt2||txt).value = muti_process_sojsondefusion(txt.value)
}
}catch(e){ }catch(e){
;(txt2||txt).value = e.stack ;(txt2||txt).value = e.stack
} }