1 00:00:02,230 --> 00:00:08,560 In this lecture of our course, you will learn how to install and create a network sniffer with Skype. 2 00:00:08,710 --> 00:00:16,480 So the first you can open a terminal and let's understand the few things first. 3 00:00:16,510 --> 00:00:21,820 So in Linux there are two user privileges, user and root. 4 00:00:21,820 --> 00:00:25,150 So and the environment for both users is different. 5 00:00:25,150 --> 00:00:31,050 So higher privileges are required for system level commands to send and receive packets. 6 00:00:31,060 --> 00:00:35,860 We will need to install Skype as a root user as well as a normal user. 7 00:00:35,860 --> 00: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. 8 00:00:41,500 --> 00:00:45,430 So as sending packets requires higher privileges in Linux. 9 00:00:45,430 --> 00:00:51,670 So you can think of it as the running run as administrator equivalent in Windows. 10 00:00:51,670 --> 00:00:55,240 So you will see what I mean in the moment. 11 00:00:55,240 --> 00:01:05,780 So to install as a root user you will write sudo pip3 install scapy and here you will enter the password. 12 00:01:05,780 --> 00:01:09,220 And as you can see here, its requirement already satisfied. 13 00:01:09,230 --> 00:01:11,150 I already installed scapy. 14 00:01:11,150 --> 00:01:16,100 So running Pip as a root user can result in a broken permissions and conflicting behavior with the system 15 00:01:16,100 --> 00:01:21,110 pack age manager and it's recommended to use virtual environment instead. 16 00:01:21,110 --> 00:01:25,220 So it's you can just this is just a warning here, not an error. 17 00:01:25,220 --> 00:01:33,920 So here if you don't have installed so this code, this command will install Skype with administrator 18 00:01:33,920 --> 00:01:34,850 root privileges. 19 00:01:34,850 --> 00:01:42,320 So once this is done, open your PyCharm or Visual Studio code or your IDE for Python. 20 00:01:42,620 --> 00:01:46,610 And here to create a new project. 21 00:01:46,610 --> 00:01:48,650 This is the new project, empty project here. 22 00:01:48,650 --> 00:01:55,760 And keep in mind that if you face problems you will need to update your systems python with this command 23 00:01:55,760 --> 00:02:13,120 here sudo apt get update and sudo apt get upgrade and sudo apt get install python three where virtual 24 00:02:13,120 --> 00:02:19,990 env here and as you can see sudo we need to write this here firstly. 25 00:02:21,810 --> 00:02:25,170 There's a there's a spelling error here. 26 00:02:33,160 --> 00:02:39,520 In my system, the Python virtual environment is already installed, but maybe it's not up to date, 27 00:02:39,520 --> 00:02:41,320 so it's good. 28 00:02:42,940 --> 00:02:48,900 Action to check the virtual environment and the packages and operate them. 29 00:02:51,350 --> 00:02:54,680 And here, as you can see, it's 44.6MB. 30 00:02:55,190 --> 00:02:57,080 It's almost done. 31 00:03:00,820 --> 00:03:06,160 Fetched 65.4MB in 36 seconds. 32 00:03:07,860 --> 00:03:08,700 And that's it. 33 00:03:08,700 --> 00:03:11,760 So after the operation, you said you want to continue? 34 00:03:11,790 --> 00:03:12,900 Yes. 35 00:03:13,920 --> 00:03:17,310 As you can see, all of these plugins will update now. 36 00:04:12,090 --> 00:04:12,300 Here. 37 00:04:12,300 --> 00:04:16,110 As you can see, it's almost six minutes and 27 seconds. 38 00:04:16,110 --> 00:04:19,620 And I will stop the lecture here and we'll continue after done. 39 00:04:22,060 --> 00:04:29,590 And now, since our installation and upgrade process is done, we can go back to PyCharm to write our 40 00:04:29,590 --> 00:04:30,490 programs. 41 00:04:30,790 --> 00:04:37,930 So now here we will create a new virtual environment for this specific project. 42 00:04:38,380 --> 00:04:45,040 But here in PyCharm, we will we are automatically creating this virtual environment when you are creating 43 00:04:45,040 --> 00:04:45,760 the. 44 00:04:47,280 --> 00:04:48,150 New project here. 45 00:04:48,150 --> 00:04:55,740 And as you can see here, we are creating new environment with this here and in with PyCharm. 46 00:04:55,740 --> 00:04:57,950 You don't need to create that environment. 47 00:04:57,960 --> 00:05:06,360 So after that, we will firstly install a scapy for this project. 48 00:05:07,930 --> 00:05:15,010 And here we will open terminal from here and we will type pip3 install CP. 49 00:05:18,560 --> 00:05:21,470 And as you can see, it's downloaded and installed. 50 00:05:21,710 --> 00:05:27,920 So in this lecture, we have learned how to how we can install scapy in our virtual environment and 51 00:05:27,920 --> 00:05:31,370 how to see whether it has been installed properly. 52 00:05:31,370 --> 00:05:37,310 And you also keep in mind that some functionalities of scapy require the program to be run with higher 53 00:05:37,310 --> 00:05:40,460 privileges, otherwise they won't work. 54 00:05:40,490 --> 00:05:47,300 In next lecture we will learn more about how Scapy is used and how we can manipulate network packets 55 00:05:47,300 --> 00:05:48,230 with Scapy.