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

.NET 

modify to string in compiled application(c#)

hello every one
i want to design a c# application contains string , and after i compile it/
i want to change this string in it without opening the source code
i want to make a second application to modify to the first application string
how can i do that?
----------------------------------------------------------------------------------
i don't want to make first application call the string from text or any external source
Hi,
Try dnlib, it's open source.

++
dnlib or mono.cecil is the only library i know that can do those jobs, maybe other member can recommend more
(Jun 22, 2020 02:59 PM)sh@rp Wrote:  Hi,
Try dnlib, it's open source.

++

thanks
i try many times to use dnlib , but i cannot use it
could you help me how to use it?
thanks again

(Jun 22, 2020 05:43 PM)Accord Wrote:  dnlib or mono.cecil is the only library i know that can do those jobs, maybe other member can recommend more

thanks
i try many times to use dnlib , but i cannot use it
could you help me how to use it?
thanks again

public class mayar
{
public static string sara
{
string sara = " i love all ";
return sara ;
}
}

this is the class i want to modify string sara after compiled
Why not use CodeDOM which is inbuilt into the .net framework to run and create executables at realtime.

I.E. your program can save a .exe with all your custom code in meaning you can edit anything from strings to functions.
[Image: DreddSig.gif]
(Jun 22, 2020 05:58 PM)sara_221540 Wrote:  thanks
i try many times to use dnlib , but i cannot use it
could you help me how to use it?
thanks again


thanks
i try many times to use dnlib , but i cannot use it
could you help me how to use it?
thanks again

public class mayar
{
public static string sara
{
string sara = " i love all ";
return  sara ;
}
}

this is the class i want to modify string sara after compiled

If you want to implement your own string modification you should look at stub/builder on google, I don’t know if this can help you.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by nucleo_type09Apr 28, 2024 06:49 AM 0 324 Apr 28, 2024 06:49 AM
Last Post: nucleo_type09
[.NET] by zlg43647Oct 28, 2022 07:06 AM 2 240 Oct 28, 2022 07:06 AM
Last Post: zlg43647
[C#] by mayar2021Mar 14, 2021 03:44 PM 7 293 Mar 14, 2021 03:44 PM
Last Post: sniper coder