It is currently 16 Apr 2024, 23:34
   
Text Size

ExeStrings (helps getting strings from the executable)

Moderator: CCGHQ Admins

ExeStrings (helps getting strings from the executable)

Postby thefiremind » 21 Jul 2016, 19:19

I made a very small program that probably won't be used by many people, but I thought, why not sharing it anyway?

Each time a new Magic Duels expansion hits, there's a high chance we find more functions inside the executable, which we may use for more modding possibilities. However finding the strings inside the executable is a boring task, and any small help is appreciated. So here comes ExeStrings: drag and drop MagicDuels.exe onto it (or give it the MagicDuels.exe path as argument at the command prompt if you prefer) and it will generate a MagicDuels.txt file inside the same directory as the executable. What will you find inside the text file? All the aggregates of 3 or more characters among [0-9, a-z, a-Z, _]. There will be a lot of garbage, but you'll find functions, constants and XML tags more easily.
Note that some strings will be attached together, that's how you find them inside the executable so it's an unavoidable problem: a human eye is needed in order to figure out where it happened.

It requires .NET Framework 4.0.

I'll try to update the Wiki some time after each expansion, but if I'm late, at least you have a way to find the strings more quickly by yourselves. :wink:
Attachments
ExeStrings.zip
(Program.cs is the source code, you can throw it away if you don't need it)
(4.49 KiB) Downloaded 424 times
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: ExeStrings (helps getting strings from the executable)

Postby RiiakShiNal » 22 Jul 2016, 10:36

Did you also account for unicode strings?
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 496 times

Re: ExeStrings (helps getting strings from the executable)

Postby thefiremind » 23 Jul 2016, 11:10

RiiakShiNal wrote:Did you also account for unicode strings?
Yes, the program ignores the "00" characters found between readable characters. The high byte is never used in function/tag names so it works.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times


Return to Utilities

Who is online

Users browsing this forum: No registered users and 14 guests


Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 14 guests

Login Form