mac 226 B

123456789101112131415
  1. #!/bin/bash
  2. interface='eth0'
  3. # Down
  4. ifconfig "$interface" down hw ether \
  5. $((RANDOM % 100)):$((RANDOM % 100)): \
  6. $((RANDOM % 100)):$((RANDOM % 100)): \
  7. $((RANDOM % 100)):$((RANDOM % 100))
  8. # Up
  9. ifconfig "$interface" up