WEBVTT

00:02.230 --> 00:08.560
In this lecture of our course, you will learn how to install and create a network sniffer with Skype.

00:08.710 --> 00:16.480
So the first you can open a terminal and let's understand the few things first.

00:16.510 --> 00:21.820
So in Linux there are two user privileges, user and root.

00:21.820 --> 00:25.150
So and the environment for both users is different.

00:25.150 --> 00:31.050
So higher privileges are required for system level commands to send and receive packets.

00:31.060 --> 00:35.860
We will need to install Skype as a root user as well as a normal user.

00:35.860 --> 00:41.410
So we will write our program as a normal user and when we run it, we will run it as a root.

00:41.500 --> 00:45.430
So as sending packets requires higher privileges in Linux.

00:45.430 --> 00:51.670
So you can think of it as the running run as administrator equivalent in Windows.

00:51.670 --> 00:55.240
So you will see what I mean in the moment.

00:55.240 --> 01:05.780
So to install as a root user you will write sudo pip3 install scapy and here you will enter the password.

01:05.780 --> 01:09.220
And as you can see here, its requirement already satisfied.

01:09.230 --> 01:11.150
I already installed scapy.

01:11.150 --> 01:16.100
So running Pip as a root user can result in a broken permissions and conflicting behavior with the system

01:16.100 --> 01:21.110
pack age manager and it's recommended to use virtual environment instead.

01:21.110 --> 01:25.220
So it's you can just this is just a warning here, not an error.

01:25.220 --> 01:33.920
So here if you don't have installed so this code, this command will install Skype with administrator

01:33.920 --> 01:34.850
root privileges.

01:34.850 --> 01:42.320
So once this is done, open your PyCharm or Visual Studio code or your IDE for Python.

01:42.620 --> 01:46.610
And here to create a new project.

01:46.610 --> 01:48.650
This is the new project, empty project here.

01:48.650 --> 01:55.760
And keep in mind that if you face problems you will need to update your systems python with this command

01:55.760 --> 02:13.120
here sudo apt get update and sudo apt get upgrade and sudo apt get install python three where virtual

02:13.120 --> 02:19.990
env here and as you can see sudo we need to write this here firstly.

02:21.810 --> 02:25.170
There's a there's a spelling error here.

02:33.160 --> 02:39.520
In my system, the Python virtual environment is already installed, but maybe it's not up to date,

02:39.520 --> 02:41.320
so it's good.

02:42.940 --> 02:48.900
Action to check the virtual environment and the packages and operate them.

02:51.350 --> 02:54.680
And here, as you can see, it's 44.6MB.

02:55.190 --> 02:57.080
It's almost done.

03:00.820 --> 03:06.160
Fetched 65.4MB in 36 seconds.

03:07.860 --> 03:08.700
And that's it.

03:08.700 --> 03:11.760
So after the operation, you said you want to continue?

03:11.790 --> 03:12.900
Yes.

03:13.920 --> 03:17.310
As you can see, all of these plugins will update now.

04:12.090 --> 04:12.300
Here.

04:12.300 --> 04:16.110
As you can see, it's almost six minutes and 27 seconds.

04:16.110 --> 04:19.620
And I will stop the lecture here and we'll continue after done.

04:22.060 --> 04:29.590
And now, since our installation and upgrade process is done, we can go back to PyCharm to write our

04:29.590 --> 04:30.490
programs.

04:30.790 --> 04:37.930
So now here we will create a new virtual environment for this specific project.

04:38.380 --> 04:45.040
But here in PyCharm, we will we are automatically creating this virtual environment when you are creating

04:45.040 --> 04:45.760
the.

04:47.280 --> 04:48.150
New project here.

04:48.150 --> 04:55.740
And as you can see here, we are creating new environment with this here and in with PyCharm.

04:55.740 --> 04:57.950
You don't need to create that environment.

04:57.960 --> 05:06.360
So after that, we will firstly install a scapy for this project.

05:07.930 --> 05:15.010
And here we will open terminal from here and we will type pip3 install CP.

05:18.560 --> 05:21.470
And as you can see, it's downloaded and installed.

05:21.710 --> 05:27.920
So in this lecture, we have learned how to how we can install scapy in our virtual environment and

05:27.920 --> 05:31.370
how to see whether it has been installed properly.

05:31.370 --> 05:37.310
And you also keep in mind that some functionalities of scapy require the program to be run with higher

05:37.310 --> 05:40.460
privileges, otherwise they won't work.

05:40.490 --> 05:47.300
In next lecture we will learn more about how Scapy is used and how we can manipulate network packets

05:47.300 --> 05:48.230
with Scapy.
