Ask Your Question

sina's profile - activity

2022-07-14 19:33:20 +0000 received badge  Famous Question (source)
2021-08-07 02:52:59 +0000 received badge  Notable Question (source)
2021-06-27 02:38:36 +0000 received badge  Popular Question (source)
2020-07-14 05:56:50 +0000 commented answer Tshark filter IP and Port + save in pcapng format

Thank you. My filter problem solved with your answer. also saving problem wasn't from tshark. The main Script Changed Di

2020-07-14 05:52:02 +0000 marked best answer Tshark filter IP and Port + save in pcapng format

Hello I've to Write a simple script for sniffing packet exchange between a server (windows server) and a camera. I just offered them to use wireshark. But my customer insist to use script. so i wrote a batch file and it supposed to work with tshark. but it doesn't work correctly. here is my script:

tshark -D
set /p interface="Select The Interface: "
set /p IP="Type Camera IP Address: "
set /p Port="Type Camera Port Number: "
tshark -p -n -i %interface% -a duration:100  -Y "ip.dst==%IP% && (tcp.dstport==%Port% || udp.dstport==%Port%)"  -w test.pcapng

I know the filters I'm using are display filters. but even without them I can not save in pcapng Format. also I tried tried -F pcapng and Script is running with administrator privileges . but it's not working. can anybody help me to fix this?! I apologize, my question is elementary but: How can I filter IP and Port in tshark, and save it to a pcapng file!? Conider i'm using it in windows. Any help is valuable for me.

2020-07-14 05:52:02 +0000 received badge  Scholar (source)
2020-07-13 10:13:12 +0000 commented question Tshark filter IP and Port + save in pcapng format

thanks grahamb. when I run above command, I get this: "tshark: Display filters aren't supported when capturing and savin

2020-07-13 10:09:31 +0000 commented question Tshark filter IP and Port + save in pcapng format

thanks grahamb. when I run above command, I get this: "tshark: Display filters aren't supported when capturing and savin

2020-07-13 07:14:14 +0000 received badge  Editor (source)
2020-07-13 07:14:14 +0000 edited question Tshark filter IP and Port + save in pcapng format

Tshark filter IP and Port + save in pcapng format Hello I've to Write a simple script for sniffing packet exchange betwe

2020-07-13 07:10:38 +0000 asked a question Tshark filter IP and Port + save in pcapng format

Tshark filter IP and Port + save in pcapng format Hello I've to Write a simple script for sniffing packet exchange betwe

2020-07-13 07:08:25 +0000 asked a question tshark filter ip and port + save to pcapng file

tshark filter ip and port + save to pcapng file Hello I've to Write a simple script for sniffing packet exchange between