I would like to analyse network traffic of a system, which I don't have write access on it, so I couldn't save the tcpdump as pcap file using
How can I analyses the output. Following is the sample of output:
Edit: I find text2pacp but my text file format isn't acceptable by it. So I write the following python script to convert the format to suitable form:
As I’m new to python could someone help me to speed up the code?! You can find more efficient code here: Edit: Here is the story why I should capture in this way. I have multiple Genymotion devices on host, which is assigned static IP, So I couldn’t set network mode of the devices to bridge. Therefor all of them set to NAT mode and then get same IP but different MAC addresses. So I came up with capturing each devices traffic by running PS: Genymotion run on top of Virtualbox. asked 12 Sep ‘17, 14:07 Zahra edited 14 Sep ‘17, 14:34 |
One Answer:
I guess I still don't quite understand, but it seems that writing to
Or maybe you could use answered 14 Sep '17, 12:47 cmaynard ♦♦ Thanks, I will try it out. Unfortunately, because of some network issue my connection to host is lost. (14 Sep '17, 14:26) Zahra I get following error when I capture using the command you suggest. (16 Sep '17, 00:09) Zahra Did you capture any packets though? Did you try to open the resulting capture file? It might just be the last packet that is affected, and so it probably doesn't matter. (19 Sep '17, 07:08) cmaynard ♦♦ I capture packet, but when I try to open the file I get that error. How can I solve it? (19 Sep '17, 08:56) Zahra If it bothers you, you can probably just use (19 Sep '17, 09:12) cmaynard ♦♦ Why It happens? How can I Prevent it? (19 Sep '17, 09:48) Zahra Maybe try experimenting with
(I see now that you were already using -U, so obviously that wasn't helping.) (19 Sep '17, 09:57) cmaynard ♦♦ I didn't get what you mean by "that wasn't helping". (19 Sep '17, 10:24) Zahra I meant that the (19 Sep '17, 10:30) cmaynard ♦♦ Is it possible that capturing traffic this way result in missing packets? (08 Dec '17, 22:02) Zahra showing 5 of 10 show 5 more comments |
I don’t understand. If you’re able to create the
traffic.txt
file, you must have write access so therefore you ought to be able to create a .pcap file using the -w option. Perhaps there’s more to the story?@cmaynard I add the story behind it, do have any Idea? or other way of capturing traffic?