#!/usr/bin/python # Parses the realmode keyboard buffer out of the bios data area # Metlstorm 2k6 # import struct import binascii import sys import string BASE = 0x400 OFFSET= 0x17 BUFOFFSET = 0x1e LEN = 39 fp=open(sys.argv[1], "r") fp.seek(BASE + OFFSET) data = fp.read(LEN) fp.close() def decodeRealModeKbdBiosDataArea(bda): fmt = "