Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #! /bin/bash
  2. CURRENT=`ifconfig en1 | grep ether | cut -c8-24`
  3. RANDOM=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`
  4. echo "Current MAC Adress : $CURRENT"
  5. echo "Random MAC Adress : $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')"
  6. printf "Continue Y/N? "; read res
  7. if [[($res == "Y")]]; then
  8. sudo ifconfig en1 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
  9. else
  10. echo "quitting..."
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement