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

.NET 

Store some strings in a vb.net executable?

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.
Uhm. Use My.Settings then?
I think that'd work.
(Sep 10, 2014 10:03 AM)+Haze Wrote:  Uhm. Use My.Settings then?
I think that'd work.

Those strings should be accessed on other computers as well.
My.Settings stuff is saved locally.
Could you be more precise?

It would help if you could post some of your code.
Oh in that case add it to like %appdata% or use registry.
(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
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
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.
Nathan72389 made a method called Byte Patching that you could use.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by pro_fesnoobSep 24, 2022 04:24 PM 14 797 Sep 24, 2022 04:24 PM
Last Post: BinaryFox
[C] by oh9odDec 7, 2020 04:55 AM 0 174 Dec 7, 2020 04:55 AM
Last Post: oh9od
[C#] by .BuxOct 10, 2016 10:56 AM 7 271 Oct 10, 2016 10:56 AM
Last Post: Ninja