Find and replace byte in exe files (find byte on the basis of it's offset)
Hi.. gurus..
I've some work 4 u...
i'm trying to find a hex value in a exe file... i have the offset value of that byte.. i want to find that hex value by using the offset value for that byte..
how can i do taht ?????
Well, if I remember random access, you could use that with the put statement (if I remember that correctly). Seeing as your editing hex values in an executable, I think you'll be able to use it
The time you enjoy wasting is not wasted time. Bertrand Russell
but how can i find that character using it's offset value
I just ve the offset value of the character i want to replace.
Suppose i want to find the (hex Value) 74 26 from whatever.exe and i only know it's offset (:40AB7B). then how can i find 74 26 by using it's Offset :40AB7A from the exe file....
But this code dosen't work....!! i tried it on my file. when i search on that (offset) address through Vb it shows diffrent byte but if i open that file in hex editor then the value 74 26 is on that address.... if u 've another way then plz suggest me... if u've any ASM code then also it will helpful to me....
All I did was copy DiGiTaIErRoR's code and replace 'file' with some text file I had sitting around, and incremented the offset by one (Val(whatever the hex offset was) + 1)
The time you enjoy wasting is not wasted time. Bertrand Russell
Ok..... and how can i do that ???. I got that offset from hexeditor and debugger. both shows same offset for that byte. and one more thing ... What is the base load address and how can i substract base load address ? plz explain with example if possible....