I need to know if there is anyway to redirect some data of a system call (like for copy_file() with parameters such as old path, new path, etc.) to a log file for each and every time that function will be invoked.
Asked
Active
Viewed 3,004 times
4
-
2Which operating system is this for? – Don Cruickshank Mar 14 '13 at 11:29
-
for windows platform ,32 bits – Himanshu Baunthiyal Mar 14 '13 at 14:33
-
Possible duplicate of [Monitoring certain system calls done by a process in Windows](http://stackoverflow.com/questions/864839/monitoring-certain-system-calls-done-by-a-process-in-windows) – user Apr 19 '16 at 10:20
2 Answers
1
https://github.com/timdiels/sysintercept
"sysintercept allows you to intercept and modify win32 system calls done by a process. sysintercept provides a CLI. Aim is to allow rewriting paths, translating keyboard input, ... various things for improved compatibility."
If you want to know how to intercept system calls yourself programmatically, you can inspect the source code.

herman
- 11,740
- 5
- 47
- 58
0
For Windows, there is Process Monitor (ProcMon) tool which logs system calls such as File I/O.
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

Don Cruickshank
- 5,641
- 6
- 48
- 48
-
i am concern with the mechanism behind logging the system call,what i willing to know is that how the above or http://www.trisunsoft.com/windows-explorer-tracker/ , or any other software is working,how these software providing the logs.there must be some kind of coding which enables the software to interrupt the system calls when they have being called and then redirecting data from the same call to a log file. – Himanshu Baunthiyal Mar 14 '13 at 16:33
-
@HimanshuBaunthiyal: That program works by installing a filesystem filter driver and watching file operations. It doesn't intercept syscalls. – SecurityMatt Mar 16 '13 at 18:42