Jump to content

Recommended Posts

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.
 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



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.