flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Alike 'This program cannot be run in DOS mode'

Author
Thread Post new topic Reply to topic
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
Do not offer:
Code:
format pe on 'a self made stub.bin'    

Code:
formats.inc: stub_message db 'This program cannot be run in DOS mode.',0Dh,0Ah,24h    

Code:
file 'victim.ext'
store qword 'etc' at some_offset    
Post 11 Oct 2010, 00:38
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
What, you don't think FASM should offer customizable DOS stubs? I'm heavily in favor of keeping it, though perhaps I'm the only one! Wink
Post 11 Oct 2010, 20:01
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1903
DOS386
edemko wrote:
Do not offer:
Code:
formats.inc: stub_message db 'This program cannot be run in DOS mode.',0Dh,0Ah,24h    


Right. The text is damn dumb Sad

Write instead:

This is a Win32 console executable

This is a Win32 GUI executable

This is a Win32 DLL

This is a Win32 SYS driver

This is a Win64 console executable

This is a Win64 GUI executable

This is a Win64 DLL

This is a Win64 SYS driver

maybe add something like compiled by FASM 1.70 on 2010-12-31 from "BLAH.ASM" too.

AFAIK only WLINK is smart here, all other linkers and compilers are rude and dumb Sad

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug


Last edited by DOS386 on 23 Oct 2010, 07:49; edited 1 time in total
Post 23 Oct 2010, 06:10
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16850
Location: In your JS exploiting you and your system
revolution
Well seeing as how only three people in the world ever see the message then it might not be worth so much effort to customise it. Twisted Evil Razz
Post 23 Oct 2010, 06:52
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1903
DOS386
revolution wrote:
seeing as how only three people in the world ever see the message then it might not be worth so much effort to customise it.


Consider the effort to support POPE CS Smile

Also, IMHO every EXE should reveal its version reliably without the need to execute it Smile

PS: I don't use format PE Smile
Post 23 Oct 2010, 07:51
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16850
Location: In your JS exploiting you and your system
revolution
There is no such instruction as pope. But there is a pope, which is an entirely different thing.
Post 23 Oct 2010, 08:09
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7106
Location: Slovakia
vid
Quote:
There is no such instruction as pope. But there is a pope, which is an entirely different thing.

IMO he is kinda like "pop cs" Very Happy
Post 23 Oct 2010, 10:18
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.