• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

C# String Deobfuscator

Status
Not open for further replies.

itsMe

*KillmeMories*
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
Joined
Jan 8, 2019
Messages
56,623
Solutions
2
Reputation
32
Reaction score
100,455
Points
2,313
Credits
32,750
‎6 Years of Service‎
 
76%
Some .NET assemblies employ a unique form of obfuscation by storing their strings in a Hashtable within the application domain's data.

This is achieved using the AppDomain.CurrentDomain.GetData method. This approach involves storing and retrieving data using non-descriptive method names and integer keys, which adds a layer of obscurity and makes the code harder to reverse engineer.

This tool is designed to automate the process of extracting and replacing strings from the assemblies. The process is as follows:

    Scanning the assembly for a method with a specific signature that leverages the AppDomain.CurrentDomain.GetData method.
    Once identified, the tool invokes this method iteratively to enumerate and retrieve the stored strings.
    The tool then replaces the identified method calls in the code with the actual strings retrieved from step 2.
    It then compiles the modified code and saves the patched assembly to disk.

Before:

275057893-69efbfe0-b31d-40c1-ad61-9461b149367e.png


After:

275057937-0c77ccf0-b6be-4bff-bb4b-a29ac3544092.png


To see this hidden content, you must like this content.
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top