Introduction to C using lcc-win

B

BartC

I don't mind that executable files on Windows are called ".exe". In
fact, I think that's a good thing (on a system that uses file extensions
as file types) - and Windows suffers from the opposite problem of having
many other file types that also may contain executable code. Many a
trojan has called itself "naked_woman_screensaver.scr" to fool people
into thinking it is not an executable.

It's not hard to fool some software. Gmail for example doesn't like .exe or
..zip attachments (but doesn't bother to tell either sender or recipient that
something is amiss; it just doesn't deliver the email at all).

Renaming to something like .eee or .zzz does the trick - once it is realised
(perhaps weeks later) what happened.

It's a bit much though when you want to send, for example, an urgent
software update to a client, and there seems to be no direct way to do it.
 
G

Geoff

It's not hard to fool some software. Gmail for example doesn't like .exe or
.zip attachments (but doesn't bother to tell either sender or recipient that
something is amiss; it just doesn't deliver the email at all).

Renaming to something like .eee or .zzz does the trick - once it is realised
(perhaps weeks later) what happened.

It's a bit much though when you want to send, for example, an urgent
software update to a client, and there seems to be no direct way to do it.


Solution: DropBox.
 
D

David Brown

I take your points, but...

To be precise, .scr screen saver files have always been executables,
with all the implications that came with that fact.

/You/ know that, and /I/ know that, but a lot of people think there are
some special format that is roughly like a picture.

And there are worse examples - it is possible to put executable code
within a font file in windows! (I don't know if this has ever been
exploited for passing malware.)
Then there is the absolutely stupid idea of hiding "known" extensions
by default and all the Trojans that came after, naming their files
something like "joke.txt.exe" or "naked_woman.jpg.exe".

That's the first "feature" I turn off on all new installations - it was
probably the biggest single gift from MS to malware writers (it even
beats the concept virus in my book).
But the same kind of vulnerability now exists in Linux and OS X. Any
file can be "executable" and the system chooses what to do with the
file upon double-click based on the extension OR on the contents of
the file, just double-click a .c file or rename a .pdf to eliminate
the extension and then open the file to see what happens or rename a
.pl to .py or eliminate the extension altogether and see what happens
when you feed it raw to the system.

/Usually/ you have to provide some sort of confirmation in Linux before
running the unknown file - but one should never underestimate the
ingenuity of the bad guys, or the naïvety of some users.
But then there's the meta-data in PDF files and the scripts inside
Open Office and Excel or Word files and don't even get me started on
the idiocy of execute-on-mount or the Windows autorun facility...

Yes, I think that would be getting a bit off-topic. And since most
people (including me) would agree with you, there would be no fun argument!
But I've had to use self-extracting archives to transport files from a
PC to a dedicated control like the Siemens 840D because it didn't have
a zip tool and it was far more expeditious to run the self-extractor
than to escape the HMI to install some code just to install some more
code.

Certainly there are occasions when such tools are useful (and most
setup.exe and install.exe programs are not much more than
self-extracting archives - but the little extra makes it worth having an
executable).
But one thing has always irritated me about OS X is that I have found
no tool that can open .zip files for examination _before_ extracting
them as you can with WinZIP or WinRAR.

I don't use OS X, so I can't comment. WinZip and WinRar extract files
to directories in your temp folder before viewing them, so they
certainly /do/ unpack them before letting you examine the files. They
might not unpack /all/ the archive, but the files are there in your temp
folder - along with probably gazillions of old temp files from previous
unpackings that have not been cleared up properly.
 
D

David Brown

What on earth is the
point of this conversation?

It had a bit of a point at the start - Jacob had put a link to his
compiler and manual, hoping that some people would read the
documentation or try the tools. But some of us could not or would not
read the manual because of the inappropriate file format.

But since then, this branch has strayed far off-topic. If we haven't
convinced Jacob to use appropriate formats by now, then there is indeed
no point in continuing the rant.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

lcc-win 17
ANN An ansic90 version of lcc-win 86
Lcc win overflow handling 42
Warnings in lcc-win 70
The lcc-win string library 31
C99 initializers in lcc-win 0
[OT] lcc first experience 70
lcc-win32 102

Members online

Forum statistics

Threads
474,075
Messages
2,570,547
Members
47,197
Latest member
NDTShavonn

Latest Threads

Top