Ethereal-users: [Ethereal-users] ftp-data

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Giorgio Mulas" <giorgio.mulas@xxxxxxxxxx>
Date: Mon, 3 Nov 2003 13:47:33 +0100

Hi everybody,

I performed the following experiment:

3 pc in wi-fi ad hoc mode: two of them exchange an mp3 in ftp binary mode, the third is sniffing (tethereal).

 

Then I apply the filter ftp-data and save the packets. I think the packets are now in ASCII.

I convert the saved ASCII packets in binary with the following c++ program:

 

            ifstream fin("ftpsaved");

            ofstream fout("binary.mp3",ios::binary);

            char b;

            long i=0;

            while(!fin.eof())

            {

                        fin.read(&b,sizeof(char));

                        cout << fin.tellg() << endl;

                        fout.write(&b,sizeof(char));

            }

            fin.close();

            fout.close();

 

now I can play the mp3, see its idtag….but the mp3 is damaged!

Any ideas about the problem?

 

Thanx

 

Giorgio.