scripts

random scripts
git clone https://git.parazyd.org/scripts
Log | Files | Refs

macspoof (302B)


      1 #!/bin/sh
      2 #
      3 # parazyd - (c) wtfpl 2017
      4 # spoof or restore mac
      5 
      6 case "$1" in
      7 -p)
      8 	sup net "$2" stop
      9 	sudo macchanger -A "$2"
     10 	sup net "$2" start
     11 	;;
     12 -r)
     13 	sup net "$2" stop
     14 	sudo macchanger -p "$2"
     15 	sup net "$2" start
     16 	;;
     17 *)
     18 	printf "usage: %s {-p [orig]|-r [random]} netdev\n" "$(basename $0)"
     19 	;;
     20 esac