Skip to content

holasoftware/py_mac_changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Mac changer in pure python without using ifconfig, using ioctl system call. Setting the hardware address is a privileged operation. To execute this utility you will need sudo privilegies or to be root.

To change to a random mac address just use:

    sudo python3 py_mac_changer.py <interface_name>

To set a specific mac address:

    sudo python3 py_mac_changer.py <interface_name> -mac <mac_address>

To list the names of your device interfaces:

    ip link show

Stop your network manager:

    sudo service network-manager stop

or disconnect from your network device before changing the mac address.

To start again the service:

    sudo service network-manager start

About

Mac changer in python using ioctl system call.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages