In this lecture of our course, you will learn how to install and create a network sniffer with Skype.
So the first you can open a terminal and let's understand the few things first.
So in Linux there are two user privileges, user and root.
So and the environment for both users is different.
So higher privileges are required for system level commands to send and receive packets.
We will need to install Skype as a root user as well as a normal user.
So we will write our program as a normal user and when we run it, we will run it as a root.
So as sending packets requires higher privileges in Linux.
So you can think of it as the running run as administrator equivalent in Windows.
So you will see what I mean in the moment.
So to install as a root user you will write sudo pip3 install scapy and here you will enter the password.
And as you can see here, its requirement already satisfied.
I already installed scapy.
So running Pip as a root user can result in a broken permissions and conflicting behavior with the system
pack age manager and it's recommended to use virtual environment instead.
So it's you can just this is just a warning here, not an error.
So here if you don't have installed so this code, this command will install Skype with administrator
root privileges.
So once this is done, open your PyCharm or Visual Studio code or your IDE for Python.
And here to create a new project.
This is the new project, empty project here.
And keep in mind that if you face problems you will need to update your systems python with this command
here sudo apt get update and sudo apt get upgrade and sudo apt get install python three where virtual
env here and as you can see sudo we need to write this here firstly.
There's a there's a spelling error here.
In my system, the Python virtual environment is already installed, but maybe it's not up to date,
so it's good.
Action to check the virtual environment and the packages and operate them.
And here, as you can see, it's 44.6MB.
It's almost done.
Fetched 65.4MB in 36 seconds.
And that's it.
So after the operation, you said you want to continue?
Yes.
As you can see, all of these plugins will update now.
Here.
As you can see, it's almost six minutes and 27 seconds.
And I will stop the lecture here and we'll continue after done.
And now, since our installation and upgrade process is done, we can go back to PyCharm to write our
programs.
So now here we will create a new virtual environment for this specific project.
But here in PyCharm, we will we are automatically creating this virtual environment when you are creating
the.
New project here.
And as you can see here, we are creating new environment with this here and in with PyCharm.
You don't need to create that environment.
So after that, we will firstly install a scapy for this project.
And here we will open terminal from here and we will type pip3 install CP.
And as you can see, it's downloaded and installed.
So in this lecture, we have learned how to how we can install scapy in our virtual environment and
how to see whether it has been installed properly.
And you also keep in mind that some functionalities of scapy require the program to be run with higher
privileges, otherwise they won't work.
In next lecture we will learn more about how Scapy is used and how we can manipulate network packets
with Scapy.