PDA

View Full Version : How To Edit A .dll File



tomyknoker
03-04-2007, 11:59 AM
Hi all,

I am trying to look into a .dll file as I have been lumped with a site which uses ASP .NET to connect to a MySQL database, and I need to see the datasource files, anyone have any idea?

Twey
03-04-2007, 01:09 PM
Unfortunately, DLLs are compiled and not human-readable in the slightest. You can try to decompile (http://www.program-transformation.org/Transform/DotNetDecompilers) it.

tomyknoker
03-04-2007, 01:24 PM
Hi Twey, So I'm kind of screwed then, basically I am trying to edit a .ASP page, and I can see the calls in there to the MySQL database, but noticed they weren't 100% the same so I am assuming this is all in the .dll file? Do you know if this is correct? So the only way to get this page working is to spend money getting a .dll compiler?

tomyknoker
03-04-2007, 01:30 PM
Not sure if you can give me advice on this at all, but these are the files that are in a folder which I think the page uses:


ICSharpCode.SharpZipLib.dll
maint.dll
MySql.Data.dll
MySql.Data.pdb

It would be the last two I'd need to edit hey?

Twey
03-04-2007, 01:37 PM
Some of those are free.

As for your second question, I've absolutely no idea :) The MySql.Data.* files do look more hopeful though. I still think you should write the whole thing from scratch.

tomyknoker
03-04-2007, 01:45 PM
I agree with you there Twey, I am actually thinking of doing it all in PHP do you think that's stupid? Or when you said from scratch did you just mean trya dn create the .dll file from scratch?

Twey
03-04-2007, 01:54 PM
No, I meant the whole ASPX part of the site.

tomyknoker
03-04-2007, 01:56 PM
Do you think there is anything PHP couldn't do over ASPX?

Twey
03-04-2007, 01:58 PM
No, as a Turing-complete language it can do anything ASPX can do, although possibly with more or less effort.

Shotgun Ninja
03-05-2007, 01:48 PM
Well, Bloodshed Dev-C++ has a system that lets you write DLL files, but I don't know if it will let you decompile them. It's worth a try, though.

Twey
03-05-2007, 05:48 PM
We're talking about CIL DLLs here, not native PEs.

killerchutney
03-19-2007, 08:01 PM
Unfortunately, DLLs are compiled and not human-readable in the slightest.
Unless you are fluent in reading squares. :)

codeexploiter
03-20-2007, 06:41 AM
You can use some windows disassemblers to reverse engineer the dll files. Though you should have some thorough knowledge and experience in Assembly language.

Twey
03-20-2007, 12:18 PM
Though you should have some thorough knowledge and experience in Assembly language.I'll repeat: we're talking about CIL DLLs here, not native PEs.

Shotgun Ninja
04-04-2007, 07:38 PM
What exactly is the difference between CIL DLLs and PE DLLs?

Twey
04-04-2007, 10:45 PM
The PE (Portable Executable) format, based on COFF, is the native executable format of Windows, and is run directly by the kernel. The CIL (Common Intermediate Language) is an interpreted bytecode, much like Java, and is run by a VM such as Mono or the Microsoft .NET Framework.

twick
04-16-2007, 03:54 AM
You can unless you have the original source files. DLL's have been compiled.