Skip to content

Instantly share code, notes, and snippets.

@m3philis
m3philis / macspoofer.sh
Created December 24, 2017 16:21
Little script to change the mac address of an interface
#!/bin/bash
CLIENTMAC=$(od -vN "3" -An -tx1 /dev/urandom | tr " " ":")
VENDORMAC=$(ip addr show dev $1 | grep link/ether | awk -F"[ :]" '{ print $6":"$7":"$8 }')
echo "New MAC for $1: ${VENDORMAC}:${CLIENTMAC}"
ip link set dev $1 down
ip link set dev $1 address "${VENDORMAC}${CLIENTMAC}"
ip link set dev $1 up

Keybase proof

I hereby claim:

  • I am m3philis on github.
  • I am m3philis (https://keybase.io/m3philis) on keybase.
  • I have a public key ASDjO7kUM4h_RDBh6-wg0XMw06Cx2oWmylF2dIUktztYfAo

To claim this, I am signing this object:

@m3philis
m3philis / Konachan-Downloader_v3.py
Last active August 4, 2019 16:06
Little downloader for konachan.com. You can download every image of that site or set tags to download just pics with that tags. I appreciate ideas and bug reports :)
#! /usr/bin/python
from __future__ import print_function
import re
import os
import os.path
import sys
import http.client
import urllib.request