we need to type macchanger, options and then the device.
Now in order to check out our available options, we can type here, as it says, try macchanger
--help.
So we will type macchanger --help and it will basically show us right here some of the available
options that we can use. Right now, in order to find out what our mac address is,
we want to use this option, which is --show or -s.
Now if we just type here macchanger -s, it will say that we incorrectly used this program because
we didn't specify the device.
Now this device basically means your network interface card. You might be having multiple interface cards
so we want to pick one. If you type here
ifconfig, as we covered in the previous tutorials,
it will print you up with your network interfaces. Right here
I only have the LOOPBACK interface
and the eth0 interface, which I use to connect to the Internet.
So I will use this one. If I just repeat the command, macchanger -s, and then eth0, it will print out
my current MAC address and my permanent MAC address, which in this case are both the same because
we didn't change it yet.
Now if you have multiple interfaces, just pick the one you use currently and just specify it at the end of
the command. Now let's type here once again macchanger
--help in order to see what else we can do with this program.
So, we covered this part which is showing our current MAC address.
Now let's say we want to change the MAC address.
We can look at some of the options. Here
it says set fully random MAC address, which we can do with the -r or --random.
So let's try to put the random MAC address and see what happens. If we type here
macchanger -r, which stands for this option right here, which is set for the random MAC address,
and then we specify once again our network interface, we can see that right now our MAC address is changed.
As you can see right here,
New MAC is this one. The previous one was this one.
So if we want to show our mac address again we can see that it has changed.
Oops, I forgot to specify the interface.
We can see that the current MAC address is a different one from the permanent one. We can see that
we successfully changed the MAC address. But, let's say, for example, you want to bypass the white list
of the MAC addresses. You would want to specify a specific MAC address. So we can do that with this command,
which is basically --mac and then specifying a MAC address. Let's say, for example, we want this
MAC address.
Let me just open another terminal right here.
Let's say we need to have this MAC address right here.
We can try to get it with the -m command.
Let me just move this right here.
So if we run once again macchanger, we will go --mac,
now we will set
the MAC address here.
We will put equal, I'm not sure if we need to put equal right here.
We will try that first, and then 22:33:44:55:66:77, and then we will specify our network interface.
So if we see right here, it changed our Mac to the specific MAC address that we wanted it changed too.
So right now, once again, if we type macchanger --show...
it is like this.
Yes, I always forget to specify the network interface.
We can see that our current MAC address is 22:33:44:55:66:77, and our permanent Mac is our normal
MAC address, which doesn't really change. Oh, yes, if we want to we can reset back to the original permanent
hardware MAC with the -p command.
Now if you're finished with your attack, for example, and you want to change this IP address back to the,
let me just type here again to the normal, and not IP address the MAC address, to the normal MAC address which
is our permanent MAC address, you can do that with -p command.
So let's try that, macchanger -p and then our network interface. And we can see that the
new Mac is now the same as the permanent Mac.
And now we are back to normal.
We can just type here show again and we are the same as we started before using this program. And this
is a useful program for you to change your MAC address.
You can even put it to change it at the boot up of this machine.
So it changes basically every time you restart the machine it will change your mac address, which can
be used to provide a little bit of anonymity.
But I don't really use that, you can if you want to.
And that's about it for this program.
It is one of the simple ones,
so we covered it first. In the next lecture we will cover Google hacking, which is also pretty simple.
So I'll show that in the next lecture, and I hope I see you there, and take care!
#EthicalhackingCourse #codingMaster