Hacking your way back into Windows

Hacking your way back into Windows

Day 10-13: 100 days of Security Engineering

This article is more like an emergency guide I made for both the readers and myself. The intended audience are those people who wanna install a copy of Windows 10/11 on a fresh SSD/HDD or switch from Linux to Windows in a Dual boot/Clean install configuration.

This wasn’t Hacking, until it was…

Why “Hacking”? That’s coz Microsoft loves to make things complicated! Traditional ISO flashes like Balena etcher, Popsicle nowdays won’t support making a windows bootable USB. Hence you’re left with usually two most efficient methods to create a bootable USB:

💡
An ISO, also called the “image file” is a file with an extension of “.iso” that contains the installation wizard to install the specific OS into your system
  1. Install Ventoy, flash it into the USB, drag and drop your windows ISO into the USB drive… OR

  2. Create a Windows VM (which is thankfully easy to setup), install Rufus, give the VM access to the USB drive, then flash the ISO into the drive directly through Rufus.

Now we got our USB drive, what next? Drivers! Why? Because Windows won’t detect your drive without them, and without detection, you won’t be able to install your OS! I’ll target two kinds of drivers: one from Intel, and one from AMD.

Drivers driving us insane

For either of these, install the respective .exe file, on a Windows VM. This will create the driver files and save them in your system, organize them inside a folder and store them in a flash drive.

💡
a VM or a Virtual Machine is an OS that can run over your main OS. These can be managed through hypervisors like VirtualBox and VMWare Pro (Try Googling).

Double USB ninja technique!!!

Now you gotta go ninja mode. Plug the first USB drive made bootable with Windows 10, set the boot priority to make sure you boot into the USB drive. After the installation wizard starts, select “Custom Install”, then see if any drives are being detected, if not, click “Load drivers”. You might come across this screen…

Troubleshooting windows installation error “No device drivers were found.”  | by Syed Hasan | Medium

Now plug in your second flash drive containing the drivers, click “browse”, and then recurse through the files of that flash drive until you reach the “VMD” folder inside the driver files (that’s for Intel’s case at least). Select it, load and you’ll be able to see the drives now! Continue with your installation, and you should smoothly be able to setup Windows 10 from scratch now. (Also, please update your system clock and install Windows Updates to make sure you get the required firmware, security patches and other drivers)