zoukankan      html  css  js  c++  java
  • 通过USB连接越狱iPhone,SSH进入设备

    通过USB连接越狱iPhone,SSH进入设备

    通过USB连接越狱iPhone,SSH进入设备

    第一步:下载需要的工具

    usbmuxd软件,以下是可以使用的下载地址(2015-09-23)

    第二步:进入指定目录

    下载完成,进入python-client目录.

    第三步:开始端口转发

     
     
    zx:python-client zx$ tcprelay.py -t 22:2222

    将本地的2222端口转发到远端22端口

    第四步:SSH进入设备

     
    x
    zx:bin zx$ ssh  -p 2222 root@localhost
    zxde-iPhone:~ root# ls
    Library/  Media/  com.z2xy.zxtext_0.0.1-2_iphoneos-arm.deb
    zxde-iPhone:~ root# rm com.z2xy.zxtext_0.0.1-2_iphoneos-arm.deb 
    zxde-iPhone:~ root# ls
    Library/  Media/

    更多功能

    在附带的readme中有更的使用方法,

    • you can forward any ports(转发到任意端口)

    • where the iPhone is the server, and the PC the client(PC作为客户端,iPhone作为服务端)

    • further,you can also add other ports,可以添加其他的转发端口,

      例如such as ./tcprelay.py -t 22:2222 5900 &

    参考:

    Using python

    Tested on OS X and Windows.

    You will need to have Python installed on your system.

    • Get usbmuxd source package and unpack. (Or if the linked usbmuxd package doesn't work, try libusbmuxd.)
    • Go into folder python-client
    • chmod +x tcprelay.py
    • Run ./tcprelay.py -t 22:2222

    Now you can log into your device via ssh mobile@localhost -p 2222

    The -t switch tells tcprelay to run threaded and allow more than one ssh over the same port.

    See ./tcprelay.py --help for further options.

    相关资料

    undefined
  • 相关阅读:
    npm中package-lock.json的作用:npm install安装时使用
    git回退到某个commit
    如何把自己的代码发布到npmjs(npm publish)
    阿里蚂蚁的前端ant-design
    axure产品原型图,元件库导入方法
    react with JSX for {if…else…}
    JavaScript的filter用法
    ES6中的模板字符串---反引号``
    react数组key的唯一性
    Swagger简介,轻松构造restful api的文档
  • 原文地址:https://www.cnblogs.com/xilifeng/p/4833948.html
Copyright © 2011-2022 走看看