Have, you know, what is an irreplaceable thing and how does it work?
Let's go create our first packet.
So here I am going to use a module that we know how to use it.
What is it.
And because in the previous section I think we have been using it it is called Scapy.
So I am going to import that scapy dot all as src.
Okay.
So here is how we are importing this.
So let's go create a packet okay.
We can create using ARP okay.
Here we have some option that I'm going to show you okay.
We you know how to use it how to give those options.
But again I'm going to show you that here.
So I'm going to go to the Python interpreter here I need to Import Sukhpal as SKP.
Hit enter and here let's use that.
So how can we use it?
It is a list so skipped list here.
Scapy dot arp and hit enter.
So these are the thing we need to use.
One of them is source.
Destination.
Hardware.
Destination.
And also hardware source.
Okay so here and also we have one more option that is called OP.
By default it is one.
We need to change it to number two.
So let's use OP is equal to two.
And then we have PTSD.
Okay P destination.
And as you see right now my location is in network scanner.
Okay, so I have I've been creating my program and now I'm going to use it.
Okay let's use Python network scanner dash t ten 0 to 1.
And I am going to use pseudo with this.
Okay.
Now you see we have IPS.
And also we have the Mac address.
And you know that this is the target which is Windows 7 and it is its Mac address.
We are going to use that here.
So P destination is going to be windows okay I will copy the uh IP for Windows 7.
Just a moment.
Copy.
And paste it here okay.
Use camera to separate them.
And also we have hardware destination h w d is t.
Okay.
So I also have the hardware destination here.
This is the Mac address of the Windows 7 machine.
Okay.
Copy this and then paste it here.
Now you know that this packet is going to be sent from my computer, which is which is called Linux.
And here I'm going to give that the source is out there.
So I'm going to fold this windows and like that.
So PSR c is equal to at the gateway.
You know that this is the IP address for gateway or.
Counter.
Let me paste it here.
Now you see that we just created Since our first packet.
Okay.
Here.
Let's print some information from this packet.
Okay.
We have the packet dot show method.
And also we have the summary of this.
Okay.
So let's use print packet.
Dot summary.
Now let me save this and come back right here in this terminal I'm going to use pseudo Python and we
have ARP.
spoofing.py.
Now you see that we have IP.
Okay.
IP is version for this.
Okay.
OP is type.
It's type is at okay.
And you see we have the hardware destination.
Hardware source.
And you know that source is my, uh, my let's use ifconfig so you can see that Mac address.
This is my Mac address okay.
So source is my Mac address.
And IP source is not my IP.
You see my IP is 24.
But this source is not belongs to this Mac address because it is belongs to router okay.
And also this is the destination for hardware destination and also IP destination which is Windows 7.
And also we have a little information here.
And it is saying that this type is at and it says that this IP is at this Mac address which is a wrong
information.
Okay.
So right now we are creating our we just created our first program that following the windows machine.
So thanks for watching and I will see you in the next lecture.