Author Topic: small stub to load and run 64-bit PE binaries in DOS  (Read 1279 times)

_japheth

  • Regular Member
  • *
  • Posts: 10
small stub to load and run 64-bit PE binaries in DOS
« on: August 13, 2018, 06:56:31 PM »
Hello boys,

I've started to program again a little bit. Since I've abandoned Windoze, I wrote something for good old DOS: a small stub that is supposed to be linked to a "standard" 64-bit PE binary. Then, if you are able to boot DOS in real-mode, it may load the binariy into extended memory and run it.

The API that the binary can use is somewhat "limited", don't expect a nice "Hello world"-MessageBox - you are in text mode. However, the benefits are: you're binary runs in ring 0, thus can do a lot of things that are VERBOTEN in Windoze or Linux. Also, the memory is "identity mapped", so you can easily check if your 64 GB machine HAS indeed such amounts or RAM.

For more details see https://github.com/Baron-von-Riedesel/Dos64-stub



The road to hell is paved with good intentions.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6582
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: small stub to load and run 64-bit PE binaries in DOS
« Reply #1 on: August 15, 2018, 03:50:12 AM »
What happened to your old avatar ?
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

_japheth

  • Regular Member
  • *
  • Posts: 10
Re: small stub to load and run 64-bit PE binaries in DOS
« Reply #2 on: August 16, 2018, 10:08:31 AM »
> What happened to your old avatar ?

nickname japheth was already used in Github ( it was most likely me signing up 10 years ago and then forgetting about this ), so I used "Baron von Riedesel", which is also a very nice name. You may shorten it to "Baron", if you like -  a reference to "Huckleberry Finn" with the "Duke" and the "King" .
The road to hell is paved with good intentions.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6582
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: small stub to load and run 64-bit PE binaries in DOS
« Reply #3 on: November 06, 2018, 02:45:35 AM »
I probably have a copy of your old blue one somewhere.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: