Recently I changed my work. During work handover, I found that many esxi hosts do not have a password and all of them can only be cracked.
To restore the password, perform the following operations:
Use Linux to start a CD, such as an rhel5 installation CD or knoppix.
Create the/mnt/sda5 directory, mkdir/mnt/sda5
Mount command:
Mount-tvfat Mount/dev/sda5/mnt/sda5
CP/mnt/sda5/stage. tgz/tmp/
CD/tmp
Tar xvfz stage. tgz
Tar xvfz local. tgz
VI/tmp/etc/shadow
For example, root: X: 143434343: 12232: 9: 99999: 7.
143434343 in this row is cleared
Rm-F stage. tgz local. tgz
Tar czvf local. tgz etc
Tar czvf stage. tgz local. tgz
CP local. tgz/mnt/sda5/
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/30/DB/wKioL1OpbjLyDFOHAAGZqtNyt_M962.jpg "Title =" 1.jpg" alt = "wkiol1opbjlydfohaagzqtnyt_m962.jpg"/>
The content of/tmp/etc/shadow is similar to the following:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/30/DB/wKiom1OpboHQWOGXAACllT3OdrU412.jpg "Title =" 1.jpg" alt = "wkiom1opbohqwogxaacllt3odru412.jpg"/>
Reboot
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/30/DB/wKioL1OpbmuzQCtvAAGANol_2qc720.jpg "Title =" 1.jpg" alt = "wkiol1opbmuzqctvaaganol_2qc720.jpg"/>
This article from the "City cloth" blog, please be sure to keep this source http://sunday208.blog.51cto.com/377871/1430486