Coder Social home page Coder Social logo

codeobscure's People

Contributors

kaich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeobscure's Issues

object c. unity

unity5.3 生成的xcode 工程,oc 代码进行混淆,有问题,麻烦看一下

请教,系统升级到10.13.4 (17E199)后报错

/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

'`

使用 -l pod路径 没能过滤掉pod的第三方库的方法名

使用 -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 `

'
shixiaodadeMac-mini:Shenma_3.6.0 shixiaoda$

小问题

使用时如果主目录为中文,则无法使用

使用混淆替换命令提示undefined local variable or method

使用的命令是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,但就是混淆失败.还请多多指教

执行codeobscure -o xcode工程路径 命令 就中断了

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;

需要安装环境嘛

line 2: require: command not found
line 4: Codeobscure.obscure: command not found

codeobscure -o 没反应

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的空文件

通过class-dump查看没有效果

我是根据教程来的,codeObfuscation.h也生成了。但是archive里的.app导出后的.h没有效果,求问是什么原因?
image
image

项目被锁了

“xxx" is locked for editing and you may not be able to save your changes. Do you want to unlock it?
点unlock无法解决 会一直弹出

动态属性混淆错误

在碰到以下这种时,是可以用.语法来进行正常的属性操作的,但是混淆了会不匹配,报错。

  • (CGFloat)lastKeyboardHeight
  • (void)setLastKeyboardHeight:(CGFloat)argv

按文档操作之后,生成的codeObfuscation文件为空,并且在系统根目录下生成,不在当前工程目录下

➜ 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) ✗

=============
以上操作是否有误?

执行codeobscure命令过程中,最后打印如下信息就结束了,没有生成混淆文件,请问怎么处理?

/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

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.