Skip to content

Instantly share code, notes, and snippets.

View shirleyquirk's full-sized avatar

shirleyquirk

View GitHub Profile
@shirleyquirk
shirleyquirk / mac_change.c
Last active February 17, 2023 13:19 — forked from mad4j/mac_change.c
How to change MAC using ioctl
#include <string.h>
#include <sys/ioctl.h>
#include <assert.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_arp.h>
#include <net/if.h>
#define EXIT_SUCCESS 0