2.confuse.sh文件中添加以下代码

  1. #!/usr/bin/env bash
  2. TABLENAME=symbols
  3. SYMBOL_DB_FILE="symbols"
  4. STRING_SYMBOL_FILE="$PROJECT_DIR/CodeConfuse/confuse/func.list"
  5. CONFUSE_FILE="$PROJECT_DIR/CodeConfuse"
  6. HEAD_FILE="$PROJECT_DIR/CodeConfuse/confuse/CodeConfuse.h"
  7. export LC_CTYPE=C
  8. #取以.m或.h结尾的文件以+号或-号开头的行 |去掉所有+号或-号|用空格代替符号|n个空格跟着<号 替换成 <号|开头不能是IBAction|用空格split字串取第二部分|排序|去重复|删除空行|删掉以init开头的行>写进func.list
  9. grep -h -r -I "^[-+]" $CONFUSE_FILE --include '*.[mh]' |sed "s/[+-]//g"|sed "s/[();,: *\^\/\{]/ /g"|sed "s/[ ]*</</"| sed "/^[ ]*IBAction/d"|awk '{split($0,b," "); print b[2]; }'| sort|uniq |sed "/^$/d"|sed -n "/^nhb_/p" >$STRING_SYMBOL_FILE
  10. #维护数据库方便日后作排重,以下代码来自念茜的微博
  11. createTable()
  12. {
  13. echo "create table $TABLENAME(src text, des text);" | sqlite3 $SYMBOL_DB_FILE
  14. }
  15. insertValue()
  16. {
  17. echo "insert into $TABLENAME values('$1' ,'$2');" | sqlite3 $SYMBOL_DB_FILE
  18. }
  19. query()
  20. {
  21. echo "select * from $TABLENAME where src='$1';" | sqlite3 $SYMBOL_DB_FILE
  22. }
  23. ramdomString()
  24. {
  25. openssl rand -base64 64 | tr -cd 'a-zA-Z' |head -c 16
  26. }
  27. rm -f $SYMBOL_DB_FILE
  28. rm -f $HEAD_FILE
  29. createTable
  30. touch $HEAD_FILE
  31. #这里也要做修改
  32. echo '#ifndef CodeConfuse_h
  33. #define CodeConfuse' >> $HEAD_FILE
  34. echo "//confuse string at `date`" >> $HEAD_FILE
  35. cat "$STRING_SYMBOL_FILE" | while read -ra line; do
  36. if [[ ! -z "$line" ]]; then
  37. ramdom=`ramdomString`
  38. echo $line $ramdom
  39. insertValue $line $ramdom
  40. echo "#define $line $ramdom" >> $HEAD_FILE
  41. fi
  42. done
  43. echo "#endif" >> $HEAD_FILE
  44. sqlite3 $SYMBOL_DB_FILE .dump

混淆代码被拒回复

  1. Guideline 2.3.1 - Performance
  2. We discovered that your app contains hidden features. Specifically, It would be appropriate to remove all code obfuscation and selector mangling or to explain in detail the purpose of its inclusion before resubmitting for review.
  1. Guideline 2.3.1 - Performance
  2. We discovered that your app contains hidden features. Specifically, it would be appropriate to remove this app's implementation of the ConfuseCode library before resubmitting for review.
  3. You will experience a delayed review process if you deliberately disregard the App Store Review Guidelines, ignore previous rejection feedback in future app submissions, or use your app to mislead or deceive users.
  4. Important Information
  5. As a result of violating this guideline, your app’s review has been delayed. Future submissions of this app, and other apps associated with your Apple Developer account, will also experience a delayed review. Deliberate disregard of the App Store Review Guidelines and attempts to deceive users or undermine the review process are unacceptable and is a direct violation Section 3.2(f) of the Apple Developer Program License Agreement. Continuing to violate the Terms & Conditions of the Apple Developer Program will result in the termination of your account, as well as any related or linked accounts, and the removal of all your associated apps from the App Store.
  6. We want to provide a safe experience for users to get apps and a fair environment for for all developers to be successful. If you believe we have misunderstood or misinterpreted the intent of your app, you may submit an appeal for consideration or provide additional clarification by responding directly to this message in Resolution Center in iTunes Connect.

代码混淆参考

  1. iOS开发系列—代码混淆

  2. IOS马甲包混淆

  3. iOS 代码混淆 && 垃圾代码

  4. iOS Framework混淆/编译打包脚本(支持swift/oc/c++)

  5. iOS-代码混淆加固策略

iOS代码混淆
iOS代码混淆——自动

iOS自动代码混淆

ios审核被拒4.3(马甲包该如何上架)

ios第一次提交审核被拒第二次就被无限延时的解决方案

iOS原生应用与SDK马甲包安全之代码混淆的设计实现
https://www.cnblogs.com/shenlaiyaoshi/p/8831109.html
https://blog.csdn.net/ShuTongIt/article/details/80886573

https://github.com/LennonChin/Code-Confuse-Plugin/blob/master/README_zh-cn.md

http://www.devashen.com/blog/2018/07/10/zi-dong-sheng-cheng-swifthun-yao-wen-jian/

https://www.jianshu.com/p/81d12dfab374
https://my.oschina.net/FEEDFACF/blog/1627398

源码参考

https://github.com/lyzz0612/iosMixTools

https://github.com/JonorZhang/iOSConfuse
https://github.com/heqingliang/CodeObfus

https://blog.csdn.net/yao1500/article/details/80181403
https://www.yaozuopan.top/web/index.php/71.html

第三方APP加固

http://www.ijiami.cn/
https://www.dingxiang-inc.com/
http://dun.163.com/product/ios-reinforce?from=baiduP_YYJG_IOS724
https://www.kiwisec.com/product/app-encrypt.html
http://www.zhisuyun.top/#/product/app-store

混淆包给予拒绝通过
马甲包绕过审核技巧整理https://blog.csdn.net/sacrifice123/article/details/81203947

Python-iOS代码混淆-马甲包混淆工具(Python脚本混淆iOS工程)