Search and replace string in executable files
Hello, i whish to write e little program that allow me to search a string in an executable file.
I though something like that:
myprog file_name string_to_search string_to_replace
Obviosly the two strings has the same length.
Some one can give me some hint on how to search a text string in an executable file??
I tried to open it as a binary file but my purpose is to get a bit sequency (0 and 1), cause i just find out the way to transform a string in a bitstream.
Regards
|