Skip to content

Instantly share code, notes, and snippets.

@lyqflnh
Last active May 14, 2024 12:48
Show Gist options
  • Save lyqflnh/8b8b0875932d3208d1993572d4ec44f2 to your computer and use it in GitHub Desktop.
Save lyqflnh/8b8b0875932d3208d1993572d4ec44f2 to your computer and use it in GitHub Desktop.
ways to change password of the root or mobile account of ur jailbreak ios device
#if u have the root password which default is "alpine"
1.login as root, using command "ssh root@ip address"
2.type ur password: alpine
3.type command "passwd" to change ur root password
4.when it is done, type command "passwd mobile" to change the mobile passwd
#if u forget ur root passwd
1.open the file named "master.password" at /private/etc on ur jailbreak ios device
2.find the string like this:
root:xxxxxxxxxxxxx:0:0::0:0:System Administrator:/var/root:/bin/sh
mobile:xxxxxxxxxxxxx:501:501::0:0:Mobile User:/var/mobile:/bin/sh
3.change the string "xxxxxxxxxxxxx" to "/smx7MYTQIi2M" and ur root or mobile password is reset to "alpine"
#if u want to login ur jailbreak ios device through ssh without password, follow following steps:
1.run command "ssh-keygen" on ur mac, press "enter" three times, and u will get 2 documents at "ur user profile/.ssh/"
2.run command "ssh-keygen" on ur jailbreak ios device, and u will get 2 document at "var/root/.ssh/"
3.copy id_ras.pub from ur mac to ios device:"var/root/.ssh/"
4.rename "id_ras.pub" to "authorized_keys"
5.now u can login ur ios without password: ssh root@192.168.X.X
@zopetr
Copy link

zopetr commented Jan 28, 2024

4B157557-CC72-4DDA-9588-1EAE975E198B
I cand acces the file any fix?

@murthydaarapureddy
Copy link

even after u change the master.passwd and Permitrootlogin to yes its not working?

@murthydaarapureddy
Copy link

So is there any way to reset it to its default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment