Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Systrace for Windows

Tags:

windows

strace

I'm looking for a Windows equivalent of Systrace or at least strace. I'm aware of StraceNT, but wondering if there are any more alternatives out there. Specifically, I'm looking for a specific way to programmatically enforce system call policies, though this can be after the fact rather than actively stopping them.

Is there a good way to do this currently?

like image 794
Bryan Avatar asked Oct 02 '10 22:10

Bryan


People also ask

How can I trace a Windows system call?

On Windows, you can use Process Monitor to monitor process activity (I/O and registry). I guess this fits your need if you don't really want to know the system calls. And you can use winapioverride32 to monitor API calls.

How can I trace system calls?

Trace Linux Command System Calls You can simply run a command with strace like this, here we are tracing of all system calls made by the df command. $ strace df -h execve("/bin/df", ["df", "-h"], [/* 50 vars */]) = 0 brk(NULL) = 0x136e000 access("/etc/ld.

What does Strace do in Linux?

strace is a diagnostic tool in Linux. It intercepts and records any syscalls made by a command. Additionally, it also records any Linux signal sent to the process.


2 Answers

A few options:

Process Monitor

Also, see this article about tools built into Windows 7:

Core OS Tools

like image 181
djhaskin987 Avatar answered Sep 22 '22 18:09

djhaskin987


WinDbg's Logger.exe is the closest to strace: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/logger-and-logviewer

EDIT: There's also windbg's wt: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/wt--trace-and-watch-data-

like image 43
Bruno Martinez Avatar answered Sep 21 '22 18:09

Bruno Martinez