hi again! I've got a little question about disassembly ! How do I write a C programm that can disassemble another programm ?
hi again! I've got a little question about disassembly ! How do I write a C programm that can disassemble another programm ?
i know that i have to do this first! I am doing this on the other hand...
My question is how to disasm in C , not what i have to need to know...
but thank you for your reply! I want to know if there is a special file descriptor or a function like fread()/fgets() to read executables and put the disassembled code into a char array ! this it is!
I am using Linux and gcc !
thx !!! The question was 'is there a function' ;-) !! So I can't write (silly example
or something like it ... THX for the ELF-manual ! I WERE looking for something like this ...Code:FILE *filer; char array[100]; disasm(array, sizeof(array),filer);
greets, a happy programming demonus!