Advertisement
Cr4yz33

Windows 8 Fake BSOD Batch

Oct 14th, 2019
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.77 KB | None | 0 0
  1. @ECHO off
  2. if not exist "%temp%\BSOD" mkdir %temp%\BSOD >nul
  3. copy %0 "%temp%\BSOD\%~n0.hta" > nul
  4. start "" "%temp%\BSOD\%~n0.hta" >nul
  5. ::nomousy /hide
  6. timeout /t 3 >nul
  7.  
  8. del /f /q %temp%\BSOD\%~n0.hta >nul
  9. timeout /t 27 >nul
  10. shutdown /r /f /t 0 >nul
  11. -->
  12. <!doctype html>
  13. <html lang="en">
  14. <HTA:APPLICATION ID="-" APPLICATIONNAME="-"
  15. ICON="no" CONTEXTMENU="no" WINDOWSTATE="maximize"
  16. SHOWINTASKBAR="no" CAPTION="no" SINGLEINSTANCE="yes" SYSMENU="no" SCROLL="no">
  17.  
  18.     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  19.     <body bgcolor="#0174DF">
  20.         <style type="text/css">
  21.           html, body {height: 100%;}
  22.     body {text-align: left;}
  23.           a#header {
  24.           display: inline-block;          
  25.           margin-top: -45px;
  26.           margin-left: 280px;
  27.           font-weight: normal;
  28.           font-size: 200pt;  
  29.           font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  30.           text-decoration: none;  
  31.           color: white;
  32.     }
  33.         </style>
  34.           <style type="text/css">
  35.           html, body {height: 100%;}
  36.     body {text-align: left;}
  37.           a#rest {
  38.           display: inline-block;
  39.           margin-left: 280px;
  40.           margin-top: -25px;
  41.           font-weight: lighter;
  42.           font-size: 40pt;  
  43.           font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  44.           text-decoration: none;  
  45.           color: white;
  46.     }
  47.           <style type="text/css">
  48.           html, body {height: 100%;}
  49.     body {text-align: left;}
  50.           a#rest2 {
  51.           display: inline-block;
  52.     margin-left: 280px;          
  53.           margin-top: 0px;
  54.           font-weight: lighter;
  55.           font-size: 40pt;  
  56.           font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  57.           text-decoration: none;  
  58.           color: white;
  59.     }
  60.           <style type="text/css">
  61.           html, body {height: 100%;}
  62.     body {text-align: left;}
  63.           a#mid {
  64.           display: inline-block;
  65.     margin-left: 280px;          
  66.           margin-top: 30px;
  67.           font-weight: lighter;
  68.           font-size: 16pt;  
  69.           font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  70.           text-decoration: none;  
  71.           color: white;
  72.     }
  73.         </style>
  74.         <script language="JavaScript">
  75.         [b]<!--[/b]    
  76.  
  77.             function countdown(zahl){
  78.                 if(zahl>1){
  79.  
  80.                 document.getElementById('rest2').innerHTML="It´ll restart in: "+zahl+" seconds";
  81.                 count(zahl);    
  82.                 }
  83.                 else if(zahl==1){
  84.  
  85.                 document.getElementById('rest2').innerHTML="It´ll restart in: "+zahl+" second";
  86.                 count(zahl);    
  87.                 }
  88.                 else {
  89.  
  90.                 document.getElementById('rest2').innerHTML="It´ll restart in: 0 seconds";
  91.                 }
  92.             }
  93.  
  94.             function count(countzahl){
  95.  
  96.             countzahl=countzahl-1;
  97.                 setTimeout("countdown("+countzahl+");",1000);    
  98.             }
  99.  
  100.         count(30);
  101.  
  102.         // -->
  103.         </script>
  104.  
  105.           <p><a id="header">
  106.           :( <br>
  107.           </a></p>
  108.           <p><a id="rest">
  109.           Your PC ran into a problem that it couldn't </p>
  110.              <p>handle, and now it needs to restart. <br>
  111.              </a></p>
  112.              <p><a id="mid">
  113.              You can search for the _error_ online: UNKNOWN_ERROR <br>
  114.              </a></p>
  115.              <p><a id="rest2">
  116.              It'll restart in: <span id="rest2">30 Seconds</span><br>
  117.           </a></p>
  118.     </body>
  119. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement