24. juni 2020

Hack ESXi root password

https://www.altaro.com/vmware/reset-esxi-root-password/

Boot på GParted Live, start terminal session
https://gparted.org/download.php

Normalt sda5 med mindre at der er installeret på f.eks. USB

sudo su
mkdir /boot /temp
mount /dev/sda5 /boot
cd /boot
cp state.tgz /temp
cd /temp
tar -xf state.tgz
tar -xf local.tgz
rm *.tgz
cd etc

Brug Nano til at editere shadow 
Delete the encrypted root password to reset it to null i.e. the root account will not have a set password
gå til root og slet alt mellem de to første colon så det ser sådan ud [root::12345:0:12345:7:::]

cd ..
tar -cf local.tgz etc/
tar -cf state.tgz local.tgz
mv state.tgz /boot
umount /boot

reboot

Ingen kommentarer:

Send en kommentar

Bemærk! Kun medlemmer af denne blog kan sende kommentarer.