Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Clone Mac
- # by Rodrigo Fuenzalida
- # mail: [email protected]
- #
- # parametro $1 = interfaz de red
- # parametro $2 = mac a clonar
- echo "Cambiando Mac"
- ifconfig $1 down
- sleep 2
- ifconfig $1 hw ether $2
- sleep 2
- ifconfig $1 up
- echo "Mac Cambiada"
- echo "Renovando ip"
- /etc/init.d/networking restart
- sleep 1
- ifconfig $1
Advertisement
Add Comment
Please, Sign In to add comment