bsod

Using HalDisplayString For Custom Blue Screen Of Death

偶尔善良 提交于 2019-12-05 13:08:42
I was reading a while ago somewhere online that you could make a custom BSOD. I don't remember where but I know it had something to with calling HalDisplayString which would switch to the bluescreen and print a message. I tried calling HalDisplayString from a simple driver but nothing happens. I was wondering if anyone could point me in the right direction. Here is the code to the driver. #include "ntddk.h" #include "wdm.h" NTSYSAPI VOID NTAPI HalDisplayString( PCHAR String ); NTSYSAPI VOID NTAPI NtDisplayString( PCHAR String ); DRIVER_INITIALIZE DriverEntry; NTSTATUS DriverEntry( __in struct

Create BSOD from user mode?

别来无恙 提交于 2019-12-05 08:32:21
I was getting bored with my XP box one day, so I decided to try some of the answers to this question to see if any of them would cause a BSOD. They didn't, and they seemed like they would be the most likely to do that, so I was wondering if it is possible to trigger a BSOD from user-mode in C/C++, and if so, how? It seriously difficult to make a BSOD from user mode unless the user mode program interacts with buggy drivers (may be a particular sequence of operations can reveal the bugs in particular driver) disturbs the driver stack. From user mode, the inputs are validated well before passing

“Symbols can not be loaded” when trying to read dump

让人想犯罪 __ 提交于 2019-12-03 13:35:46
I have an application that sometimes causes a BSOD on a Win XP machine. Trying to find out more, I loaded up the resulting *.dmp file (from C:\Windows\Minidump), but get this message when in much of the readout when doing so: ********************************************************************* * Symbols can not be loaded because symbol path is not initialized. * * * * The Symbol Path can be set by: * * using the _NT_SYMBOL_PATH environment variable. * * using the -y <symbol_path> argument when starting the debugger. * * using .sympath and .sympath+ * ******************************************

How do I analyse a BSOD and the error information it will provide me?

淺唱寂寞╮ 提交于 2019-11-30 04:22:28
问题 Well, fortunately I haven't written many applications that cause a BSOD but I just wonder about the usefullness of the information on this screen. Does it contain any useful information that could help me to find the error in my code? If so, what do I need, exactly? And then, the system restarts and probably has written some error log or other information to the system somewhere. Where is it, what does it contain and how do I use it to improve my code? I did get a BSOD regularly in the past

Invoke Blue Screen of Death using Managed Code

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 06:58:53
问题 Just curious here: is it possible to invoke a Windows Blue Screen of Death using .net managed code under Windows XP/Vista? And if it is possible, what could the example code be? Just for the record, this is not for any malicious purpose, I am just wondering what kind of code it would take to actually kill the operating system as specified. 回答1: The keyboard thing is probably a good option, but if you need to do it by code, continue reading... You don't really need anything to barf, per se,

Simulating a BlueScreen

余生长醉 提交于 2019-11-28 09:22:24
I am trying to make a program that records a whole bunch of things periodically. The specific reason is that if it bluescreens, a developer can go back and check a lot of the environment and see what was going on around that time. My problem, is their a way to cause a bluescreen? Maybe with a windowsAPI call (ZeroMemory maybe?). Anywhoo, if you can think of a way to cause a bluescreen on call I would be thankful. The computer I am testing this on is designed to take stuff like this haha. by the way the language I am using is C\C++. Thank you You can configure a machine to crash on a keystroke

programmatically trigger BSOD

风流意气都作罢 提交于 2019-11-28 05:02:40
Purely for academic reasons. is it possible to programmatically cause a BSOD to occur under windows xp/windows 7 in C#/.NET. I'm suggesting there's got to be some dirty hack, or some vulnerability to abuse to cause this. I'm looking for a snippet of code to run that guarantees a BSOD in a finite period of time. Killing process "csrss.exe" causes BSOD. But you need Administrator privileges to do this. I'm not sure there is a way to do this purely with restricted privileges. EDIT: Yep, it works alright. I cooked myself a nice little BSOD :) System.Diagnostics.Process.GetProcessesByName("csrss")

C# Simulate Key Press

北战南征 提交于 2019-11-27 14:53:44
I was looking for a way to simulate pressing the right Ctrl key in C#, it must be the right one. I know this can be done for the left one but I couldn't find anything on the right one. It is so I can simulate the key press for the manually triggered bsod. Thanks Reniuz You can use keybd_event event to simulate right Ctrl key press. [DllImport("user32.dll", SetLastError = true)] static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo); public const int KEYEVENTF_EXTENDEDKEY = 0x0001; //Key down flag public const int KEYEVENTF_KEYUP = 0x0002; //Key up flag public const

Simulating a BlueScreen

雨燕双飞 提交于 2019-11-27 02:49:25
问题 I am trying to make a program that records a whole bunch of things periodically. The specific reason is that if it bluescreens, a developer can go back and check a lot of the environment and see what was going on around that time. My problem, is their a way to cause a bluescreen? Maybe with a windowsAPI call (ZeroMemory maybe?). Anywhoo, if you can think of a way to cause a bluescreen on call I would be thankful. The computer I am testing this on is designed to take stuff like this haha. by

C# Simulate Key Press

南楼画角 提交于 2019-11-26 16:57:00
问题 I was looking for a way to simulate pressing the right Ctrl key in C#, it must be the right one. I know this can be done for the left one but I couldn't find anything on the right one. It is so I can simulate the key press for the manually triggered bsod. Thanks 回答1: You can use keybd_event event to simulate right Ctrl key press. [DllImport("user32.dll", SetLastError = true)] static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo); public const int KEYEVENTF