通過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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM