Skip to main content

How To Change To Random MAC Address - Kali Linux

 

How To Change MAC Address To Random 

(Hide Your Location) 

sudo ifconfig - IP information and configuration settings

If you haven't got macchanger already, don't worry! Its simple to install!

Just type the following command to install:

sudo apt-get install macchanger

If you have mac-filtering enabled on your router, you'll want to select NO on the popup message after entering this command, otherwise you won't be able to connect to your own WiFi.

 

Help Menu

macchanger --help  


View your current mac address:

sudo macchanger -s eth0

You will now see that your current mac and your permanent mac are the same.

To stop this from being exposed, you'll need to change it to something more.. random! 


Now It's Time To Spoof Our MAC Address!

Enter The Highlighted Commands In Order:

sudo macchanger -s eth0           views current mac

sudo ifconfig eth0 down
           bring down network

sudo macchanger -r eth0           random mac applied 
 
sudo ifconfig eth0 up                restart network

sudo macchanger -s eth0
          views new MAC
 
ping bing.com                          test network connection
 
 
Now look at your current MAC, it should be different to your real MAC (permanent MAC)
Its good practice to keep checking this feature as sometimes it may revert to both being the same MAC.

 

 FIX For Know Connection Issue!

(No connection after changing MAC)

 1) Shut down and create a new connection on VM Box in settings

2) You should have 2 connections now

3) Start Kali & while run the commands to change MAC but don't restart connection yet

4) Don't restart connection with usual command- just click the second (new) connection at top right

5) check your MAC type in terminal sudo macchanger -s eth0 

6) Check connection type in terminal ping.bing.com


You should have a connection & your MAC address changed.

You should still run a VPN

(Windscribe is free)


If something doesn't work for you, comment below I'll be happy to help!


Comments

Popular posts from this blog

FIXED - No Connection After Changing MAC Address In Kali Linux!

No Connection After Changing MAC Address In Kali Linux - Fixed! (VirtualBox Fix)   Problem: You run commands to change your MAC, and then your connection drops. Fix:   1) Power off Kali & VMBox and then restart VMBox 2) Go to settings in VMbox and create another connection (bridged or NAT) 3) Now fire up Kali again 4) Run the following commands in terminal --------------------------------------------------------------- sudo macchanger -s eth0 - check your MAC address sudo ifconfig eth0 down - knock off your connection sudo macchanger -r eth0 - Set MAC to random 5) Click top right of home screen and switch to second saved connection  6) Open new terminal & run the following commands: ping bing.com                           - check connection sudo macchanger -s eth0      - check MAC address Now you should see that ...

Manipulate Files & Directories In Kali Linux - Common Commands

    Manipulate Files & Directories Navigate directories pwd: Display path of current directory you’re in ls: List all files and folders in the current directory ls -la: List detailed list of files and folders, including hidden ones   Change to a specific directory cd: Change to home directory cd /user/Desktop: Change to a specific directory called Desktop cd .. : Move back a directory Create a directory/folder mkdir <dir>: Create a new directory mkdir /home/Desktop/dir: Create a directory in a specific location   Create and edit files touch <file>: Create an empty file nano <file>: Edit an existing file or create it if it doesn’t exist. Alternatives to nano text editor: vim, emacs   Copy, move and rename files and directories cp <file1> <file2>: Create a copy of a file cp -r <dir1> <dir2>: Create a copy of a directory and everything in it cp <file> /home/Desktop/file2: Create a copy of a file in a ...

What Is Kali Linux?

Main uses of Kali Linux: Advanced Penetration Testing & Security Auditing. Kali includes hundreds of tools for diverse information security activities, including penetration testing, security research, computer forensics, and reverse engineering. Created by: Offensive Security's Mati Aharoni and Devon Kearns. Official website: www.kali.org Wikipedia: https://en.wikipedia.org/wiki/Kali_Linux  The group Offensive Security, which also offers cybersecurity training and certifications, developed Kali Linux in 2013. Offensive Security evolved Backtrack Linux, a security-focused Linux distribution, into Kali, which is based on the Debian Linux distribution. Kali Linux is free, and it is stated explicitly that it will remain so. List of known Kali problems, updates & more   What is Kali used for?  Advanced Penetration Testing and Security Auditing are the main uses of Kali Linux.  Kali includes hundreds of tools for diverse information security activities, includ...