' Comments found in the .exe file

SergeD

Member
Joined
Oct 25, 2007
Messages
10
Programming Experience
10+
Hello,

I checked an .exe file with FxCop and surprisingly found all my comments text in the file.
Is it a way to build an exe file without the ' comments included ?

Thank you

Serge
 
FxCop doesn't read the executable does it? I thought it read the source code. The whole point of FxCop is to check that your source code meets MS guidelines. It can't do that if it doesn't read the source code. Note that I've never actually used FxCop so I could be wrong about it's purpose but that's the impression I was under.
 
I don't know either if FxCop is using the exe instead of the source code...but I can answer the question if the comments are included...Yes. That's how .NET works, it uses a JIT (Just-in-Time) Compiler and compiles the source code (which is included in the exe file) on the fly when needed.

Have a look for the .NET Reflector and the Disassembler PlugIn and you'll know what I mean. The source code is copied clear text to the exe file. For a good Obfuscation solution, look in my signature.

Bobby
 
Thanks for answers.

As programmers coding without explaining the line codes is not professional. But giving .exe files with 'comments to hackers is an invaluable gift... :(

Thanks Robert but a deobfuscated comment is still invaluable. Why not put a "delete comments" option to your obfuscator ?

Serge
 
Actually, the obfuscator is removing all comments and obfuscating the code...at least I didn't find any comments within the obfuscated assemblies (be aware that Reflector uses .xml documentation files, so it can be that documentation "reappears" within obfuscated assemblies).

Bobby
 
Back
Top