1 00:00:00,420 --> 00:00:05,460 So in this video we'll be seeing how to take the screenshot from the, uh, from fuchsia. 2 00:00:06,150 --> 00:00:13,930 So first we need to set the set process DP aware function to make the application aware of the computer. 3 00:00:14,640 --> 00:00:18,870 So DPA stands for DOT printed. 4 00:00:19,080 --> 00:00:21,000 It's going to tell us the resolution. 5 00:00:21,690 --> 00:00:23,160 We can also get the most. 6 00:00:23,650 --> 00:00:30,660 So it's like 800,000 DPA, etc. It can get the screen, the resolution as well. 7 00:00:31,950 --> 00:00:33,590 So we need to call this function. 8 00:00:33,600 --> 00:00:36,450 I have already imported this idea. 9 00:00:37,720 --> 00:00:39,900 The setting in that is user that you do not be. 10 00:00:40,500 --> 00:00:43,680 So we just imported this one and we are calling this. 11 00:00:43,980 --> 00:00:50,280 And after this point, we will get the actual resolution that is 19201080. 12 00:00:51,300 --> 00:00:51,960 In my case. 13 00:00:55,590 --> 00:01:00,870 So when you do see a screen God now here we can see our screens off zero. 14 00:01:00,900 --> 00:01:02,310 You can see our screens are zero. 15 00:01:02,310 --> 00:01:10,800 It will correspond to the first two screens or we can see a primary screen dot bonds. 16 00:01:11,850 --> 00:01:14,340 So this will return the rectangle object. 17 00:01:19,080 --> 00:01:20,160 What a tangled odyssey. 18 00:01:20,760 --> 00:01:30,180 These green bonds and these rectangle and the screen will be in the brain, not imaging and also drying. 19 00:01:30,180 --> 00:01:36,180 And also we need to input these three also random locking drops process as well. 20 00:01:36,960 --> 00:01:45,030 So we have this rectangle bond we can print with our dart of bit and our dart height. 21 00:01:45,570 --> 00:01:49,830 So if I go and run this and I would get this. 22 00:01:49,830 --> 00:01:52,020 ACTOR 19201080. 23 00:01:52,680 --> 00:01:59,090 Let's go and comment on this one and let's see whether we get we can see we got the incorrect presentation. 24 00:02:00,180 --> 00:02:05,460 So that's why we need to call this function to make the application aware of that. 25 00:02:07,500 --> 00:02:09,420 So now we've got the correct presentation. 26 00:02:15,420 --> 00:02:25,690 So now we need to create a new bitmap image because to new bitmap of we need to pass. 27 00:02:25,710 --> 00:02:32,250 These dimensions are not with command and height command. 28 00:02:36,990 --> 00:02:41,820 Big format but and here we need to use this to do ab rtp. 29 00:02:46,880 --> 00:02:54,950 So this will create eight bids each are used for out of the red, green and blue. 30 00:02:55,080 --> 00:02:58,220 So this should be good to go. 31 00:02:59,700 --> 00:03:04,310 No, we need to fill this bitmap with the screenshot so we can do that. 32 00:03:04,610 --> 00:03:06,770 First we need to create a graphics object. 33 00:03:06,770 --> 00:03:12,020 Jesica's two graphics card from Image. 34 00:03:13,310 --> 00:03:15,410 We need to choose the bitmap image. 35 00:03:17,800 --> 00:03:21,670 And after that, what we can do is we can say direct copy from screen. 36 00:03:22,300 --> 00:03:28,510 So within two or to the upper left two source and preferred destination. 37 00:03:28,510 --> 00:03:29,410 That is this one. 38 00:03:30,530 --> 00:03:35,160 Uh, so how you get this one using this, uh, order with an order type. 39 00:03:36,790 --> 00:03:38,340 So order it. 40 00:03:38,560 --> 00:03:39,190 Come on. 41 00:03:40,180 --> 00:03:50,640 Our height and we can set zero command zero and the block region size so we can set ordered size. 42 00:03:50,920 --> 00:03:55,510 So this will give you, uh, we can print order size as well. 43 00:03:55,840 --> 00:04:04,090 This will give you in like, uh, uh, dictionary format so you can see, uh. 44 00:04:05,810 --> 00:04:06,890 Width and height. 45 00:04:07,370 --> 00:04:17,540 So we are going to filter this bitmap by these graphics that are from the starting to the actual size. 46 00:04:17,550 --> 00:04:19,280 That is 1920100. 47 00:04:19,880 --> 00:04:22,590 Now we can sell this map beat out sale. 48 00:04:25,090 --> 00:04:26,530 We can choose. 49 00:04:40,800 --> 00:04:42,570 We consider that a 50 00:04:45,170 --> 00:04:49,290 jpg and we need to specify the image format. 51 00:04:49,510 --> 00:04:53,040 The image format does not depend. 52 00:04:58,230 --> 00:05:00,600 So let's go read this one and let's run this. 53 00:05:09,320 --> 00:05:11,150 So we got the black screen. 54 00:05:11,510 --> 00:05:12,980 We did some of the wrong. 55 00:05:22,680 --> 00:05:24,660 So I have found a mistake. 56 00:05:24,660 --> 00:05:26,400 It's not written hard. 57 00:05:26,400 --> 00:05:30,570 It's actually the harder left. 58 00:05:31,170 --> 00:05:33,480 So harder to write. 59 00:05:36,790 --> 00:05:38,180 So we are Cowper. 60 00:05:38,200 --> 00:05:38,560 Yes. 61 00:05:42,060 --> 00:05:48,060 So now we should get because our left foot boot lifted out of boot the safe. 62 00:05:49,470 --> 00:05:50,420 So sorry for that. 63 00:05:50,880 --> 00:05:53,340 Now we need to run this one. 64 00:05:57,800 --> 00:05:59,900 And here you can see the screenshot. 65 00:06:02,140 --> 00:06:05,530 So this is a call to take the screenshot. 66 00:06:06,250 --> 00:06:10,570 What we can do is we can add this code to our C2. 67 00:06:10,580 --> 00:06:11,890 So I have already done this. 68 00:06:12,430 --> 00:06:14,230 I'm just going to show you. 69 00:06:24,430 --> 00:06:26,380 So let's run this, Sara. 70 00:06:29,010 --> 00:06:32,520 And here we are sending the come and get screenshot. 71 00:06:33,240 --> 00:06:39,420 The client that is our official client after. 72 00:06:43,940 --> 00:06:51,800 Checking the commands to get screenshot, then it goes and the get screenshot function which is just 73 00:06:52,670 --> 00:06:53,690 taking the screenshot. 74 00:06:54,050 --> 00:07:00,590 But here what we have done is we have used this image converter to convert the bitmap into the image 75 00:07:00,600 --> 00:07:03,920 bytes so we can do that as well here. 76 00:07:05,570 --> 00:07:16,400 So instead of saving we can see the image converter i.e. equals to new image converter of our Nike dart 77 00:07:17,390 --> 00:07:18,410 converter to. 78 00:07:20,780 --> 00:07:26,090 So first we need to select the object that is. 79 00:07:28,990 --> 00:07:29,620 Bitmap. 80 00:07:30,280 --> 00:07:34,060 And second one is the destination that is above. 81 00:07:37,620 --> 00:07:38,340 Mainstream. 82 00:07:42,170 --> 00:07:43,490 So this will return. 83 00:07:46,380 --> 00:07:48,570 Let's say you manage by size equals two. 84 00:07:49,260 --> 00:07:51,560 We need to convert this image, right? 85 00:07:52,320 --> 00:07:55,860 So we can go ahead and see this. 86 00:08:00,770 --> 00:08:01,390 You're fired. 87 00:08:01,400 --> 00:08:02,150 All right. 88 00:08:03,890 --> 00:08:04,790 All right. 89 00:08:07,090 --> 00:08:09,070 So we can now copy this one. 90 00:08:13,080 --> 00:08:16,710 And changes tend to dampen so that there will be some difference. 91 00:08:17,130 --> 00:08:25,680 You can also check the timestamp as well, then image by single saving into the fire. 92 00:08:25,770 --> 00:08:32,100 What we can do is we can convert these to bioterror and now we are saving just to confirm whether we 93 00:08:32,100 --> 00:08:36,540 can verify whether better you've read it or not. 94 00:08:39,830 --> 00:08:44,090 So there is a tempo and you can see the current timestamp. 95 00:08:44,210 --> 00:08:48,890 So we can successfully convert this, which may have been to a binary. 96 00:08:49,100 --> 00:08:56,360 So now what I have done is I how modify or something that is I have converted this into the basis to 97 00:08:56,390 --> 00:08:57,110 for encoding. 98 00:08:57,830 --> 00:09:00,140 So this material to basic through encoding. 99 00:09:00,650 --> 00:09:07,940 So I can easily transfer this to this of our our server. 100 00:09:09,950 --> 00:09:14,870 So after that I have, I am decoding this here and then adding some timestamp. 101 00:09:16,490 --> 00:09:18,980 So this is the timestamp. 102 00:09:25,420 --> 00:09:33,210 If it gets the current boom and then I am appending rebranding the IP address. 103 00:09:33,210 --> 00:09:43,440 So the final name will be the IP address, hyphen the timestamp, but jpg then it is a screenshot captured. 104 00:09:45,700 --> 00:09:48,160 So that's to run this and agents. 105 00:10:00,310 --> 00:10:04,690 So in the loop we have I have already took these pictures before. 106 00:10:04,690 --> 00:10:05,620 Let's delete them. 107 00:10:06,820 --> 00:10:09,130 And in these agents, we have this mask. 108 00:10:10,840 --> 00:10:13,960 So get screenshot and you run this. 109 00:10:14,650 --> 00:10:15,430 Click on the button. 110 00:10:15,430 --> 00:10:22,450 You should see a new picture that is from 190160 100 and. 111 00:10:26,860 --> 00:10:30,560 And, uh, this financial year, um. 112 00:10:31,660 --> 00:10:34,300 Month and date, that's. 113 00:10:36,410 --> 00:10:38,860 And then the, uh. 114 00:10:38,960 --> 00:10:40,430 Let me see this. 115 00:10:41,600 --> 00:10:42,980 I think it's our minute. 116 00:10:42,980 --> 00:10:43,550 Second. 117 00:10:43,910 --> 00:10:46,340 Uh, let me just confirm this. 118 00:10:49,970 --> 00:10:50,280 Yes. 119 00:10:50,300 --> 00:10:51,620 Hours, million seconds. 120 00:10:53,450 --> 00:10:55,820 So it's three 2437. 121 00:10:55,820 --> 00:11:04,520 So in this way, each image can be identified uniquely from which machine you got the screenshot from. 122 00:11:05,960 --> 00:11:07,280 So that's all for this video. 123 00:11:07,470 --> 00:11:13,460 In this video, we have seen how to take the screenshot from the feature and then we are converted that 124 00:11:13,500 --> 00:11:15,240 to battery. 125 00:11:15,260 --> 00:11:22,670 And then we have converted the battery to base64 a string so we can easily transmit over the socket. 126 00:11:22,670 --> 00:11:27,260 And then we decoded to the image.