Access shell on iPhone2G JB without screen,buttons,ssh
I have a broken iPhone 2G... broken in the sense that it lacks screen, touch sensor, and power button. I do have usb and all buttons except power working.
The board is working, it has iOS 3.1.2 jailbroken, and I can sync to it with iTunes and/or access the filesystem (even the root one) with ifuse+usbmuxd on linux.
It does not have ssh installed, and my target is to get shell access. My plan:
1) put openssh and deps on the phone via ifuse
2) let it start sshd someway
3) ssh on usb tunnel and find how to enable WiFi
4) happily use it via standard tcp/ip over wifi
Now in detail:
- is it possible to use x86 dpkg and friends to install stuff on the iPhone fs mounted via ifuse? how?
- if not, it should be enough for a starter to unpack needed debs and copy files on the phone's root directory. do you think that could work?
- what are openssh dependencies?
- how the hell do I let it start openssh? or how do I reboot it in order for it to autostart? (I'd prefer not to cut battery cables right now, and the only idea I have is to wait for a total discharge... I guess it'll take some days... then connect to usb to let it power up again)
- if I cannot establish tcp connection and want to debug, are there logs where LaunchDaemon says if it tried to start openssh and what happened? does openssh itself log somewhere?
I have access to linux and osx systems easily, and windows system a little less easily.
thanks to all.