I used the following code, which actually gets the contents in registers (eax, ebx, ecx) whenever an open system call is called. Now, after a big fight, I realized what the meanings of this Question are .
ebx contains a pointer to the file name. But when I try to access it, I get a segmentation error. Where am I going wrong? Access to the code can be obtained from here
source share