Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

How do I Inject Settings Into An EXE File?

I'm currently building a rat in C#, however I have ran into one major issue. How the hell can I inject settings into an already compiled exe file? I have seen many people saying don't use EOF. So now I'm sitting here clueless to how to fix this issue. Is there another method of doing this that I don't know?
There's several of ways to do that. But if you have access to the source then you could also modify a source file programmatically before compiling it on the fly. You can use CodeDOM for that.
This is one way: https://hackforums.net/showthread.php?tid=5944333

And yet another way is reflecting the module with dnlib and changing the variables. This is the most reliable way
[Image: Syr3DlV.png]
Check out dnlib (github.com/0xd4d/dnlib). You can easily modify compiled .net applications with it.

Heres an example: github.com/Rottweiler/AdvancedBuilder
(Mar 8, 2019 11:50 PM)SoonTM Wrote:  Check out dnlib (Can't post links). You can easily modify compiled .net applications with it.

Heres an example: (Can't post links)

(Mar 8, 2019 04:23 PM)gigajew Wrote:  This is one way: (Can't post links)

And yet another way is reflecting the module with dnlib and changing the variables. This is the most reliable way

Thank you both for the suggestion. The issue is resolved. I didn't even know dnlib existed. I ended up developing a class with dnlib that changes the variables of the stub, you guys are legend!  🤝
(Mar 9, 2019 03:30 PM)VelvetCoding Wrote:  Thank you both for the suggestion. The issue is resolved. I didn't even know dnlib existed. I ended up developing a class with dnlib that changes the variables of the stub, you guys are legend!  🤝

No problem. Good luck with your project. ✌


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by madeha elsayedxxxxMay 19, 2020 11:53 PM 4 385 May 19, 2020 11:53 PM
Last Post: Shadow_Cloud
[Python] by madeha elsayedxxxxMay 17, 2020 10:01 PM 1 141 May 17, 2020 10:01 PM
Last Post: District
[Shell] by Emre_Sep 4, 2019 03:15 PM 0 148 Sep 4, 2019 03:15 PM
Last Post: Emre_