Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2014, 01:08
js78955
 
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

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
Reply With Quote
  #2  
Old 12-18-2014, 08:44
fqjp fqjp is offline
Friend
 
Join Date: Apr 2011
Posts: 43
Rept. Given: 1
Rept. Rcvd 2 Times in 1 Post
Thanks Given: 2
Thanks Rcvd at 34 Times in 18 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
  #3  
Old 12-18-2014, 21:08
js78955
 
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
  #4  
Old 01-20-2015, 23:28
bsvo2786
 
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:
  #5  
Old 01-21-2015, 04:26
niculaita's Avatar
niculaita niculaita is offline
Family
 
Join Date: Jun 2011
Location: here
Posts: 1,344
Rept. Given: 948
Rept. Rcvd 89 Times in 61 Posts
Thanks Given: 4,333
Thanks Rcvd at 479 Times in 338 Posts
niculaita Reputation: 89
do you need a loader? or want a tool made in .net that patch an file ?
Reply With Quote
Reply

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 22:35.


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