News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

MASM32 & MASM64 Quines (& TASM32 Quine Bonus)

Started by alCoPaUL, May 26, 2024, 04:30:06 AM

Previous topic - Next topic

alCoPaUL

So i just polished my previous creations so processes involving their development won't be all over the place..

benu.asm (meant to be built with Embarcadero's latest TASM32/ILINK32 distribution (.lib files attached))
firebird.asm (should be able to be built with the single commandline on any Native x64 Visual Studio 201x-202x Console Window)
fenghuang.asm (you can either use the msvcrt.lib that I attached (from Visual Studio 2010 (you will need the Visual C++ 2010 runtime files)) or the msvcrt.lib from the MASM32SDK package from this site)

and since these are 32-bit & 64-bit console applications, you can format the console window's width to 214++ characters for optimal aesthetics..

attached files:

3win128.zip = 3 source codes
masm32msvcrt.zip = visual c++ 2010 msvcrt.lib

alCoPaUL

tasm32msvcrtimport32.zip
tasm32msvcrtimport32.jpg (rename extension to .z01)

^
^
msvcrt.lib and import32.lib (for benu.asm)


enjoy,

alCoPaUL[GIMO][GOTH][b8]

alCoPaUL

successive generations of output from the first output should be able to be assembled and linked as if assembling and linking the first output...

aka

x:\> notepad quine1.asm
x:\> asmlink quine1.asm quine1.asm.exe
x:\> quine1.asm.exe >> quine2.asm
x:\> asmlink quine2.asm quine2.asm.exe
x:\> quine2.asm.exe >> quine3.asm

quine1.asm = quine3.asm

alCoPaUL

32-bit MASM Quine Update

fenghuang.asm

; ////
;
; Feng Huang
; by alCoPaUL [GIMO][As][aBrA][NPA][b8][BCVG][rRlf]
; 2/27/2023 Revised: 6/01/2024 @ NYC
; ml.exe fenghuang.asm /link /subsystem:console /defaultlib:msvcrt.lib kernel32.lib legacy_stdio_definitions.lib legacy_stdio_wide_specifiers.lib ucrt.lib /merge:.CRT=.rdata /entry:start
;
; ///
....
....

you should be able to assemble+link this with the commandline with no problems on the latest EWDK (Enterprise Windows Driver Kit) with zero warnings or whatsoever and run it flawlessly and aesthetically with suggested Console Window Size (214++ width).

attached is the full source code..