ѕeмa™ 308 Posted May 17, 2014 Share Posted May 17, 2014 (edited) Hi, i try to change the keys (LZO and XTEA) from FileArchiver_EterPack tim archiver with vb.net Visual Studio 2010 Express. 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 August 26, 2022 by Metin2 Dev Core X - External 2 Internal https://m2admin.net/ Link to comment Share on other sites More sharing options...
ShuzZzle 28 Posted May 17, 2014 Share Posted May 17, 2014 just use a god damn hex editor and replace the key LOL. Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted May 17, 2014 Author Share Posted May 17, 2014 Yes but i want create it in visual basic, i want learn new things https://m2admin.net/ Link to comment Share on other sites More sharing options...
Denis 1474 Posted May 17, 2014 Share Posted May 17, 2014 Convert the hex strings to normal strings and replace by this way Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now