# Mac Spoofing Attack

we use tool call `macchanger` to change mac address

**Important Options**

```bash
-m → change to specific  MAC Address

-r → random Mac Address

-p → to return to default Mac address
```

> to change MAC address u must **Power down** cart before that

```bash
sudo ifconfig nameOfCard down
```

![image.png](https://3641998078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv4bbPCMP2UOAXGuYloqD%2Fuploads%2FTrjTTwYxXdKYnl3LYw5O%2Fimage.png?alt=media)

***

```bash
sudo macchanger --random nameOfCard
```

<figure><img src="https://3641998078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv4bbPCMP2UOAXGuYloqD%2Fuploads%2F8eMYe1FP5tUNNmkaP2Jq%2Fimage%201.png?alt=media" alt=""><figcaption></figcaption></figure>

**current mac** → refer to mac Address before change it
