kaich / codeobscure Goto Github PK
View Code? Open in Web Editor NEWcode obscure for object-c project. 方便强大的OC工程代码自动混淆工具
License: MIT License
code obscure for object-c project. 方便强大的OC工程代码自动混淆工具
License: MIT License
每次修改代码后,不打包gem,有什么办法直接运行代码?
试了很多方法,调用require会报错。
unity5.3 生成的xcode 工程,oc 代码进行混淆,有问题,麻烦看一下
如题
在使用ib的项目里混淆了IBOutlet
声明的变量和IBAction
声明的方法会导致非常多的问题
如题
听说代码混淆有可能会被拒?这个能通过审核吗。
使用-t w -s后,一个类中只混淆了几个属性和方法,但是混淆的头文件codeObfuscation.h中一共有2977行,是否是词库用完了导致混淆代码较少呢
可不可自己定义混淆的名字? 看到了您的那个命令有-t c.这现在可以用了吗?怎么使用
照着例子1和例子2运行了一遍,发现除了文件大了1kb,里面的代码和文件名都没发生变动,不知道有没有混淆成功。
作者有没有混淆前后的对比截图之类的
/Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.5.3/lib/codeobscure.rb:80:in
block in obscure': undefined local variable or method path' for Codeobscure:Module (NameError) from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.5.3/lib/codeobscure.rb:75:in
each'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.5.3/lib/codeobscure.rb:75:in obscure' from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.5.3/bin/codeobscure:3:in
<top (required)>'
from /usr/local/bin/codeobscure:22:in load' from /usr/local/bin/codeobscure:22:in
使用 -r 报错
shixiaodadeMac-mini:Shenma_3.6.0 shixiaoda$ codeobscure -r
/Library/Ruby/Gems/2.0.0/gems/codeobscure-0.1.5.1/lib/codeobscure.rb:54:in obscure': undefined local variable or method
root_dir' for Codeobscure:Module (NameError)
from /Library/Ruby/Gems/2.0.0/gems/codeobscure-0.1.5.1/bin/codeobscure:3:in <top (required)>' from /usr/local/bin/codeobscure:22:in
load'
from /usr/local/bin/codeobscure:22:in `
使用时如果主目录为中文,则无法使用
XXX.xcodeproj
使用的命令是codeobscure -o temp02/temp01.xcodeproj -f f,w,
工程中代码很简单,两个ViewController类
/Library/Ruby/Gems/2.6.0/gems/codeobscure-0.1.8.0/lib/codeobscure.rb:138:in obscure': undefined local variable or method
path' for Codeobscure:Module
是不是哪个参数或者配置不对,谢谢
/Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.7.5/lib/codeobscure/funclist.rb:3:in require_relative': cannot load such file -- /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.7.5/lib/codeobscure/filtSymbols.rb (LoadError) from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.7.5/lib/codeobscure/funclist.rb:3:in
module:FuncList'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.7.5/lib/codeobscure/funclist.rb:1:in <top (required)>' from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:59:in
require'
from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:59:in require' from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.7.5/lib/codeobscure.rb:2:in
<top (required)>'
from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:59:in require' from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:59:in
require'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.7.5/bin/codeobscure:2:in <top (required)>' from /usr/bin/codeobscure:23:in
load'
from /usr/bin/codeobscure:23:in `
你好,我按照wiki要求来操作,所有都成功了,最后运行项目时也成功了,但并没有被混淆,点击某个方法或者类名可以跳转到codeObfuscation.h,但就是混淆失败.还请多多指教
System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/lib/sqlite3/statement.rb:108:in step': attempt to write a readonly database (SQLite3::ReadOnlyException) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/lib/sqlite3/statement.rb:108:in
block in each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/lib/sqlite3/statement.rb:107:in loop' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/lib/sqlite3/statement.rb:107:in
each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:158:in to_a' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:158:in
block in execute'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:95:in prepare' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:134:in
execute'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/filtsymbols.rb:25:in insertValue' from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/funclist.rb:45:in
block (2 levels) in capture'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/funclist.rb:44:in each' from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/funclist.rb:44:in
block in capture'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/funclist.rb:39:in scan' from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/funclist.rb:39:in
capture'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/funclist.rb:194:in block in genFuncList' from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/funclist.rb:192:in
each'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure/funclist.rb:192:in genFuncList' from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/lib/codeobscure.rb:97:in
obscure'
from /Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.6.5/bin/codeobscure:4:in <top (required)>' from /usr/local/bin/codeobscure:22:in
load'
from /usr/local/bin/codeobscure:22:in `
测试了几次 终于磨合了这个软件 很强大 非常感谢作者。
不知道对于C++ 的文件有没有作用
在碰到如下属性时,NSUInteger会被解析出来,而maximumTextLength不解析。
@Property(nonatomic, assign) IBInspectable NSUInteger maximumTextLength;
如:- (instancetype)initWithType:(int)type title:(NSString *)title;
只会混淆initWithType。
line 2: require: command not found
line 4: Codeobscure.obscure: command not found
Library/Ruby/Gems/2.3.0/gems/codeobscure-0.1.7.5/lib/codeobscure/funclist.rb:194:in `read': No such file or directory @ rb_sysopen - //Users/iosdevop/Downloads/ToThePenny-master/Pods/Headers/Public/KVNProgress/UIImage+KVNEmpty.h (Errno::ENOENT),产生这些错误为什么我跑了codescure这些命令,没反应的,演示也没反应的,就生成了一个func.list的空文件
我使用了最新版本0.1.6.1,设置被忽略的文件价里的方法名和属性名能够不被混淆,类名仍然被混淆了,麻烦作者再看看呢。
“xxx" is locked for editing and you may not be able to save your changes. Do you want to unlock it?
点unlock无法解决 会一直弹出
在碰到以下这种时,是可以用.语法来进行正常的属性操作的,但是混淆了会不匹配,报错。
没有任何混淆的作用 不起作用
这个怎么用啊,我用之后为什么生成了一个空的.h
避免跟已有宏定义冲突。
➜ ToThePenny-master git:(master) ✗ gem install codeobscure
Successfully installed codeobscure-0.1.6.5
Parsing documentation for codeobscure-0.1.6.5
Done installing documentation for codeobscure after 0 seconds
1 gem installed
➜ ToThePenny-master git:(master) ✗ sudo codeobscure -o Depoza.xcodeproj ./
处理图片资源中...
/Users/Blavtes/.rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/codeobscure-0.1.6.5/lib/codeobscure/imagemix.rb:8: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
Depoza.xcodeproj:Debug配置文件已配置完成
Depoza.xcodeproj:Release配置文件已配置完成
Depoza.xcodeproj:Debug配置文件已配置完成
Depoza.xcodeproj:Release配置文件已配置完成
Depoza.xcodeproj:Debug配置文件已配置完成
Depoza.xcodeproj:Release配置文件已配置完成
配置完成!
请直接运行项目,如果项目中出现类似: +[LoremIpsum PyTJvHwWNmeaaVzp:]: unrecognized selector sent to class
。在codeObfuscation.h中查询PyTJvHwWNmeaaVzp并删除它!
➜ ToThePenny-master git:(master) ✗ ls
Depoza Depoza.xcodeproj DepozaTests Podfile Pods Screenshots
Depoza Extension Depoza.xcworkspace LICENSE Podfile.lock README.md
➜ ToThePenny-master git:(master) ✗
➜ ToThePenny-master git:(master) ✗
=============
以上操作是否有误?
/Library/Ruby/Gems/2.3.0/gems/random-word-2.1.1/lib/random_word.rb:61:in `excluded?': undefined method `length' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.3.0/gems/random-word-2.1.1/lib/random_word.rb:23:in `block in each_randomly'
from /Library/Ruby/Gems/2.3.0/gems/random-word-2.1.1/lib/random_word.rb:19:in `loop'
from /Library/Ruby/Gems/2.3.0/gems/random-word-2.1.1/lib/random_word.rb:19:in `each_randomly'
from /usr/bin/codeobscure:1:in `each'
备注:
1、如上错误,是使用随机单词混淆(-t w)执行命令codeobscure出现的,而使用随机字符混淆没问题。(像是random_word的问题)
2、自己写的简单Demo,用随机单词和随机字符都没问题。但是在已上线比较大的项目里使用随机单词混淆会出现如上问题。
本机环境:
RUBYGEMS VERSION: 2.7.7
RUBY VERSION: 2.3.7 (2018-03-28 patchlevel 456) [universal.x86_64-darwin18]
INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.3.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.