vms 1.3 KB

123456789101112131415161718192021222324252627
  1. #------------------------------------------------------------------------------
  2. # vms: file(1) magic for VMS executables (experimental)
  3. #
  4. # VMS .exe formats, both VAX and AXP (Greg Roelofs, newt@uchicago.edu)
  5. # GRR 950122: I'm just guessing on these, based on inspection of the headers
  6. # of three executables each for Alpha and VAX architectures. The VAX files
  7. # all had headers similar to this:
  8. #
  9. # 00000 b0 00 30 00 44 00 60 00 00 00 00 00 30 32 30 35 ..0.D.`.....0205
  10. # 00010 01 01 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 ................
  11. #
  12. 0 string \xb0\0\x30\0 VMS VAX executable
  13. >44032 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption
  14. #
  15. # The AXP files all looked like this, except that the byte at offset 0x22
  16. # was 06 in some of them and 07 in others:
  17. #
  18. # 00000 03 00 00 00 00 00 00 00 ec 02 00 00 10 01 00 00 ................
  19. # 00010 68 00 00 00 98 00 00 00 b8 00 00 00 00 00 00 00 h...............
  20. # 00020 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
  21. # 00030 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
  22. # 00040 00 00 00 00 ff ff ff ff ff ff ff ff 02 00 00 00 ................
  23. #
  24. 0 belong 0x03000000 VMS Alpha executable
  25. >75264 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption