thoes、ldid、dpkg

2018-04-25  本文已影响57人  iChuck

thoes

越狱开发工具包

xcode工具集的路径需要设置正确
查看命令: xcode-select —print-path

设置命令: xcode-select —switch /Applications/Xcode-beta.app/Contents/Developer

通过github安装theos
https://github.com/theos/theos/wiki/Installation

修改所有者
sudo chown -R $(id -u):$(id -g) theos

theos维基百科:
http://iphonedevwiki.net/index.php/Theos/Setup#For_Mac_OS_X
http://iphonedevwiki.net/index.php/Theos

环境变量
export THEOS=/opt/theos

可以写入~/.bash_profile
source ~/.bash_profile

echo $THEOS

ldid

usage: ldid -S[entitlements.xml] <binary>
   ldid -e MobileSafari
   ldid -S cat
   ldid -Stfp.xml gdb
# 查看codesign load command 
otool -l WeChat | grep -A 5 SIGNATURE

# 查看签名信息
➜  tmp codesign -dvvv WeChat
Executable=/private/tmp/WeChat
Identifier=com.tencent.xin
Format=Mach-O universal (armv7 arm64)
CodeDirectory v=20200 size=448783 flags=0x0(none) hashes=14017+5 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha1=6e2f8a93dbe63c17ea3b3a3dc032826b9eddf2b7
CandidateCDHash sha256=d6f1afe23b598a76301711a4a62a5505a749a12a
Hash choices=sha1,sha256
CDHash=d6f1afe23b598a76301711a4a62a5505a749a12a
Signature size=3925
Authority=Apple iPhone OS Application Signing
Authority=Apple iPhone Certification Authority
Authority=Apple Root CA
Info.plist=not bound
TeamIdentifier=88L2Q4487U
Sealed Resources=none
Internal requirements count=1 size=96

# 查看entitlement内容 
codesign -d --entitlements - WeChat
ldid -e WeChat

# 修改entitlement内容 
ldid -Sentitlement.xml  WeChat

dpkg 工具

brew install --from-bottle https://raw.githubusercontent.com/Homebrew/homebrew-core/7a4dabfc1a2acd9f01a1670fde4f0094c4fb6ffa/Formula/dpkg.rb

brew pin dpkg
dpkg -i/-r  deb包安装/卸载
dpkg -s com.iosre.myiosreproject 查看安装包信息

scp

usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program] source ... target
           

# 当出现scp not a regular file
scp -r root@ip /远程目录 /本地目录
上一篇 下一篇

猜你喜欢

热点阅读