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. |
- Re: [Ethereal-users] ftp-data Giorgio Mulas
- Re: [Ethereal-users] ftp-data Guy Harris