Giter Site home page Giter Site logo

gskconfuse's Introduction

GSKConfuse

iOS代码混淆(随机单词拼接)

前言

最近的一份工作,代码需要时时更新方法名,来降低重复率,网上搜罗了一下,发现随机命名都是随机字符串,这个对于提审到App Store简直是个噩梦,因为机审可能都过不去,所以借鉴https://github.com/housenkui/HSKConfuse自己改了一份,随机方法名为随机单词拼接,哪个方法需要随机混淆由自己定。也搞了份随机单词拼接更改文件名和属性名的,操作比较繁琐就不发在这了。

成果

使用方式

  1. 在words.list文件中加入词库的词
  2. 在func.list文件中加入想要替换的方法,例如
    -(void)Function2:(NSString *)str;
    
    分别加入Function2和str就可以了,如果有同名的添加一次就可以
  3. 在PrefixHeader.pch中加入
    #import "codeObfuscation.h"
    
  4. 在Build Phases中新建一个Run Script中加入
$PROJECT_DIR/GSKConfuse/Resource/confuse.sh

路径根据实际情况来

  1. 需要替换confuse.sh中文件的路径

温馨提示

  1. codeObfuscation.h这个文件不能删除,但是可以清空,清空之后就是没替换过混淆的方法名,可以方便调试
  2. confuse.sh、words.list、func.list这三个文件都可以删除依赖关系,只要不删除文件就可以了,删除依赖关系之后打包不会有任何脚本信息,否则包内可能会有残留脚本

gskconfuse's People

Contributors

gsk945 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.