导入与文件内成为越狱的iPhone使用vb.net

导入与文件内成为越狱的iPhone使用vb.net

问题描述:

我写在VB.NET(Visual Studio的2013年)并作为最终步骤中使用的应用程序,它有两个复制的文件夹的文件夹(与几个文件里面)到iPhone的某个目录。导入与文件内成为越狱的iPhone使用vb.net

iPhone是jailbroken所以有可能访问各种目录,它也应该通过USB连接到PC。这甚至有可能吗?

预先感谢您!

我吸在Visual Basic中,但我可以告诉你,你会怎么做这编程:

首先,你需要SSH隧道通过USB。你可以通过编程方式从this zip.执行itunnel_mux.exe(你必须先提取了一切。)使用方法如下:

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

然后,你可以使用SCP(我建议this library)复制文件来自[email protected]:2222(密码阿尔派)。

这是一些例子伪代码(记住,我不知道VB):

'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可能会更好。如果你仍然需要帮助,请告诉我。您可以通过电子邮件发送给我[email protected]

+0

我认为这是本可以提供的最佳解决方案。是的,大多数越狱的iPhone都安装了OpenSSH(否则程序可能会通知他们首先安装)。我知道libimobiledevice,但我无法开始使用它(从VB6迁移到最新版本的VB.net时遇到的问题) – KevinKZ

如果可以从Windows访问目录,那么是的。