PDA

View Full Version : dump file


deli
July 24th, 2004, 09:45
hi
i try to get in touch with the olly api.
therefore i try to code a plugin which works like the code pervertor made by z0mbie.this tool changes the syntax of a assembler commands but not the meaning.for example ( xor eax,eax -> sub eax,eax)

but my problem is how can i save/dumb a changed file?

first i use the section ->exe save option of olly , but if olly saves the exe it don't saves the changes , why this ??? is there any option to
flush a buffer , so olly can recognize the changes ??

i also use ollydbg, but the problem is that 60% percent of the times the files are currupted.....


thanks for help

deli
July 27th, 2004, 07:31
is this question too stupid, or is it not understandable???

i hope anybody can help

best regards

Scarabee
July 27th, 2004, 08:11
Not sure exactly what you mean, but:

After your changes, rightclick mousebutton and select COPY TO EXECUTABLE -> ALL MODIFICATIONS then select COPY ALL.

On the window that pops up, again press right mousebutton and select SAVE FILE.

Hope this is what you were looking for.

deli
July 27th, 2004, 09:14
thanks for help.
i tried of course the "COPY TO EXECUTABLE" feature from olly, but this is my problem.

if i change code by "hand" and select COPY TO EXECUTABLE i can save it without a problem.

but if my plugin
calls
readmemory()
then do some changes in the code
and then i call writememory() to write the changes back

then i see in the cpu windows all changes but they are not highlighted, as whenn i change it manually , and when i
select COPY TO EXECUTABLE -> ALL MODIFICATIONS
the only option is SECTION.

whenn i choose this olly tells me , "do you really want save a unchanged file bla bla" i click yes.
and as you can guess no modifications are saved by olly.

why ??

must i call another api than readmemory() writememory() ??

thanks for help