![]() |
|
[.NET] Store some strings in a vb.net executable? - 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] Store some strings in a vb.net executable? (/showthread.php?tid=4440445) |
Store some strings in a vb.net executable? - Jon Snow - Sep 10, 2014 I need to store around 2 20-character strings in order to be used within the file. I have a stub (that's how you call it) and a builder. The stub is already compiled. When I run the builder I have to add 2 strings somewhere in the executable. Adding the strings to the end of file is not an option. Thank you. * - +Haze - Sep 10, 2014 Uhm. Use My.Settings then? I think that'd work. * - Jon Snow - Sep 10, 2014 (Sep 10, 2014 10:03 AM)+Haze Wrote: Uhm. Use My.Settings then? Those strings should be accessed on other computers as well. My.Settings stuff is saved locally. * - Marwix - Sep 10, 2014 Could you be more precise? It would help if you could post some of your code. * - +Haze - Sep 10, 2014 Oh in that case add it to like %appdata% or use registry. * - Ashlanfox - Sep 10, 2014 (Sep 10, 2014 10:10 AM)+Haze Wrote: Oh in that case add it to like %appdata% or use registry. He wants to save data in his executable (not on the computer), if I understood well * - LordCoder - Sep 10, 2014 You cannot write on your own executable while it's being executed. What you can do is copy the same executable to any other name (let's say "yourapp_stub.exe") and then apply any method from my builder/stub thread: https://hackforums.net/showthread.php?tid=4296725 * - Cornflower Blue இڿڰۣ-ڰۣ— - Sep 11, 2014 Instead of using EOF, look into the PE file format, there are some gaps where you can save data and not fuck up the file itself. * - jessman420 - Sep 11, 2014 Nathan72389 made a method called Byte Patching that you could use. |