본문 바로가기

OS/Linux

windows 원격 linux wireshark 캡쳐 pcap

plink 로 실행시 에러 발생.

unrecognized libpcap format or not libpcap data

Data written to the pipe is neither in a supported pcap format nor in pcapng format.

 

please report this to the developers of the program writing to the pipe.

 

plink 최신 버전으로 사용하니 안되여서 기존 버전으로 하니 정상동작 확인.

 

plink.exe
0.52MB

 

plink -ssh 아이디@서버아이피 -P 포트 -pw 비번 "tcpdump -i any -w - " | "C:\Program Files\Wireshark\wireshark.exe" -k -i -

 

아래 최신버전에서는 -ssh 옵션이 빠진것으로 판단됨.

plink root@{IP} -P {Port} -pw {PassWord} "tcpdump -i any -w - " | "C:\Program Files\Wireshark\wireshark.exe" -k -i -