Tags » Mac Address

A few secrets you should know to avoid hackers

You’re using a wireless access point that has encryption so you’re safe, right? Wrong! Hackers want you to believe that you are protected so you will remain vulnerable to their attacks. 580 more words

Guide

TCP IP Protocol Stack and MAC Addresses

A MAC (Media Access Control) address is simply another kind of identification (like an IP address) assigned to every single device that connects to a network. 107 more words

Website Production

Why using mac address is horrible for web application security

There are plenty of reasons, but I have decided to just focus on the top items.

  1. Mac Addresses are not unique. That is, they may be unique within a manufacturer’s production environment, but devices that have them can also have them overwritten.
  2. 182 more words
Brian's Code Extreme

MAC Address

¿Que es la MAC Address?

La dirección MAC (Media Access Control) es una dirección física también conocida como (“dirección de hardware”, “MAC” ,”dirección física” o simplemente “dirección Ethernet”), que identifica físicamente a un elemento de hardware (interfaces de redes) son impresar directamente en su momento de fabricación. 615 more words

Tecnología

show mac-address-table

This command does just what it says, it shows you the MAC address table that the switch has built. 51 more words

Switching

C Code to get MAC Address and IP Address

Function in C to return the MAC Address:

/* Returns the MAC Address
   Params: int iNetType - 0: ethernet, 1: Wifi
           char chMAC[6] - MAC Address in binary format
   Returns: 0: success
           -1: Failure
    */
int getMACAddress(int iNetType, char chMAC[6]) {
  struct ifreq ifr;
  int sock;
  char *ifname=NULL;

  if (!iNetType) {
    ifname="eth0"; /* Ethernet */
  } else {
    ifname="wlan0"; /* Wifi */
  }
  sock=socket(AF_INET,SOCK_DGRAM,0);
  strcpy( ifr.ifr_name, ifname );
  ifr.ifr_addr.sa_family = AF_INET;
  if (ioctl( sock, SIOCGIFHWADDR, &ifr ) < 0) {
    return -1;
  }
  memcpy(chMAC, ifr.ifr_hwaddr.sa_data, 6)
  close(sock);
  return 0;
} 89 more words
Tips

Brian Dead Rift Webb reblogged this on Brian By Experience and commented:

This is cool. But then the author has plenty of solid information on his blog.