Hi everyone, I am a new user of wireshark. I want to know that how can i capture packets from a remote computer using commands from my command prompt. I am using windows xp 32-bit and the latest version of wireshark. Please mention the solution for both of windows and linux environment running on the remote computer. Thanks. asked 26 Jul '12, 03:09 baila |
One Answer:
this has been already answered: http://ask.wireshark.org/questions/12835/how-to-use-dumpcap-to-monitor-winpcap-on-a-remote-machine Additionally you need to start the remote capture daemon, rpcapd: http://www.winpcap.org/docs/docs_40_2/html/group__remote.html Regards answered 26 Jul '12, 08:36 Kurt Knochner ♦ showing 5 of 17 show 12 more comments |
Thanks a lot. It really works. I found some posts regarding the remote packet capturing but those are by using the GUI of the wireshark, so i asked again for it.
This post is really helpful and works properly. Thanks Kurt. Thanks Wireshark. Happy Sniffing!!
The previous part works successfully. but how i know the interface name of a remote computer? Please help!
excute this command on the host that runs rpcapd:
It works. But it gives the Host interface names. How do I know the Remote interface id from Host machine?
Thanks.
The prescribed command shows the output like:
Here 192.168.0.60 is the ip of Host machine.
good, then use one of the interfaces with dumpcap.
Can anyone help me out!!
I need it badly!!
what is missing? Is there any problem with my dumpcap cli example?
ooh,sorry,i missed the "show all" tab.
my question is, Is there any way to get the interface ID of the REMOTE machine from my LOCAL machine, using command prompt?
I don't think that's possible. Why do you need that feature?
actually i want to do all the jobs from command prompt. In case of Remote capturing, the GUI of wireshark provides the details of the remote interfaces after entering the information about the remote machine, like ip,port no, username, password etc.
Can we get the same from command prompt, without using the GUI?
it looks like the feature to retrieve the remote interface list is only implemented in Wireshark and not in tshark/dumpcap.
So, can "wireshark" command provide the Remote interface list ? So that we can apply dumpcap by using any of the interface from that list!
I don't think so, as the code to get the interface list is only executed in the GUI dialog.
That means we can't get the remote interface list without using the GUI of Wireshark?
yes.
However, you can write your own tool or extend dumpcap/tshark to do it. The code is there in the GUI dialog. Go ahead ;-)
Well, that is what i was thinking about!! :-)