Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SSH in Jailbreaked iOS
06-02-2021, 09:32 PM
Post: #1
SSH in Jailbreaked iOS
That's about ways getting a SSH connection to apple phone.
Well apple don't wants that so natively there is SSH Daemon running on the target. So that's how we get sshd up and running
0. The jailbreaked
I use checkra1n
Jailbreak for iPhone 5s through iPhone X, iOS 12.0 and up
https://checkra.in/
Note on my iphone5s I needed to unplug and plug the usb cable at:
Right before trigger (this is the real bug setup)
to finally get checkm8 running.
1. in Cydia install "OpenSSH".
Now the sshd part is done Smile

2. Connect from the PC via the command:
SSH root@192.168.0.123
Password is alpine
... and of course the also adjust the ip to to one of your phone.
Also your phone and the PC should be in the same WLAN.

Elaborations:
Connect via USB (instead if WLAN).
Install usbmuxd on the PC
apt install usbmuxd (or via pacman -sy usbmuxd)
Now run command:
iproxy 2222 22
keep it running and open a new Terminal.
Plug in the USB cable.
Now connect to the phone via
SSH root@127.0.0.1 -p 2222

That's it. Now the connection is hopefully not that laggy anymore.

How to remove the root password
Well before we target the user root we should
do and test the user mobile
edit
/etc/master.passwd
change
mobile:/smx7MYTQIi2M:501:501:Mobile User:/var/mobile:/bin/sh
to
mobile::501:501::0:0:Mobile User:/var/mobile:/bin/sh

and also edit the file
/etc/ssh/sshd_config
PermitEmptyPasswords yes
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | Homepage | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication