Page 1 of 1

World's smallest Windows program

Posted: Wed Dec 30, 2009 12:38 pm
by Gigasoft
I've broken the world record for the world's smallest Windows program. This program is 73 bytes long and the previous world record was 97 bytes.

Inside this zip file is a winhi73.com and a hi73fix.exe. Extract both to the same directory and run hi73fix.exe to patch winhi73.com to work with your version of Windows. Then run winhi73.com. If it works, it should display a message box with 3 OK buttons. It only works in 32 bit versions of Windows.

Re: World's smallest Windows program

Posted: Wed Dec 30, 2009 3:11 pm
by ru2aqare
Gigasoft wrote:I've broken the world record for the world's smallest Windows program. This program is 73 bytes long and the previous world record was 97 bytes.

Inside this zip file is a winhi73.com and a hi73fix.exe. Extract both to the same directory and run hi73fix.exe to patch winhi73.com to work with your version of Windows. Then run winhi73.com. If it works, it should display a message box with 3 OK buttons. It only works in 32 bit versions of Windows.
I wouldn't call a program that runs in v86 mode (under NTVDM) a Windows program... Be it 73 or whatever bytes long. As I run an x64 Windows, I can't comment of whether it works or not.

Re: World's smallest Windows program

Posted: Wed Dec 30, 2009 3:27 pm
by Gigasoft
Well, it manages to jump to arbitrary code in NTVDM, making a NtRaiseHardError call with it's own parameters and then going to ExitProcess. It could easily be expanded to do other things that normal Windows programs can do.

Re: World's smallest Windows program

Posted: Wed Dec 30, 2009 3:32 pm
by Owen
I wouldn't call it a Windows program, but it's a glorious hack

Re: World's smallest Windows program

Posted: Wed Dec 30, 2009 11:58 pm
by Combuster
Gigasoft wrote:Well, it manages to jump to arbitrary code in NTVDM
So it is an DOS program exploiting a security hole in the real mode VM.

Re: World's smallest Windows program

Posted: Thu Dec 31, 2009 12:40 am
by VolTeK
alright :) i mean wait, thats a bad thing :? good job?

Re: World's smallest Windows program

Posted: Thu Dec 31, 2009 6:19 am
by Gigasoft
Yeah, technically it starts out as a DOS program. It's not really a security hole, since DOS programs can already launch Windows programs. It's just an unintended way of doing things :P

Re: World's smallest Windows program

Posted: Thu Jan 07, 2010 11:38 pm
by redoktober
strange.
i used your patch to fix the COM file, and when i run it, a console opens up, and then NTVDM crashes.
what could be the issue?

Re: World's smallest Windows program

Posted: Fri Jan 08, 2010 3:01 am
by qw
redoktober wrote:strange.
i used your patch to fix the COM file, and when i run it, a console opens up, and then NTVDM crashes.
what could be the issue?
Same with me (on XP SP2).

Re: World's smallest Windows program

Posted: Fri Jan 08, 2010 10:25 am
by Gigasoft
That's difficult to say. Could you upload or send me the patched COM file along with your version of NTVDM?

Re: World's smallest Windows program

Posted: Fri Jan 08, 2010 12:27 pm
by qw
Gigasoft wrote:That's difficult to say. Could you upload or send me the patched COM file along with your version of NTVDM?
Here it is. NTVDM version is 5.1.2600.2180. I hope this information is enough, the file exceeds the upload limit.

Re: World's smallest Windows program

Posted: Sun Jan 10, 2010 10:58 pm
by redoktober
i'll say this.
i looked through the MASM code...nice hack!
:D