使用Hiren's BootCD.15.2.iso工具破解Windows 2008R2 操作系统管理员账号的密码,方法如下:
1.创建VM。
下载Hiren's BootCD.15.2.iso工具:
下载链接地址为:
http://www.hirensbootcd.org/download/ 2.引用环境变量,查询VM所在计算节点和实例名称。
#nova list --all-t|grep $VM_NAME;
#nova show $VM_UUID |egrep 'host|instance'
3.连接到云主机所在的计算节点:
#virsh list --all
可以查看到计算节点上VM的情况。
在Openstack Dashboard上操作云主机关闭电源。
4.传输Hiren's BootCD.15.2.iso文件到计算节点的/opt/目录并且重命名为BootCD.iso。
5.执行#virsh dumpxml instance-000000xx查看VM的配置文件,并且复制关于CDROM的配置部分。
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
<source file='/var/lib/nova/instances/9b675f69-5234-4424-a32b-75b10e37eb80/disk.config'/>
<target dev='hdd' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='1'/>
</disk>
6.执行#virsh dumpxml instance-000000xx查看VM的配置文件,并且复制关于CDROM的启动顺序配置部分。
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type>
<boot dev='cdrom'/>
<boot dev='fd'/>
<boot dev='hd'/>
<boot dev='network'/>
<smbios mode='sysinfo'/>
</os>
7.修改VM的配置:
#virsh edit instance-00000046:
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/opt/BootCD.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
</disk>
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type>
<boot dev='cdrom'/>
<boot dev='fd'/>
<boot dev='hd'/>
<boot dev='network'/>
<smbios mode='sysinfo'/>
</os>
8.保存配置并且在Openstack Dashboard页面上开启虚拟机,进入PE界面,选择 Linux based rescue environment,选择Start。
9.进入Linux 图形界面,选择FileManager,之后按照传统物理机系统破解Windows 2008R2管理员账号密码的步骤进行。
10.找到磁盘vda2的Windows\System32的文件目录,先备份Utilman.exe为Utilman_bak.exe,然后复制cmd.exe为Utilman.exe。
11.虚拟机关机。
12.执行virsh edit instance-000000xx,进行恢复VM配置文件,并且在OpenStack Dashboard页面上开启虚拟机。
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
<source file='/var/lib/nova/instances/9b675f69-5234-4424-a32b-75b10e37eb80/disk.config'/>
<target dev='hdd' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='1'/>
</disk>
13.点击“轻松访问”,在弹出的Windows Server 2008R2的命令行窗口中执行:
net user administrator abcdef123...
14.输入用户名和密码进行访问。
15.进入Windows Server 2008R2系统后,依次进入C:\Windows\System32\文件夹下,删除Utilman.exe文件,并且把Utilman_bak.exe文件重命名为Utilman.exe。
16.重启VM,点击“轻松访问”进行验证,当按“轻松访问”后,打不开cmd.exe的窗口说明替换完成,使用VM最后修改后的密码abcdef123...进行登录系统。