Now that we know the theory behind ARP spoofing attack, I am going to show you a prebuilt program that
has already provided in Kali Linux and we can use it.
So in this course, actually I am not going to use pre-built tools a lot because this course is a programming
course.
I am going to create my own tools to use it.
Okay.
So here we have a Arpspoof.
This program is called Arpspoof.
Okay.
We can use it like this Arpspoof Dash I and then provide the interface dash C host IP and then dash
the target IP.
And like this.
And it gives you a little description here that you can use it.
And if you found some kind of error like this that arpspoof command not found, you can.
That is because it is not installed in the system that you are using.
So you can And that error like this.
If you're using Kali Linux, use apt, get install rds and if and or you could use sudo apt get install.
Okay.
If you're in Debian or Ubuntu anything you can use this one and it will solve your problem.
So here let's use that tools to become man in the middle between Windows 7 that we have here, here
and also the router.
So very easy.
Let's use sudo arpspoof okay dash I for interface and then provide the interface which is eth0.
Right now dash t which is the target and then provide that target.
So let's go and see that target.
Uh so this is the IPv4 target ten zero 215.
And that is here.
And 0.2. 15 and also then provide the router IP.
You may ask how can I find it?
Okay.
The router IP is very easy.
Just write root and hit enter.
You see here get away.
And this is provided here okay.
So in 021 okay.
Let that be here.
Let me clear the other terminal.
And this time here.
As you see I am following the windows machine that I am going to be the router okay.
And here in the other terminal I'm going to fold the router that I am the Windows 7.
So let's say I can use sudo arpspoof.
Dash IX0-T which is targeting 0 to 1 for router and 0 to 15 for Windows.
Now let's hit enter and see.
Also here.
Okay.
Now this booth is start doing its job.
And let's go back to our windows machine here.
You see the router is ten 021.
And the Mac address for that is zero zero.
Okay.
Now let's re-execute that ARP dash a hit.
Enter.
This time you see that we have ten 021.
And then we have the Mac address which is not the Mac address of the router.
It is my own Mac address, my colleague machine Mac address okay.
So now the connection between router and this windows machine is flowing through my computer which is
Kali Linux okay.
And here now if I have another program, if I do that okay.
That later we will do that here we can capture all the data that is flowing through this.
Okay.
In some cases you need to enable port forwarding in your Kali Linux.
Okay.
So you need to know how to do that.
So you first you need to go to sudo.
Okay.
So as you and here just write echo one two.
Okay.
Proc this net.
And we have IP version four IP underscore forward.
Hit enter.
You see no error.
That means it is enabled.
Now port forwarding is enabled in windows machine.
The machine and you're good to go.
Okay.
So here you learn how to use a prebuilt tool that is already provided in Kali Linux.
And let's go build our own program to do such kind of task.