Hi all, I am trying to gather hosts information by using Tshark under Linux. My linux distro (Kali) is under VirtualBox, my computer is running Windows 7. By reading wireshark book (second edition) I've found this command: After waiting a couples of minutes, hostsinfos.txt file is totally empty. Any idea? Thanks in adavance for your help. Olivier asked 22 Apr '14, 05:08 Olivier edited 22 Apr '14, 05:10 |
One Answer:
well, interface 1 is probably lo0 (the loopback interface) in your VM. Please run tshark with the name of the interface (eth0,eth1, etc.) you want to capture on
or figure out the interface number with dumpcap
Regards answered 22 Apr '14, 05:43 Kurt Knochner ♦ showing 5 of 6 show 1 more comments |
Hi Kurt,
Thanks for your feedback.
no I also used tshark -i eth0.
my first network interface is well eth0.
lo (Loopback)
dumpcap -D -M provides the same information
Regards,
Olivier
O.K. so, eth0 is indeed interface number 1.
So, what do you see, if you run the following command
If I enter tshark -i eth0, I can see traffic (gateway, etc....) . So that's why I am so amazed. My VM is setup in bridged adapter.
Do you think I should wait for a very long time to be able to gather hosts?
Can an IPS prevent gathering hosts info?
No, it works within a few seconds on my Ubuntu test system.
Please run the following command for a few seconds in one window
Then in a second window ping some servers on the internet (www.google.com, ask.wireshark.org, etc.).
After that, stop tshark with CTRL-C and post all messages printed by tshark here.
BTW: Are you able to do DNS resolving in your VM?
Kurt, I did what you said
I didn’t configure DNS resolving in my VM. I am using demo.local domain.
Well, tshark prints the hosts output, as you can see.
So, what exactly does not work?
Did you check the file content while tshark was running?
If so, you’ll have to end tshark to get the results, either on the console or in the file!