'Extract the exe and dll file from that zip
extract_files()
'I'm making a new variable containing the port number.
Dim port As string = "2222"
'I made up this function. Lets pretend it executes Batch code in the current directory (like a bat file)
execbat("itunnel_mux.exe --tunnel -iport 22 -lport " + port)
Using scp As New Rebex.Net.Scp
' connect to a server
scp.Connect(hostname)
' authenticate (change alpine if you changed your root passwd)
scp.Login("root", "alpine")
' Here, you can use "scp" to upload and download files
scp.PutFile("C:\Users\KevinKZ\Desktop\fileToUpload.jpg", "/var/mobile/Documents/fileToUpload.jpg")
scp.GetFile("/var/mobile/Library/SMS/sms.db", "C:\Users\KevinKZ\Desktop\SMS_Backups\2-1-14.db")
scp.Disconnect()
End Using
2条答案
按热度按时间yuvru6vn1#
我可以告诉你如何在编程中做到这一点:
首先,您需要通过USB隧道SSH。您可以通过从this zip.中执行itunnel_mux.exe(您必须首先提取所有内容)来执行此操作。如下所示:
字符串
然后,您可以使用SCP(我推荐this library)从email protected(https://stackoverflow.com/cdn-cgi/l/email-protection):2222(密码alpine)复制文件。
这是一些示例伪代码:
型
这个解决方案一点也不优雅。它还需要OpenSSH(我认为)。你最好使用libimobiledevice。
92vpleto2#
如果目录可以从Windows访问,则是。