1 00:00:00,440 --> 00:00:07,400 In this video we are going to install Kali Linux in cloud with graphical user interface within free 2 00:00:07,400 --> 00:00:14,870 tier provides a free tier where you can keep a virtual machine in the cloud for 12 months for totally 3 00:00:14,870 --> 00:00:15,410 free. 4 00:00:15,680 --> 00:00:21,290 It does require your credit card details for verification, but the service is totally free for 12 months. 5 00:00:21,590 --> 00:00:27,410 Having a Kali in the cloud is beneficial as you can perform your attacks from a remote location without 6 00:00:27,410 --> 00:00:29,090 providing your actual location. 7 00:00:30,880 --> 00:00:36,400 So we are going to launch an EC2 instance with Kali and then we are going to install graphical user 8 00:00:36,400 --> 00:00:38,380 interface on the same machine. 9 00:00:42,160 --> 00:00:47,680 So in step one, go to your home and launch an EC2 instance. 10 00:00:50,940 --> 00:00:52,800 Once the instance is created. 11 00:00:52,920 --> 00:00:56,250 Access to your Kali instance with SSH command. 12 00:00:57,950 --> 00:01:02,810 Now you need to install the desktop environment and tightvnc server on your machine. 13 00:01:02,840 --> 00:01:05,150 Just use the command as shown on the screen. 14 00:01:08,860 --> 00:01:12,400 Now we need to set up a tight VNC server geometry. 15 00:01:16,080 --> 00:01:22,140 You can check whether Tightvnc is running on the server or not with netstat dash two command. 16 00:01:25,760 --> 00:01:27,230 The back on your windows machine. 17 00:01:27,230 --> 00:01:30,320 You can download Tightvnc client for Windows. 18 00:01:33,010 --> 00:01:37,690 Open the client, void your IP and port and connect to it. 19 00:01:41,520 --> 00:01:45,780 So go on your dashboard and create an EC2 instance. 20 00:01:51,200 --> 00:01:52,970 Click on launch instance. 21 00:01:56,190 --> 00:01:57,210 Don't give it a name. 22 00:02:02,950 --> 00:02:04,670 From tab. 23 00:02:04,720 --> 00:02:06,490 Search for Kali Linux. 24 00:02:09,650 --> 00:02:13,910 Go to Marketplace and Kali Linux will be available there. 25 00:02:16,850 --> 00:02:17,840 Select it. 26 00:02:20,700 --> 00:02:21,990 And click on Continue. 27 00:02:27,640 --> 00:02:30,460 Now select the architecture, which will be 64. 28 00:02:34,480 --> 00:02:39,100 On instance type select T micro which is free tier eligible. 29 00:02:40,180 --> 00:02:41,950 Now create a new key pair. 30 00:02:44,610 --> 00:02:45,570 Give it a name. 31 00:02:50,270 --> 00:02:51,410 And download it. 32 00:02:53,560 --> 00:02:56,830 This key file will be used to connect to our Kali instance. 33 00:02:58,420 --> 00:02:59,350 Now go down. 34 00:03:02,690 --> 00:03:05,660 Ensure that such traffic is allowed from anywhere. 35 00:03:11,010 --> 00:03:12,810 Select your hard disk size. 36 00:03:17,260 --> 00:03:19,120 And click on launch instance. 37 00:03:21,870 --> 00:03:24,660 Your instance will be launched in a few seconds. 38 00:03:26,400 --> 00:03:31,860 And after the instance is launched, you can open the instance page and your IP address will be visible. 39 00:03:32,830 --> 00:03:34,810 You can even go to security groups. 40 00:03:35,630 --> 00:03:38,360 And amend any security rules that you want. 41 00:03:38,390 --> 00:03:45,380 We are going to add a rule that allows all types of traffic through firewall so that we may be able 42 00:03:45,380 --> 00:03:46,880 to connect to our server. 43 00:03:47,840 --> 00:03:51,260 You may also only allow the traffic to the server. 44 00:03:52,450 --> 00:03:55,150 However, for simplicity, I'm allowing all traffic. 45 00:03:56,610 --> 00:03:58,100 Now go back to your instance. 46 00:03:58,110 --> 00:03:59,520 Copy the IP address. 47 00:04:00,600 --> 00:04:01,830 And try to ping it. 48 00:04:03,370 --> 00:04:05,890 And you can see that we can reach our instance. 49 00:04:14,100 --> 00:04:16,800 Now in the folder where your key file is stored. 50 00:04:16,800 --> 00:04:18,180 Open PowerShell. 51 00:04:22,540 --> 00:04:27,580 And into your machine with SSH command as shown in the video. 52 00:04:34,910 --> 00:04:37,010 And we are connected with our Kali machine. 53 00:04:39,510 --> 00:04:42,810 You can use all commands of Kali from the same terminal. 54 00:04:43,110 --> 00:04:44,970 For example, who am I? 55 00:04:45,270 --> 00:04:49,020 Now let's install graphical user interface on our Kali machine. 56 00:04:49,380 --> 00:04:51,300 First update the repositories. 57 00:04:52,470 --> 00:04:56,400 And then use the command as shown on the screen and install the desktop. 58 00:05:12,210 --> 00:05:16,740 To set up Tightvnc server geometry with Tightvnc Server Geometry Command. 59 00:05:23,710 --> 00:05:29,590 And check whether VNC server is running on your machine with netstat command and you can see that it 60 00:05:29,590 --> 00:05:31,770 is running on port 5901. 61 00:05:31,780 --> 00:05:35,260 So back on your windows machine download VNC viewer. 62 00:05:41,090 --> 00:05:41,810 Once installed. 63 00:05:41,810 --> 00:05:42,590 Open it. 64 00:05:50,560 --> 00:05:52,630 Type in the IP address of, for instance. 65 00:05:53,530 --> 00:05:57,250 With Port 5901 and click Connect. 66 00:06:00,110 --> 00:06:00,440 Click. 67 00:06:00,440 --> 00:06:01,220 Continue. 68 00:06:02,490 --> 00:06:03,870 Enter your password. 69 00:06:04,760 --> 00:06:05,840 And click okay. 70 00:06:08,210 --> 00:06:10,130 And you will get the desktop. 71 00:06:14,580 --> 00:06:21,120 You can use this Kali machine in the same manner as you use your Kali in VMware or virtual box.