Go Back   Exetools > General > General Discussion


Thread Tools Display Modes
Old 12-11-2014, 01:08
Posts: n/a
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


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
Reply With Quote
Old 12-18-2014, 08:44
fqjp fqjp is offline
Join Date: Apr 2011
Posts: 33
Rept. Given: 1
Rept. Rcvd 2 Times in 1 Post
Thanks Given: 0
Thanks Rcvd at 26 Times in 14 Posts
fqjp Reputation: 2
maybe you need disasmble .net code using some tools like reflector or ildasm ..., then you can modify the disasmbled codes and recompile it.
Reply With Quote
Old 12-18-2014, 21:08
Posts: n/a
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
Reply With Quote
Old 01-20-2015, 23:28
Posts: n/a
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.
Reply With Quote
The Following User Gave Reputation+1 to For This Useful Post:
Old 01-21-2015, 04:26
niculaita's Avatar
niculaita niculaita is offline
Join Date: Jun 2011
Location: here
Posts: 1,275
Rept. Given: 921
Rept. Rcvd 87 Times in 59 Posts
Thanks Given: 3,478
Thanks Rcvd at 469 Times in 330 Posts
niculaita Reputation: 87
do you need a loader? or want a tool made in .net that patch an file ?
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

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

All times are GMT +8. The time now is 16:03.

Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX
( 1998 - 2021 )