Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/awkward-py/mac-changer


https://github.com/awkward-py/mac-changer

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

# MAC Changer in Linux

Using macchanger in Kali Linux is a way to change or spoof the MAC address of your network interface. MAC address is a unique identifier that is assigned to each network device, such as a wireless card or an ethernet card. Changing the MAC address can help you to avoid network tracking, bypass MAC filtering, or impersonate another device.

To use macchanger in Kali Linux, you need to follow these steps:

- First, you need to install macchanger if it is not already installed. You can do this by running the following command in a terminal:

```bash
sudo apt install macchanger
```

- Next, you need to find out the name of your network interface that you want to change the MAC address of. You can use the `ip link` command to list all the network interfaces and their current MAC addresses. For example:

```bash
ip link
```

- You will see something like this:

```bash
1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 08:00:27:9b:7f:5c brd ff:ff:ff:ff:ff:ff
3: wlan0: mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 08:00:27:9b:7f:5d brd ff:ff:ff:ff:ff:ff
```

- In this example, the network interfaces are `lo`, `eth0`, and `wlan0`. The MAC addresses are the hexadecimal numbers after `link/ether`. You can choose any interface that you want to change the MAC address of, but make sure it is not in use or connected to any network.

- Then, you need to turn off the network interface using the `ip link` command with the `set` and `down` options. For example, if you want to change the MAC address of `wlan0`, you can run:

```bash
sudo ip link set wlan0 down
```

- After that, you can use the `macchanger` command with different options to change the MAC address. For example, you can use the `-r` option to set a random MAC address, the `-m` option to set a specific MAC address, or the `-a` option to set a random MAC address of the same vendor as the original one. For example, to set a random MAC address for `wlan0`, you can run:

```bash
sudo macchanger -r wlan0
```

- You will see something like this:

```bash
Current MAC: 08:00:27:9b:7f:5d (PCS Systemtechnik GmbH)
Permanent MAC: 08:00:27:9b:7f:5d (PCS Systemtechnik GmbH)
New MAC: 00:1e:8c:2a:4a:0f (Asustek Computer)
```

- This shows the current, permanent, and new MAC addresses of the network interface. The permanent MAC address is the one that is assigned by the manufacturer and cannot be changed. The current MAC address is the one that is in use and can be changed. The new MAC address is the one that is randomly generated and assigned by macchanger.

- Finally, you need to turn on the network interface using the `ip link` command with the `set` and `up` options. For example, to turn on `wlan0`, you can run:

```bash
sudo ip link set wlan0 up
```

- You can verify that the MAC address has been changed by running the `ip link` command again or the `macchanger` command with the `-s` option. For example, to check the MAC address of `wlan0`, you can run:

```bash
macchanger -s wlan0
```

- You will see something like this:

```bash
Current MAC: 00:1e:8c:2a:4a:0f (Asustek Computer)
Permanent MAC: 08:00:27:9b:7f:5d (PCS Systemtechnik GmbH)
```

- This shows that the current MAC address is different from the permanent MAC address, which means that the MAC address has been successfully changed.

- You can change the MAC address back to the original one by using the `-p` option with macchanger. For example, to reset the MAC address of `wlan0`, you can run:

```bash
sudo macchanger -p wlan0
```

- You will see something like this:

```bash
Current MAC: 00:1e:8c:2a:4a:0f (Asustek Computer)
Permanent MAC: 08:00:27:9b:7f:5d (PCS Systemtechnik GmbH)
New MAC: 08:00:27:9b:7f:5d (PCS Systemtechnik GmbH)
```

- This shows that the current MAC address is the same as the permanent MAC address, which means that the MAC address has been restored to the original one.

That's how you can use macchanger in Kali Linux to change or spoof the MAC address of your network interface.
: https://linux.die.net/man/1/macchanger

## Source:

(1) https://github.com/alobbs/macchanger/issues.

(2) How to change MAC address using macchanger on Kali Linux. https://linuxconfig.org/how-to-change-mac-address-using-macchanger-on-kali-linux.

(3) . https://bing.com/search?q=macchanger+in+kali+linux.

(4) macchanger | Kali Linux Tools. https://www.kali.org/tools/macchanger/.

(5) How to Change Your MAC address in Kali Linux and Linux. https://computingforgeeks.com/how-to-change-your-mac-address-in-kali-linux-and-linux/.

(6) https://www.hackingtutorials.org/general-tutorials/mac-address-spoofing-with-macchanger/.

(7) https://www.linuxfordevices.com/tutorials/kali-linux/change-mac-address-macchanger.

(8) https://www.hacknos.com/macchanger-in-kali-linux/.

(9) github.com. https://github.com/JaGoLi/Libreboot-X200-Updated/tree/b4879aaba111792fe94a6ad66bf2ec29de1f1693/libreboot_x200%2Fcoreboot%2FDocumentation%2Fmainboard%2Fgigabyte%2Fga-g41m-es2l.md.

(10) github.com. https://github.com/s-nt-s/s-nt-s.github.io.new/tree/d5c225ac8ac745cf3e1c2ff15304f7cbfbf82154/content%2Fposts%2F2016-07-28_apuntes_lfcs.md.

(11) github.com. https://github.com/ducoterra/howblog/tree/7ca4d7ee035124ee77c9e28e726ec73cab15788b/10gig2.md.