{"id":11328,"date":"2024-06-20T20:03:32","date_gmt":"2024-06-21T03:03:32","guid":{"rendered":"https:\/\/mattfife.com\/?p=11328"},"modified":"2024-06-22T20:31:18","modified_gmt":"2024-06-23T03:31:18","slug":"blue-screen-windows-on-purpose","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=11328","title":{"rendered":"Blue-screen Windows on purpose"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I wrote awhile back on <a href=\"https:\/\/mattfife.com\/?p=2672\" data-type=\"link\" data-id=\"https:\/\/mattfife.com\/?p=2672\">how to crash Linux\/cause a Linux kernel panic<\/a> in order to test how your program can handle a crash &#8211; but can you cause a Windows blue-screen programmatically? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Raymond Chen of the <a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/\" data-type=\"link\" data-id=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/\">New Old Thing<\/a> describes a <a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20240219-00\/?p=109424\" data-type=\"link\" data-id=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20240219-00\/?p=109424\">variety of methods to crash Windows purposefully<\/a>. He also cautions against ad-hoc methods like killing winlogin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Methods you can use to cause a Windows Blue-screen:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Windows allows you to <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-hardware\/drivers\/debugger\/forcing-a-system-crash-from-the-keyboard\" data-type=\"link\" data-id=\"https:\/\/learn.microsoft.com\/en-us\/windows-hardware\/drivers\/debugger\/forcing-a-system-crash-from-the-keyboard\">configure a specific keyboard combination to cause a crash<\/a>. You set some registry keys and then can crash a system by holding right CTRL then pressing scroll lock key twice. You can also customize the key sequence via registering custom keyboard scan codes. If you have a kernel debugger attached it will trigger the kernel debugger after the crash dump is written.<\/li>\n\n\n\n<li>The best way to trigger an artificial kernel crash is to use\u00a0<a href=\"https:\/\/learn.microsoft.com\/en-us\/sysinternals\/downloads\/notmyfault\" target=\"_blank\" rel=\"noreferrer noopener\">NotMyFault<\/a>, which is part of the Microsoft Windows <a href=\"https:\/\/learn.microsoft.com\/en-us\/sysinternals\/\" data-type=\"link\" data-id=\"https:\/\/learn.microsoft.com\/en-us\/sysinternals\/\">SysInternals <\/a>tools.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I wrote awhile back on how to crash Linux\/cause a Linux kernel panic in order to test how your program can handle a crash &#8211; but can you cause a Windows blue-screen programmatically? Raymond Chen of the New Old Thing describes a variety of methods to crash Windows purposefully. He also cautions against ad-hoc methods like killing winlogin. Methods you can use to cause a Windows Blue-screen:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[9,6,7,5],"tags":[],"class_list":["post-11328","post","type-post","status-publish","format-standard","hentry","category-cool","category-technicalproblemsolutions","category-technicalprogramming","category-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-2WI","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/11328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11328"}],"version-history":[{"count":2,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/11328\/revisions"}],"predecessor-version":[{"id":11568,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/11328\/revisions\/11568"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}