Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   making patch hex editing in .net (https://forum.exetools.com/showthread.php?t=16372)

js78955 12-11-2014 01:08

making patch hex editing in .net
 
Hi Guys
I searched a lot and asked for code as well but did not got the clear answer the one I'm looking for and almost every forum says dont ask about it,it is regarding our policy and no one is helping me.

I want to edit the hex of the file and insert bytes in a .exe file
like DUP2 does but want to make program in vb.net

For example

Code:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

Here i need the code that once i click button1 it search the code and replace it like example ("C:\testcrack.exe")

End Sub

so that when I click button1 it searches hex like 12 23 34 45 56 67 78 and modify it to 00 00 00 00 10 00 01

please help me i have wasted my one week and what i try never works like binary writer if any master here could help me with the code i would be so happy :)

fqjp 12-18-2014 08:44

maybe you need disasmble .net code using some tools like reflector or ildasm ..., then you can modify the disasmbled codes and recompile it.

js78955 12-18-2014 21:08

No i can do that im asking like i want to replace hex from a patch made in vb.net

lordcoder knows .net very best i know he made a tool for team rept before in which he made it hex editing patch and the tool was written in vb.net

i can change manually no problem but i want to change it through a program :)

bsvo2786 01-20-2015 23:28

You can try this approach, easy approach:

1. Read the file using FileStream into a byte array.
2. Then use a loop to iterate through out the array searching for the pattern
Try googling or see this http://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string_search_algorithm

3. Then replace the bytes of the array and save it.

niculaita 01-21-2015 04:26

do you need a loader? or want a tool made in .net that patch an file ?


All times are GMT +8. The time now is 12:39.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX