Skip to content

Instantly share code, notes, and snippets.

View anton-khodak's full-sized avatar

Anton Khodak anton-khodak

  • NewStore
  • Berlin, Germany
View GitHub Profile
import json
import socket
import netifaces
import requests
interfaces = netifaces.interfaces()
mac_adresses = []
for interface in interfaces:
for i in list(netifaces.ifaddresses(interface).values()):