Reminds me of the Cosmopolitan project: https://github.com/jart/cosmopolitan
That was mentioned at the top of the blog post.
This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
81–90 of 93 posts
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#82I extracted the linux executable and was surprised to find that both readelf and objdump choke on it despite it loading and running correctly. Some investigation reveals that the name of the dynamic linker was shoved into the "unused" fields in the PT_DYNAMIC header entry to save space: Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align INTERP 0x0000000000000088 0x0000000000010088 0x00000000000…
ndisasm can help read it and hex editor. no tools should mangle such format, its useless savings, worth nothing. it will cause problem with AV and other things potentially. saw some comments about DEP on windows and this and honestly i wouldnt touch this thing with a 10ft stick. if the creator want ppl to play it they can provide a normal binary. not some obfuscated mess.
But as long as it is good enough for the OS it should be good for the malware scanner as long as it is not real malware. If we start punishing everything that deviates just a little bit from the norm we will end in no good place.
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#83On a related note -- when I see the minuscule filesize of the original Zelda game on emulators, I marvel at how little text/code/information could produce how much wonder, how far-reaching impact, and how many hours of enchantment for me. https://en.wikipedia.org/wiki/The_Legend_of_Zelda_(video_gam...
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#84The binary relies on the runtime, so yes it is nice. Forma instance, a static compiled and linked "hello world" in C on Linux is around ~785KB
That's just because glibc is not designed for static linking. It works, but it doesn't exclude unused code, unlike with other libcs.
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#85The fun part is that it's actually 3 executables in a single file. Meaning there is no particular reason it should have the same program on each platform.
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#86Earlier quoted context omitted.
Zelda 1 was 128 kB, for those wondering, and that's without any compression. Double that for the sequel.
That honestly doesn't seem too bad. Zelda 1 is relatively large but it reuses a lot of assets and honestly probably doesn't have that much text. (More than a Mario but way less than a Dragon Warrior.)
IOW might have been able to fit in 96Kb or less.
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#87On a related note -- when I see the minuscule filesize of the original Zelda game on emulators, I marvel at how little text/code/information could produce how much wonder, how far-reaching impact, and how many hours of enchantment for me. https://en.wikipedia.org/wiki/The_Legend_of_Zelda_(video_gam...
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#88Not cross-platform, but I'm reminded of the kkrieger game for Windows which was a 96k FPS game that looked visually impressive for the time. https://web.archive.org/web/20100304155706/http://www.thepro...
From that link: Still works on modern PCs! Was able to DL and launch.
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#89Long live RCE. The thing looks interesting. Very close to a virus. Can it be used to make and spread a virus ?
Re: This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
#90Earlier quoted context omitted.
ndisasm can help read it and hex editor. no tools should mangle such format, its useless savings, worth nothing. it will cause problem with AV and other things potentially. saw some comments about DEP on windows and this and honestly i wouldnt touch this thing with a 10ft stick. if the creator want ppl to play it they can provide a normal binary. not some obfuscated mess.
This is a slippery slope. I could agree if the OS would load it. Maybe the OS shouldn't load it. But as long as it is good enough for the OS it should be good for the malware scanner as long as it is not real malware. If we start punishing everything that deviates just a little bit from the norm we will end in no good place.
imagine, this linker name string.. its few bytes from 13K bytes. does nothing useful.
a lot of parsers of file formats do ignore most fields as do linkers/loaders. AV engines look a little more at it and might trigger on anomalies simply because its indicative of tampering (not neccesarily malicious).
deviating from the norm is fine as long as its grounded in a good reason, and clearly explained. simply pushing some weirdly formatted binary without any explanation, thats not very strategical in today's landscape of messed up binaries and threats. - just my 2 cents ofc.. im not an authority on the matter :p