iOS逆向 - 安装 OpenSSH 并修改密码
确保你的 Mac 和 iPhone 处在同一个 WIFI 网络下。
安装 OpenSSH
在 Cydia app 中搜索 OpenSSH
并安装
修改密码
ssh 到你的 iPhone,修改 root/mobile 两个权限下的密码。默认密码是 alpine
,使用 passwd
命令修改密码。
修改 root 权限密码
likid$ ssh root@192.168.18.167 // use root role to login
The authenticity of host '192.168.18.167 (192.168.18.167)' can't be established.
RSA key fingerprint is SHA256:xxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.18.167' (RSA) to the list of known hosts.
root@192.168.18.167's password: // enter original password alpine
MyIPhone:~ root# passwd // change password command
Changing password for root.
New password: // enter your new password
Retype new password: // again
MyIPhone:~ root#exit // logout
logout
Connection to 192.168.18.167 closed.
修改 mobile 权限密码
Likid$ ssh mobile@192.168.18.167 //use mobile role to login
mobile@192.168.18.167's password: // enter original password alpine
MyIPhone:~ mobile$ passwd // change password command
Changing password for mobile.
Old password: // enter old password alpine
New password: // enter your new password
Retype new password: // again
MyIPhone:~ mobile$ exit // logout
logout
Connection to 192.168.18.167 closed.
ref: 《iOS应用逆向工程(第2版)》
iOSRe - Install OpenSSH and Change Password
**Be sure your Mac and iPhone is connected to same WIFI. **
Install OpenSSH in Cydia.
Search OpenSSH
in Cydia app, and install
change password
ssh to your iPhone, change root/mobile password. Default password is alpine
, use passwd
command to change password.
change root role password
likid$ ssh root@192.168.18.167 // use root role to login
The authenticity of host '192.168.18.167 (192.168.18.167)' can't be established.
RSA key fingerprint is SHA256:xxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.18.167' (RSA) to the list of known hosts.
root@192.168.18.167's password: // enter original password alpine
MyIPhone:~ root# passwd // change password command
Changing password for root.
New password: // enter your new password
Retype new password: // again
MyIPhone:~ root#exit // logout
logout
Connection to 192.168.18.167 closed.
change mobile role password
Likid$ ssh mobile@192.168.18.167 //use mobile role to login
mobile@192.168.18.167's password: // enter original password alpine
MyIPhone:~ mobile$ passwd // change password command
Changing password for mobile.
Old password: // enter old password alpine
New password: // enter your new password
Retype new password: // again
MyIPhone:~ mobile$ exit // logout
logout
Connection to 192.168.18.167 closed.