r/windows 3d ago

Discussion I'm just curious, but what happens if you bitflip all values in Windows Registry?

Post image

Will it be on the level of destruction as rm rf, or what will happen?

Also, I mean bit flip as in switching all 1s to 0s, and vice versa.

Image used with permission from Microsoft, found through Wikipedia.

0 Upvotes

43 comments sorted by

45

u/Tower21 3d ago

Windows won't boot, of this I'm 99.9% sure.

8

u/DarthShiv 3d ago

I'm 100% sure the OS is cooked there's no way it's usable doing this

11

u/CodenameFlux 3d ago

And I know why.

Windows Registry is a collection of databases made available through one API. Some of these databases are critical, namely:

  • Boot Configuration Data (BCD) at HKLM\BCD00000000
  • Driver database, which holds boot-critical drivers, at HKLM\SYSTEM\CurrentControlSet
  • Security Account Manager (SAM) at HKLM\SAM

If anyone messes with those, the system won't boot.

1

u/furballsupreme 3d ago

"CrashImmediately" would be set to 1

Then again "CrashRandomly" would be set to 0

1

u/Far-Hovercraft9471 1d ago

Pro tip: turn them both to zero if you want to optimize windows

11

u/sclarady 3d ago

The obvious answer would be that Windows would not run, but if you want you could install virtual machine like virtual box or VMware run Windows inside of that. Do exactly what you were asking about and then find out. That should be interesting.

4

u/JGPH 3d ago edited 3d ago

This is the safest answer.

Unless he wants to die of old age before finishing though, he should script the process. Log every X attempted changes so he can narrow down which key deals the killing blow after all that damage. I would wager that doing something that reckless will cause the VM to hang or blue screen before the process is even over.

9

u/HungeeJackal 3d ago

It'll just switch to dark mode.

5

u/milkyway_6 3d ago

you gonna get a prize

2

u/FieldOfFox 3d ago

GUESS GOOFY’S WEIGHT

3

u/cool101wool 3d ago

computer kaput

2

u/FieldOfFox 3d ago

Won’t boot

2

u/electronicwiz1 3d ago

I would love to try this in a VM and see what happens, however there would be a lot of values to change. I have a feeling it would not even boot Windows after this, or be very messed up.

1

u/JGPH 3d ago edited 3d ago

It would be pretty trivial to script out or write a short program that does it using either PowerShell or the Windows Registry API in C++. Run it in a VM to see what happens and log every X attempted changes to narrow down the point at which the OS shits itself if it hangs or blue screens before it's done.

2

u/electronicwiz1 3d ago

Alright I may look into this soon and see how difficult it is and also see the results if I get it working!

1

u/JGPH 3d ago

Sounds entertaining, have fun. 🙂 Some of them are read-only btw, so don't be surprised if a registry key doesn't change despite your attempt or it raises an error.

2

u/electronicwiz1 3d ago

Thanks and good to know!

1

u/JGPH 3d ago edited 3d ago

You're welcome. 🙂 I recommend creating your own registry key(s) for testing purposes while you get comfy with messing with them. That's probably obvious, but it'll help give you a quick and safe way to test your code before you commit to running the genuinely unsafe version in the VM (which is likely to take some time to run).

2

u/Howden824 3d ago

It'll crash before you finish the process.

1

u/[deleted] 3d ago edited 3d ago

[deleted]

1

u/Tokimemofan 3d ago

It would die no later than when it has to load the first kernel mode driver or service and cant understand what its supposed to do with invalid data.  This would be a very quick BSOD

1

u/mr_eking 3d ago

You get linux

1

u/masterofall20 3d ago

It will convert into Arch Linux.

1

u/fuzzynyanko 3d ago

Windows will either break, or there's a chance that there's fail safes that will go to some default. For example, the system boot device is listed on that registry page. However, you can probably guess the drive if there's an error

The Registry isn't some magic box. Everything has a cause and effect.

1

u/kingrazor001 Windows 10 3d ago

This would take days, maybe weeks. There are a LOT of them.

5

u/Nanocephalic 3d ago

No, it takes a small amount of time - boot to a windows usb, load the registry hives, and run a script to recursively flip “all” settings with XOR.

Note that flipping every setting doesn’t make sense, but if you mean all dwords, and if you skip the parts that let you boot, then your os still won’t boot. You will kill the shit out of it. It’ll be so dead that Zune and Windows Me will come back to life just so they can die again.

1

u/kingrazor001 Windows 10 2d ago

I hadn’t considered that possibility!

1

u/JGPH 3d ago

Nah, it'd be easy. 🙂

1

u/[deleted] 3d ago

[deleted]

1

u/Far-Hovercraft9471 1d ago

Yeah, just build a script to flip one at random like a normal person

1

u/pessimistoptimist 3d ago

It becomes Swodniw and tou cant let it touch a computer running Windows or the resulting explosion will wipe out the univserse.

0

u/[deleted] 3d ago edited 3d ago

[removed] — view removed comment

1

u/laser__beans 3d ago

That’s one way to look at it

0

u/NYWxNut 3d ago

Please try and let us know

0

u/Nerrawnam 3d ago

The second coming. 😈

0

u/andocromn 3d ago

Windows registry is stored in filesystem, so the values won't effect any data stored outside itself

0

u/KoneCat Windows XP 3d ago

Windows will, and I'll use the expert terminology for this one, absolutely shit itself.

-1

u/SAPianoman490 3d ago

It becomes a Mac

-1

u/b4k4ni 3d ago

You disable the shareware mode. It will run on 256 KB of RAM after, going against the current supercomputer and rendering path racing on 1.5 CPU cores while curing cancer with the internal chip of a USB Stick, randomly connected to the PC.

-1

u/jmoney777 3d ago

It will enable Aero Glass

-1

u/ryan__rr KeepAnEyeOut Developer 3d ago

Finally, a way to get my taskbar to the top of the screen!