LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2012, 03:22 AM   #1
lisacs
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Unhappy finding MAC addresses without packet sniffing


I want to find the MAC addresses of new members ...Presently...I am trying to keep track by sniffing packets initially using Sockets API...storing the addresses in a linked list and whenever a new address is found I store it in another linked list.
Is there any built in function or better procedure to find the MAC addresses??
Thanks in advance.....
 
Old 03-31-2012, 03:29 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
What is wrong with your approach? I think there is only method of getting MACs, by sniffing, or by inspecting broadcasted packets (but not everyone send it). Anyway there is a simple tool "arpwatch", which trace used MACs and IPs. Maybe look at it source.
 
Old 03-31-2012, 04:13 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Another way would be to ping (or otherwise make a network connection to) the device and harvest the MAC address from the ARP cache.
 
Old 03-31-2012, 05:03 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Use your router. Arp may work.

Where are these members coming from anyway?

They could be in stealth mode too and I doubt any tool would recover the mac address. Physical access would be required.
 
Old 03-31-2012, 05:37 PM   #5
sternone
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware
Posts: 24

Rep: Reputation: 3
You are not getting the users MAC address, those datapackets your packet sniffer is sniffing aren't the users MAC address's imho if you are talking about a website.

If you are talking about some new members surfing your wireless internet you could, please elaborate.

Last edited by sternone; 03-31-2012 at 05:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Sniffing arijitnit06 Linux - Networking 1 01-14-2009 06:44 AM
packet sniffing inaki Linux - Security 2 06-26-2007 08:05 AM
Packet sniffing question. _TK_ Linux - Security 6 09-04-2003 09:14 AM
url packet sniffing? nibjb Linux - Networking 1 09-01-2003 09:34 PM
Finding mac addresses Chijtska Linux - Security 5 02-27-2002 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration