無標(biāo)題文章

ios逆向之路之一

class-dump下載地址:http://stevenygard.com/projects/class-dump/

升級了OSX 10.11在配置class-dump的時候,會發(fā)現(xiàn)書上推薦的class-dump存放目錄/usr/bin,class-dump存放不進(jìn)去,并且bin該文件夾的相關(guān)的權(quán)限也修改不了。

Paste_Image.png

參考網(wǎng)址:http://blog.csdn.net/majiakun1/article/details/52064435

根據(jù)上面網(wǎng)址所說整理一下:

跟著下面的步驟走

1、打開Terminal,輸入mkdir ~/bin,在當(dāng)前用戶根目錄下創(chuàng)建一個bin目錄;

2、把class-dump給拷貝到這個目錄里,并賦予其可執(zhí)行權(quán)限:

sudo chmod 777 /usr/local/bin/class-dump

再執(zhí)行

mv class-dump ~/bin; chmod +x ~/bin/class-dump;

3、打開~/.bash_profile文件:vi ~/.bash_profile,在文件最上方加一行:

export PATH=$HOME/bin/:$PATH,

然后保存并退出(在英文輸入法中依次按下esc和:(shift + ;,即冒號),然后輸入wq,回車即可);

4、在Terminal中執(zhí)行source ~/.bash_profile;

5、上面的操作把~/bin路徑給加入了環(huán)境變量,我們測試一下好不好用;

測試的結(jié)果:

localhost:bin zy$ class-dump

class-dump 3.5 (64 bit)

Usage: class-dump [options]

where options are:

-a? ? ? ? ? ? show instance variable offsets

-A? ? ? ? ? ? show implementation addresses

--arch ? choose a specific architecture from a universal binary (ppc, ppc64, i386, x86_64, armv6, armv7, armv7s, arm64)

-C ? ? only display classes matching regular expression

-f ? ? ? find string in method name

-H? ? ? ? ? ? generate header files in current directory, or directory specified with -o

-I? ? ? ? ? ? sort classes, categories, and protocols by inheritance (overrides -s)

-o ? ? ? output directory used for -H

-r? ? ? ? ? ? recursively expand frameworks and fixed VM shared libraries

-s? ? ? ? ? ? sort classes and categories by name

-S? ? ? ? ? ? sort methods by name

-t? ? ? ? ? ? suppress header in output, for testing

--list-arches? list the arches in the file, then exit

--sdk-ios? ? ? specify iOS SDK version (will look in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk

--sdk-mac? ? ? specify Mac OS X version (will look in /Developer/SDKs/MacOSX.sdk

--sdk-root? ? specify the full SDK root path (or use --sdk-ios/--sdk-mac for a shortcut)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • # Cmder[![Join the chat at https://gitter.im/cmderdev/cmd...
    周方朵閱讀 402評論 0 0
  • 轉(zhuǎn)至元數(shù)據(jù)結(jié)尾創(chuàng)建: 董瀟偉,最新修改于: 十二月 23, 2016 轉(zhuǎn)至元數(shù)據(jù)起始第一章:isa和Class一....
    40c0490e5268閱讀 2,068評論 0 9
  • 人物:談判專家(1)武警(2)狙擊手(1)綁匪(1)受害者(1)警察上校(1) [樓頂上] “別過來,再過來我們就...
    FASHION_e018閱讀 213評論 0 0
  • 兒子問:媽媽,什么是采風(fēng)? 我說:采風(fēng)就是從外面將風(fēng)采回來,種在院子里,然后長出一棵樹。摘下樹葉吹一吹,放在耳邊就...
    藍(lán)柿閱讀 1,511評論 7 14
  • 深夜收到閨蜜的微信,炸了十多個表情過來,最后發(fā)“出來宵夜”四個字。 我回了好。 我們是在健身房認(rèn)識的,她很拼,基本...
    你的心只是器官閱讀 1,160評論 24 16

友情鏈接更多精彩內(nèi)容