Identifying PID source of DNS request (Windows XP)

有些话、适合烂在心里 提交于 2019-12-13 14:10:18

问题


I wish to identify the process that is making DNS requests. Looking at the query gives me a clue, but doesn't help me identify the exact process.

I can see the local port number in Wireshark, but the request is too transient to be picked up by TCPView.

Is there a logging tool which will catch DNS requests and PID?


回答1:


Process Monitor from Sysinternals will give you what you want. Limit the capture to just network activity and you'll see the activity along with the PID and process name. The operation will be UDP Send and the path will read something like this: pc-host-name:port -> dns-server:domain (note ":domain" indicates port 53 for dns). The process name and pid will be on the left.

At first I was going to recommend using Netmon 3.4 (from Microsoft) as this will show the process name and pid (pid needs to be added as a column). However, this seemed to have trouble for me as most of the traffic was not tagged with with the process name/pid. I'm not sure why this was the case but it may work for you.



来源:https://stackoverflow.com/questions/10213765/identifying-pid-source-of-dns-request-windows-xp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!