通过usb线ssh连接iPhone
2016-01-08 13:51
260 查看
1. 下载usbmuxd源码包,解压
http://marcansoft.com/blog/iphonelinux/usbmuxd/ http://cgit.sukimashita.com/usbmuxd.git/
2. cd python-client目录, chmod +x tcprelay.py
3. 运行 ./tcprelay.py -t 22:2222
4. 再起一个终端(commad+t), ssh root@localhost -p 2222就可以登录越狱的iPhone了
默认密码是alpine
./tcprelay.py –help可以看到其它选项。
顺便记录一个自动同步游戏脚本文件到设备上的shell脚本。
http://marcansoft.com/blog/iphonelinux/usbmuxd/ http://cgit.sukimashita.com/usbmuxd.git/
2. cd python-client目录, chmod +x tcprelay.py
3. 运行 ./tcprelay.py -t 22:2222
4. 再起一个终端(commad+t), ssh root@localhost -p 2222就可以登录越狱的iPhone了
默认密码是alpine
./tcprelay.py –help可以看到其它选项。
顺便记录一个自动同步游戏脚本文件到设备上的shell脚本。
#!/usr/bin/expect -f set port "2222" set user "root" set host "localhost" set password "pass1212" set timeout -1 spawn scp -P 2222 ./CgScene.lua root@localhost:/var/mobile/Containers/Bundle/Application/0B3AE856-3B12-4C6F-9961-56AA2F53EBA4/testGame.app/src/Login/CgScene.luac expect "*assword:*" send "$password\r" expect eof # 执行命令 spawn ssh -p 2222 root@localhost "killall pokemoniOS" expect "*assword:*" send "$password\r" expect eof
相关文章推荐
- 《实例化需求》三
- 【转载】一淘技术专家王晓哲:Nginx_lua的测试及选择
- java 读写
- javascript表格内容的展开和折叠
- core data使用教程
- 修改jar包中的配置文件
- Linux修改系统时间
- Html5添加超级简洁实用的返回顶部插件教程
- Android Fragment 真正的完全解析(上)
- 在plist文件中设置app图标的隐藏
- mysql的二进制日志是什么,有什么作用
- 序列化和反序列化
- 免费钢板管理软件现在开放测试啦!
- 在Android中使用MVP
- gnirtsbuScimordnilaPtsegnoL.5
- opencv2使用形态学滤波对图像进行边缘及角点检測
- 你好!世界!
- javadoc注释规范
- java.lang.OutOfMemoryError
- IP地址地区信息查询API接口调用方法