#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
maybe you need disasmble .net code using some tools like reflector or ildasm ..., then you can modify the disasmbled codes and recompile it.
|
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
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. |
The Following User Gave Reputation+1 to For This Useful Post: | ||
#5
|
||||
|
||||
do you need a loader? or want a tool made in .net that patch an file ?
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is editing a driver's *.inf possible? | Kerlingen | General Discussion | 12 | 02-28-2018 17:29 |
editing Debug Information Directory in a PE file | jonwil | General Discussion | 6 | 01-15-2005 06:18 |
Editing a .key file? | peedizzle | General Discussion | 1 | 09-09-2004 00:49 |