Wireshark-dev: Re: [Wireshark-dev] Re : Re: SMTP : Copying Data into a file

From: "goitom kahsay" <goitom.mit2@xxxxxxxxx>
Date: Sat, 10 May 2008 16:25:36 +0300
Hi Sevastien Tandel,
Thank you for ur help.
I read the README.developer and it is very important. But i have difficulty  on gathering the SMTP data  or (Extracting the values From,To,Subject,Date ) from the SMTP packet  and display these values from each packet displayed on the packet list to a new dialog.


Any idea is most appriciated .

Thankx in advance

On Thu, May 1, 2008 at 12:22 AM, Sébastien Tandel <sebastien@xxxxxxxxx> wrote:
Hi,

   I think it is reaaaally better for you to read first the doc/README.developer and others before doing what you would like.


Regards,
Sebastien Tandel

On Wed, Apr 30, 2008 at 3:54 PM, Auvray Julien <juauvray@xxxxxxxxxxx> wrote:

Hello everybody!!

I'm trying to add script to create a file in the source "epan/dissectors/packet-smtp.c" when I send a mail.

Then I have added :

FILE     *P_FICHIER;

P_FICHIER = fopen ("data2.txt", "w");

fclose(P_FICHIER);

at the beginning of the function "dissect_smtp".

And when I start wireshark and I send my mail, I have no file created. So I don't understand how function the soft.

Anybody can help. I'm a true beginner.

Thanks

Julien

 

From: "goitom kahsay" <goitom.mit2@xxxxxxxxx>
Date: Wed, 30 Apr 2008 10:23:35 +0300



Hi  Sebastien,

The SMTP dissector is defined @ 

epan/dissectors/packet-smtp.c

But can u help me any idea on how to extract the SMTP email parameters such as
From,To,subject ,date and .... from the SMTP packets

Any idea is most appriciated

10Q  in advance


On Tue, Apr 29, 2008 at 7:36 PM, Sébastien Tandel <sebastien@xxxxxxxxx> wrote:

Hi Julien,

 

I have to copy all the data transferred into a mail (SMTP) into a file. I don't think I have to implement a new dissector because SMTP one already exist, no?

Right.

 

So I think I have to complete the existing one and add a method to create a file and copy the data in. Am I in the right way to do that job?

The basic idea is for sure correct. I think you must at least add the TCP reassembly stuffs to be able to guarantee that you're playing with the entire mail and the export object GUI Feature to save to a file (the mail or its attachments). You can take a look at epan/dissectors/packet-http.c to see how to do this.

 

 So where is defined smtp dissector?

epan/dissectors/packet-smtp.c 

 

 

 

Regards,

Sebastien


_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx




--
Benice2all


_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx


_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev




--
Benice2all