ios 使用vb.net将包含文件的文件夹导入越狱的iPhone

bbuxkriu  于 11个月前  发布在  iOS
关注(0)|答案(2)|浏览(100)

我正在用VB.NET*(Visual Studio 2013)* 编写一个应用程序,作为最后一步,它有两个复制文件夹(里面有几个文件)到iPhone的某个目录中。
iPhone是
越狱**,所以它可以访问每一种目录,它也应该通过USB连接到PC。这甚至可能吗?

yuvru6vn

yuvru6vn1#

我可以告诉你如何在编程中做到这一点:
首先,您需要通过USB隧道SSH。您可以通过从this zip.中执行itunnel_mux.exe(您必须首先提取所有内容)来执行此操作。如下所示:

itunnel_mux.exe --tunnel -iport 22 -lport 2222

字符串
然后,您可以使用SCP(我推荐this library)从email protected(https://stackoverflow.com/cdn-cgi/l/email-protection):2222(密码alpine)复制文件。
这是一些示例伪代码:

'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


这个解决方案一点也不优雅。它还需要OpenSSH(我认为)。你最好使用libimobiledevice。

92vpleto

92vpleto2#

如果目录可以从Windows访问,则是。

相关问题