Jump to content
  • 0

Problem with vb.net


ѕeмa™

Question

Hi, i try to change the keys (LZO and XTEA) from FileArchiver_EterPack tim archiver with vb.net

Visual Studio 2010 Express.

04511-24175acd-fd34-45b7-95d6-b28d19d4aa

Anyone know how can modified?

I try with .Replace, read the archive in bytes, and then write in hex, but when i try to search the keys in hex i dont find it.

    Private Function Bytes_To_String2(ByVal bytes_Input As Byte()) As String
        Dim strTemp As New StringBuilder(bytes_Input.Length * 2)
        For Each b As Byte In bytes_Input
            strTemp.Append(Conversion.Hex()
        Next
        Return strTemp.ToString()
    End Function
    Sub test()
        Dim value As Byte() = My.Computer.FileSystem.ReadAllBytes(App_Path() + "System/FileArchiver_EterPack.exe")
        Dim sema As String
        sema = Bytes_To_String2(value)


        My.Computer.FileSystem.WriteAllText(
        "test.txt", sema, True)
        My.Computer.FileSystem.WriteAllBytes(
        "test2.txt", value, True)
 

And here an example of what I want to do
 

    Sub test()
        Dim value As Byte() = My.Computer.FileSystem.ReadAllBytes(App_Path() + "System/FileArchiver_EterPack.exe")


        My.Computer.FileSystem.WriteAllBytes(
        "test2.txt", value.replace("OLD LZO KEY HERE","NEW LZO KEY HERE", True) ' But here i can't put a replace in byte .
 

Anyone can help me? Thanks.

Sorry my bad english.
 

Link to comment
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.