![]() |
|
[.NET] modify to string in compiled application(c#) - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] modify to string in compiled application(c#) (/showthread.php?tid=6089461) |
modify to string in compiled application(c#) - sara_221540 - Jun 22, 2020 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 RE: modify to string in compiled application(c#) - sh@rp - Jun 22, 2020 Hi, Try dnlib, it's open source. ++ RE: modify to string in compiled application(c#) - Accord - Jun 22, 2020 dnlib or mono.cecil is the only library i know that can do those jobs, maybe other member can recommend more RE: modify to string in compiled application(c#) - sara_221540 - Jun 22, 2020 (Jun 22, 2020 02:59 PM)sh@rp Wrote: Hi, 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 RE: modify to string in compiled application(c#) - Dredd - Jun 23, 2020 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. RE: modify to string in compiled application(c#) - Sinistros - Jun 24, 2020 (Jun 22, 2020 05:58 PM)sara_221540 Wrote: thanks 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. |