How to create a packet sniffer with Matlab?

조회 수: 4 (최근 30일)
Ilan
Ilan 2013년 4월 11일
Hi all,
I'm a bit new with the use of Matlab for networking. I was wondering how can create passavie sniffer with Matlab. I have a Server that I want to analye using Matlab' sniffer.
I would be glad to get your help. Also, please keep in mind that I don't have much experience in Matlab so write your answer in a way I could understand.
Thankx in advance,
Ilan.
  댓글 수: 1
Udaya RONGALA
Udaya RONGALA 2013년 7월 23일
I am also having the exact same question!! Did you succed in finding a way for this problem? Thanks.

댓글을 달려면 로그인하십시오.

답변 (2개)

Jason Ross
Jason Ross 2013년 4월 11일
Why not use a tool like WireShark?
I'm not saying you couldn't build a packet sniffer in MATLAB, but if you have work to get done right now, there are tools out there already that do this already, and do it quite well.
  댓글 수: 1
Ilan
Ilan 2013년 4월 11일
i want to analyze the data in matlab and I want it to be done automatic. If you know any ways or functions that could help get started I will be glad.

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2013년 4월 11일
You cannot create a packet sniffer in MATLAB unless you call out to external routines that do all the work. Routines such as PNet, included in http://www.mathworks.com/matlabcentral/fileexchange/345-tcpudpip-toolbox-2-0-6 -- though I have not looked at that one closely enough to know whether it can be used for sniffing.
To make a sniffer, you need privileged access to the RAW socket interface; you can have a look at C code source examples for Linux over here
  댓글 수: 2
Ilan
Ilan 2013년 4월 12일
I took a look at PNet and from what I figure it's for sending/receiving data. But... all I want to do is just "listen" to a cretain port on my computer. I have no wishes to connect to a remote computer. I aslo have no need in doing anything to those packages. Do you know any external routines or functions in Matlab that could help me with that?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by