Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- CURRENT=`ifconfig en1 | grep ether | cut -c8-24`
- RANDOM=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`
- echo "Current MAC Adress : $CURRENT"
- echo "Random MAC Adress : $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')"
- printf "Continue Y/N? "; read res
- if [[($res == "Y")]]; then
- sudo ifconfig en1 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
- else
- echo "quitting..."
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement