The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Wow: inside DOS Doom version 2, you can run another Doom (even arbitrary other code)

Posted by jpluimers on 2024/09/17

Repository:

A Video that way better explains how the hacks work to make this happen is at [Wayback] You can run Doom inside (DOS) Doom, for real. – YouTube

I have found a code execution exploit in the original DOS Doom 2 and ported a Chocolate Doom to it. And then Chocolate Heretic.

Attention: This does only work on the original DOS Doom2 version, no GZDoom or other source ports. This is a good thing as you don’t want code execution exploit on modern systems. People would abuse it to spread malicious code.

DOS version is available on Steam and you can use DosBox emulator to run it.

Copy kgdid.wad to the directory where you have doom2.exe and then in DosBox start it with command “doom2 -file kgdid.wad“.

(Copy other files too if you want to try them. Game injection has to be renamed to doomsav4.dsg)

Related:

–jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.