Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to crash a system programmatically [closed]

If I could write a user program that would crash my OS (not my application), how would I do it?

I was thinking somehow switch my usermode program to kernel mode and cause a memory corruption. Is it possible?

Note: I am not creating a virus. Just curiosity.

like image 570
SysAdmin Avatar asked Apr 29 '11 07:04

SysAdmin


People also ask

How do you force a computer to crash?

After this is completed, the keyboard crash can be initiated by using the following hotkey sequence: Hold down the rightmost CTRL key, and press the SCROLL LOCK key twice.

How do I manually crash a program?

The easiest and fastest way you can try to force kill a program without Task Manager on Windows computer is to use Alt + F4 keyboard shortcut. You can click the program you want to close, press Alt + F4 key on the keyboard at the same time and don't release them until the application is closed.

How do you crash a program in C++?

If we allocate some memory by some program and let it be as it is. After sometime there will be huge memory that is allocated but not used so this would lack of memory after sometime. And thus program start crashing. Divide by zero.


1 Answers

The whole idea of an operating system is that a user program can't crash it under normal conditions. Of course you could still do something like exhaust the disk space on a partition that is used for a swap file and that would impair many operating systems or you could find a known vulnerability but there's no very easy way to reliably crash it.

like image 178
sharptooth Avatar answered Sep 28 '22 08:09

sharptooth