最新更新记录
V2.0.3(2022年12月11日)更新内容:
1、新增导入映射列表的逻辑;
2、优化修复其他混淆逻辑;
3、更新地址 - github
主要功能
ZFJObsLib是专业的iOS源码混淆工具,具体功能有方法混淆、属性混淆、类名混淆、关键字混淆、添加垃圾代码、自动创建垃圾类、删除注释、修改资源文件Hash值、加密字符串、翻新资源名、模拟人工混淆、混淆文件名、混淆文件目录、混淆词库、混淆日志、映射列表、敏感词过滤、图片压缩、爬虫服务、修改项目名、翻新项目UUID、自动备份混淆项目、自定义忽略属性、自定义忽略函数、自定义忽略类名、界面颜色魔改等等!!
代码混淆
在代码混淆方面,主要从属性混淆、函数混淆、类名混淆、关键字混淆四个方面来混淆差异化原代码,用户还可以选择混淆程度!
资源翻新
对于项目中的图片资源文件,软件不但可以修改其HASH值,并自动更新资源文件的命名,也可以给资源文件添加混淆前缀!
垃圾代码
针对源码比较少逻辑比较简单的项目,软件可以为已有类添加垃圾代码并自动引用,还能创建垃圾类并自动实例化调用!
加密字符串
对项目中的明文字符串进行加密保护,防止通过IDA等工具获取关键词定位核心业务代码!
删除注释
软件可以自动一键删除项目中的所有类型的注释代码,防止代码逻辑泄露!
混淆项目框架
软件通过一键修改项目名、混淆项目目录、翻新UUID来差异化项目框架!
敏感词过滤
针对源码中可能引用的敏感词导致的卡审或者被拒,软件可以查找敏感词并自动替换!
界面魔改
如果已经上架的源码不想修改UI直接上架,可以通过界面颜色魔改来差异化UI视图!
代码
# -*- coding: utf-8 -*-
# @Author: zfjsyqk
# @Date: 2022-07-03 00:37:53
# @Last Modified by: zfjsyqk
# @Last Modified time: 2023-01-11 22:04:38
# ---------- FLutter混淆的主入口 ----------
import os
import subprocess
from ObsSecurity import *
from ObsFlutterReview import *
from ObsFlutterVariable import *
from ObsFlutterClassName import *
from ObsFlutterMethod import *
from ObsFlutterResourceName import *
from ObsFlutterDeleteNotes import *
from ObsFlutterResourceHash import *
from ObsFlutterUUID import *
from ObsFlutterLog import *
# 单利
_personinfo = ZFJPersoninfo()
# 开始混淆了
def flutter_obscure_main(project_path, obscure_list):
if is_can_obscure() == False: return
init_flutter_obscure_data()
_personinfo.flutterProjectPath = project_path
prefix_word = ''
start_review_project(project_path)
if 'KObsFlutterVariableKey' in obscure_list:
start_obscure_variable_constant_with_project(project_path, prefix_word)
else:
pass
if 'KObsFlutterClassNameKey' in obscure_list:
start_obscure_class_with_project_path(project_path, prefix_word)
else:
pass
if 'KObsFlutterMethodNameKey' in obscure_list:
start_obscure_method_with_project_path(project_path, prefix_word)
else:
pass
if 'KObsFlutterResourceHashKey' in obscure_list:
start_update_recource_hash(project_path)
else:
pass
if 'KObsFlutterResourceNameKey' in obscure_list:
start_obscure_resource_name_with_project_path(project_path, prefix_word)
else:
pass
if 'KObsFlutterDeleteNotesKey' in obscure_list:
start_delete_all_notes(project_path)
else:
pass
if 'KObsFlutterUUIDKey' in obscure_list:
start_update_flutter_uuid(project_path)
else:
pass
end_flutter_obscure(project_path)
def end_flutter_obscure(project_path):
global _personinfo
_personinfo.flutterProjectPath = None
export_flutter_map_list(project_path)
_personinfo.root_path = None
obs_flutter_title('Flutter obfuscation has ended.')
if _personinfo != None and _personinfo.flutterRootView != None:
_personinfo.flutterRootView.endFlutterObscure()
else:
pass
def flutter_root_view_maplist(map_list_str):
global _personinfo
if _personinfo == None: return
if _personinfo.flutterRootView == None: return
_personinfo.flutterRootView.addMapListEdit(map_list_str)
如果喜欢 的话就给个小星星吧⭐️⭐️⭐️
https://github.com/zfjsyqk/ZFJObsLib