223  
查询码:00000106
记一次破解某系统,通过重新打包iso文件解决
作者: 文艺范儿 于 2023年04月14日 发布在分类 / Linux / 系统相关 下,并于 2023年04月14日 编辑

1、系统grup加密了的

无法进入grup进行修改密码

2、系统分区进行了加密

无法挂载到别的系统,进行修改

3、iso系统文件进行了md5验证,修改iso镜像会导致无法安装。

无法进入救援模式进行修改密码


yum install createrepo mkisofs isomd5sum squashfs-tools

mkdir /root/PanIOS

mount test-dong.iso  /media/

cp -r /media/ /root/PanIOS/

chmod +w /root/PanISO/isolinux/isolinux.cfg

vim isolinux/anaconda-ks.cfg

中的rootpw --iscrypted 秘钥和算法为自己所知道的

auth --enableshadow --passalgo=sha512

或者修改为明文密码

rootpw "password"


#重要查看 isolinux/isolinux.cfg中的

 append initrd=initrd.img inst.stage2=hd:LABEL=testqqqq quiet installation 

一行的LABEL=testqqqq

这里后面需要用到

重新打包

mkisofs -o ../Pan-7.3.iso -input-charset utf-8 -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -V "testqqqq" -T -joliet-long  /root/PanIOS/

#需要注意-V "testqqqq"

implantisomd5 Pan-7.3.iso


用新生成的iso系统镜像重新安装系统即可



 推荐知识

 历史版本

修改日期 修改人 备注
2023-04-14 21:45:47[当前版本] 文艺范儿 格式调整
2023-04-14 21:42:17 文艺范儿 格式调整
2023-04-14 21:30:49 文艺范儿 格式调整
2023-04-14 21:23:43 文艺范儿 格式调整

文艺知识分享平台 -V 4.9.5 -wcp
京公网安备100012199188号 京ICP备2021030911号