Skip to content

Instantly share code, notes, and snippets.

View chadmiller's full-sized avatar

Chad chadmiller

View GitHub Profile
kill -KILL $$
set -n
coffee | nose > keyboard
@chadmiller
chadmiller / getnifs.py
Last active February 26, 2022 17:00 — forked from provegard/getnifs.py
#!/usr/bin/python
# Based on https://gist.github.com/provegard/1536682, which was
# Based on getifaddrs.py from pydlnadms [http://code.google.com/p/pydlnadms/].
# Only tested on Linux!
from socket import AF_INET, AF_INET6, inet_ntop
from ctypes import (
Structure, Union, POINTER,
pointer, get_errno, cast,