esxi主機密碼破解

來源:互聯網
上載者:User

標籤:密碼破解   esxi   vcenter   vshpere   


最近換了工作,在別人工作交接中,發現很多esxi主機都沒有密碼,所有只能破解。

如果非要恢複密碼,操作如下:

  • 用linux啟動光碟片,如rhel5的安裝光碟片或knoppix啟動

  • 建立/mnt/sda5目錄,mkdir /mnt/sda5

  • 掛載命令:

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

把類似root:x:143434343:12232:9:99999:7

這一行中的143434343給清除

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" />

/tmp/etc/shadow內容類別似如下:

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/30/DB/wKiom1OpboHQWOGXAACllT3OdrU412.jpg" title="1.jpg" alt="wKiom1OpboHQWOGXAACllT3OdrU412.jpg" />

  • 然後重啟:

reboot

  • 進行vshpere密碼顯示如下:

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/30/DB/wKioL1OpbmuzQCtvAAGANol_2qc720.jpg" title="1.jpg" alt="wKioL1OpbmuzQCtvAAGANol_2qc720.jpg" />

本文出自 “都市布衣” 部落格,請務必保留此出處http://sunday208.blog.51cto.com/377871/1430486

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.