LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tcpdump/ngrep sniff packet network command lines (https://www.linuxquestions.org/questions/linux-newbie-8/tcpdump-ngrep-sniff-packet-network-command-lines-887625/)

Tonyyyp 06-21-2011 07:08 PM

Tcpdump/ngrep sniff packet network command lines
 
Hello everyone,
I would like to know the command lines for;
-detecting the wifi in my house without being connected to it
-getting ips/macaddress from the people connected to the wifi

acid_kewpie 06-22-2011 01:42 PM

You can't, that's not what the tools are for. libpcap based programs watch actual network traffic, not wireless radio data. You can't detect wifi with them. In terms of getting macs and the likes then if you have a system on the same network then you can just watch the netwrok traffic and see the mac addresses of any traffic addressed to you but on wifi, like a switch (as opposed to a hub) you will only see the traffic addressed to you / from you, not other users doing other things.

dugan 06-22-2011 01:53 PM

Quote:

Originally Posted by Tonyyyp (Post 4392234)
I would like to know the command lines for;
-detecting the wifi in my house without being connected to it

If I read the question the way it's written, the answer is:

Code:

iwlist scan
Seriously, though, I know what you mean. Look into Kismet.


All times are GMT -5. The time now is 12:39 PM.