macmon is a simple tool to get and change MAC address and mode of any adapter in linux.
#!/bin/bash
git clone https://github.com/jarvis-1805/macmon.git
cd macmon
sudo ./macmon.sh
Before executing macmon.sh
provide relevant permissions:
#!/bin/bash
chmod +x macmon.sh
- To get MAC Address
#!/bin/bash
> macmon --interface [interface name] --getMAC
- To change MAC Address
#!/bin/bash
> macmon --interface [interface name] --changeMAC [new MAC]
- To get MODE
#!/bin/bash
> macmon --interface [interface name] --getMODE
- To change MODE
#!/bin/bash
> macmon --interface [interface name] --changeMODE [new MODE]
- To EXIT
#!/bin/bash
> macmon exit
Note: Commands can also be given simultaneously:
- To get and change MAC Address
#!/bin/bash
> macmon --interface [interface name] --getMAC --changeMAC [new MAC]
- To get and change MODE
#!/bin/bash
> macmon --interface [interface name] --getMODE --changeMODE [new MODE]