系统基于实体机
启动引导界面按 e 进入编辑模式,有关内核的一栏后面添加:
init=/bin/bash
启动系统后执行:
mount -no remount,rw /
passwd root
执行同步和挂载重挂载:
sync
mount -no remount ,ro /
- reboot
基于Windows 下的 WSL
CMD 下运行:
kali config --default-user root
bash
passwd root
if reset your default user back to your normal Linux user account:
kali config --default-user ‘username’