1 00:00:00,000 --> 00:00:03,060 Good afternoon, everybody. Hello from Russia. 2 00:00:06,840 --> 00:00:13,860 Well, my name is Vitaly Kamlyuk, and I'm a senior virus analyst. I work at Kaspersky Lab. 3 00:00:14,800 --> 00:00:18,960 Well, what I do is deal with viruses and hacker attacks. 4 00:00:19,960 --> 00:00:25,720 So, my presentation is going to be kind of entertaining. I hope so. 5 00:00:25,720 --> 00:00:35,680 And I'm going to show you some quite advanced techniques of working in Windows system 6 00:00:35,680 --> 00:00:39,920 that can help you to fight malware on your own. 7 00:00:40,520 --> 00:00:41,820 So, let's begin. 8 00:00:43,600 --> 00:00:50,700 Well, these are five reasons of why you need to know how to fight malware on your own. 9 00:00:50,860 --> 00:00:52,880 That might be reasons for users. 10 00:00:53,020 --> 00:00:55,700 Like, you know, users can touch 100... 11 00:00:55,720 --> 00:01:00,740 100 of percent of protection themselves if they use antivirus solutions. 12 00:01:01,600 --> 00:01:05,680 And it protects them for 99 percent. 13 00:01:06,040 --> 00:01:10,740 And 1 percent they can add themselves by using their own knowledge. 14 00:01:11,620 --> 00:01:14,660 And they can be prepared for attacks. 15 00:01:15,100 --> 00:01:19,800 Well, they don't need to maybe download the freshest software 16 00:01:19,800 --> 00:01:21,940 because they are prepared for attacks. 17 00:01:22,100 --> 00:01:25,640 And they can, well, fight with the attacks. 18 00:01:25,720 --> 00:01:27,700 And with viruses on their own. 19 00:01:28,280 --> 00:01:30,540 Also, they maintain confidentiality. 20 00:01:30,620 --> 00:01:37,860 So, they do not need to send their very important files which can contain some personal information 21 00:01:38,340 --> 00:01:42,840 to any, well, virus labs for analysis. 22 00:01:43,820 --> 00:01:49,060 And the very important thing is the ability to restore your system here and now. 23 00:01:49,280 --> 00:01:54,560 When you don't have any other third-party tools, you can restore your system using just 24 00:01:54,560 --> 00:01:55,620 only Windows. 25 00:01:55,620 --> 00:01:55,980 Windows Tools. 26 00:01:56,560 --> 00:01:58,780 And that's what I'm going to talk about. 27 00:01:59,020 --> 00:02:00,420 How to restore your system. 28 00:02:00,480 --> 00:02:02,460 How to fight malware using only Windows. 29 00:02:03,500 --> 00:02:04,740 No third-party tools. 30 00:02:05,220 --> 00:02:10,060 And imagine that you don't have any internet connection, so you cannot download anything. 31 00:02:10,800 --> 00:02:16,160 All you have is your, you know, pure Windows system and nothing else. 32 00:02:16,520 --> 00:02:19,940 Well, and sometimes time really matters. 33 00:02:20,520 --> 00:02:24,000 And if you do not react immediately. 34 00:02:24,380 --> 00:02:25,600 . .. 35 00:02:25,600 --> 00:02:35,960 system, lose your data. And time is very, very important. So, I don't want to, well, 36 00:02:37,480 --> 00:02:45,400 say a lot, well, to tell a lot of abstract things. I want to show you several examples. 37 00:02:46,500 --> 00:02:52,540 Well, let's see what's available on Windows XP. Well, it's system tools like Explorer 38 00:02:52,540 --> 00:02:59,080 that you all know, Task Manager, Registry Editor, and Signature Verifier. Well, we have 39 00:02:59,080 --> 00:03:07,320 also some console utils like NetStat, Task List, Reg, Util, and Expand. We have interpreters 40 00:03:07,320 --> 00:03:14,340 like Batch Interpreter or JavaScript with Visual Basic script. Well, there are some 41 00:03:14,340 --> 00:03:20,680 text editors like Notepad, WordPad, Edit, and AdLin that came from DOS times. Well, 42 00:03:20,840 --> 00:03:22,520 the only binary editor... 43 00:03:22,540 --> 00:03:30,040 Editing tool available on Windows currently is DebugExec tool. That is not the specialized 44 00:03:30,040 --> 00:03:37,620 tool for editing binary files, but that's the only way how you can create, how you can 45 00:03:37,620 --> 00:03:39,920 view and create binary files. 46 00:03:40,640 --> 00:03:45,520 Well, that's kind of dirty hack on Windows, but still this tool works and it is part of 47 00:03:45,520 --> 00:03:51,600 Windows. Well, I'll talk about it a little bit later because Microsoft decided to remove 48 00:03:51,600 --> 00:03:52,520 this tool from Windows. 49 00:03:52,520 --> 00:03:59,960 Well, also you have Symbolic Debugger. NT Symbolic Debugger, it is a part of operating 50 00:03:59,960 --> 00:04:07,320 system starting from the NT for the flow. And you have all the repositories that you 51 00:04:07,320 --> 00:04:07,720 can use. 52 00:04:09,040 --> 00:04:15,480 Let's go further. Let's see an example. Well, the example is email worm Win32 Veresov. 53 00:04:15,660 --> 00:04:22,100 This is an email worm that was detected last year. And, it is quite... 54 00:04:22,100 --> 00:04:22,500 I'll try to go through it. 55 00:04:22,520 --> 00:04:33,180 you know kind of very fast mutating worm that produced more than 400 of 56 00:04:33,180 --> 00:04:39,160 modifications which is more than 25,000 of files so for one year we have 57 00:04:39,160 --> 00:04:46,300 received these number of files well we suspect that it mutates on the server 58 00:04:46,300 --> 00:04:55,460 side so there is no mechanism in the worm that that allows the worm to 59 00:04:55,460 --> 00:05:00,520 mutate in itself and it downloads additional models from the internet and 60 00:05:00,520 --> 00:05:06,120 hides itself from task manager let's see how the usual user can infect his system 61 00:05:06,120 --> 00:05:12,460 well he just need to open a file that looks like a text message well by 62 00:05:12,460 --> 00:05:14,500 clicking it of course it is application 63 00:05:16,300 --> 00:05:22,740 we just don't see the extension and usual user doesn't also well what he 64 00:05:22,740 --> 00:05:29,560 sees in the open file is kind of trash that makes no sense but if you will be 65 00:05:29,560 --> 00:05:36,320 attentive you will look at the title of this window it is 2tmp and we opened 66 00:05:37,040 --> 00:05:43,840 slightly different file and this file 2tmp is created in the same directory 67 00:05:43,840 --> 00:05:45,540 it's kind of 68 00:05:45,540 --> 00:05:45,940 a 69 00:05:45,940 --> 00:05:46,280 a 70 00:05:46,300 --> 00:05:54,340 I know anomalous activity so the attentive user will try to to maybe 71 00:05:54,340 --> 00:05:59,260 download some antivirus solution for example here it is KAV which is 72 00:05:59,260 --> 00:06:05,960 Kaspersky antivirus well if you even try to do that he will see the following 73 00:06:05,960 --> 00:06:13,500 picture he clicks on the application shortcut but nothing happens well the 74 00:06:13,500 --> 00:06:15,440 user might think that 75 00:06:15,440 --> 00:06:21,540 there may be a error or mistake some some kind of bug in the installation 76 00:06:21,540 --> 00:06:28,540 package or maybe his system doesn't satisfy the system requirements but let's 77 00:06:28,540 --> 00:06:34,400 see if the other side of windows by the way is there is there any microsoft 78 00:06:34,400 --> 00:06:36,880 employees in this room please raise your hands 79 00:06:41,260 --> 00:06:42,120 come on 80 00:06:45,440 --> 00:06:50,040 no microsoft employees good because I'm going to show you the back stage of 81 00:06:50,040 --> 00:06:58,800 windows again let's do that what happens when user clicks the shortcut well all 82 00:06:58,800 --> 00:07:04,200 the messages everything is processed by explorer except process and it 83 00:07:04,200 --> 00:07:10,880 constantly execute some code handling a input messages coming from mouse and 84 00:07:10,880 --> 00:07:14,840 keyboard well what explorers it does a 85 00:07:14,840 --> 00:07:21,300 is preparing a new application for launching it prepares the environment 86 00:07:21,300 --> 00:07:29,760 says they all the necessary settings and then launches the calls they shall 87 00:07:29,760 --> 00:07:39,620 execute X function to create a new instance of process so here it goes this 88 00:07:39,620 --> 00:07:44,820 is the installation and a process the first thing seen the system does a 89 00:07:44,840 --> 00:07:52,280 is loading a necessary libraries into the address space of the process and among those 90 00:07:52,280 --> 00:07:59,740 libraries is there is a malicious one that first decrypts strings in it and here we go here we 91 00:07:59,740 --> 00:08:05,840 got string kav which corresponds to Kaspersky anti-virus and if it checks that it has been 92 00:08:05,840 --> 00:08:11,820 in the address space of kav process it just calls exit process function to terminate the application 93 00:08:13,300 --> 00:08:14,820 so this was the process and now we are going to do the next step and we will see you in the next 94 00:08:14,840 --> 00:08:18,180 What is happening on the user system? 95 00:08:22,200 --> 00:08:23,940 What can we do with it? 96 00:08:24,560 --> 00:08:27,780 How to help user to install the antivirus? 97 00:08:28,300 --> 00:08:30,080 We have to inspect what happened. 98 00:08:30,980 --> 00:08:39,220 The first thing we should do is carefully check the access date and time of the malicious 99 00:08:40,140 --> 00:08:40,520 file. 100 00:08:42,440 --> 00:08:46,220 We will need this information a little bit later. 101 00:08:46,400 --> 00:08:53,060 After that, we have to find all the files that were created or accessed today. 102 00:08:54,000 --> 00:08:55,320 So we check that. 103 00:08:57,100 --> 00:09:07,180 We select searching for all files by date, specify the access date, set it for today, 104 00:09:07,380 --> 00:09:09,600 and check the option. 105 00:09:09,600 --> 00:09:12,140 To search hidden files and folders. 106 00:09:12,460 --> 00:09:13,700 It is necessary. 107 00:09:13,980 --> 00:09:15,080 I think you understand why. 108 00:09:15,740 --> 00:09:20,120 So when we get the list, it's kind of a very, very long list. 109 00:09:21,320 --> 00:09:26,120 And the first thing we should do is to sort it by creation date. 110 00:09:26,560 --> 00:09:33,500 And after this, we can see the list of files created after opening the malicious application. 111 00:09:35,740 --> 00:09:38,500 And here are the files. 112 00:09:38,500 --> 00:09:40,340 You can see this original message file. 113 00:09:40,600 --> 00:09:45,240 And some more files like which copied itself to C Windows folder. 114 00:09:45,660 --> 00:09:47,800 And it is also an application. 115 00:09:48,080 --> 00:09:52,200 And it has the same size as the source one. 116 00:09:53,840 --> 00:09:56,660 And it is placed in system folder. 117 00:09:56,860 --> 00:10:04,820 So it can show us that we launched the Trojan application or malicious one. 118 00:10:05,080 --> 00:10:08,340 The first thing we can try to do is to delete this application from Windows. 119 00:10:08,340 --> 00:10:09,940 So from Windows folder. 120 00:10:10,180 --> 00:10:12,400 But we got access denied message. 121 00:10:13,290 --> 00:10:21,740 So this file is locked by some other application or maybe it is just running on our system. 122 00:10:21,900 --> 00:10:27,720 If you check the list of processes in Windows task manager, we cannot find this process. 123 00:10:28,680 --> 00:10:29,780 What does it mean? 124 00:10:29,940 --> 00:10:37,940 That may be the reason, that may be caused by active rootkit present on our system or 125 00:10:37,940 --> 00:10:40,640 just by locking by another process. 126 00:10:42,420 --> 00:10:50,060 So if we get the alternative list of the processes, we can see that is running. 127 00:10:50,340 --> 00:10:52,320 But we couldn't find it in task manager. 128 00:10:52,580 --> 00:10:55,740 So it got to be a rootkit working on our system. 129 00:10:56,500 --> 00:11:03,520 Well, to terminate the process, we can use the task queue command, which is also a part 130 00:11:03,520 --> 00:11:04,680 of Windows XP system. 131 00:11:05,400 --> 00:11:07,220 Not many people knows about it. 132 00:11:07,220 --> 00:11:08,040 I don't know why. 133 00:11:09,780 --> 00:11:11,860 Well we terminate the process. 134 00:11:13,820 --> 00:11:20,660 And after that we can try to delete, we can try deleting additional files coming with 135 00:11:20,660 --> 00:11:21,240 this Trojan. 136 00:11:21,600 --> 00:11:22,620 E1 DLL. 137 00:11:22,840 --> 00:11:26,200 We try to delete it and get the same message, access denied. 138 00:11:26,480 --> 00:11:34,680 So the DLL is locked by some other process or it can be loaded into the other space of 139 00:11:34,680 --> 00:11:36,060 the process. 140 00:11:36,060 --> 00:11:37,540 Let's try to check it. 141 00:11:37,640 --> 00:11:39,340 We use the same command task list. 142 00:11:40,640 --> 00:11:46,080 Specify the particular options for getting the list of the processes, which loaded E1 143 00:11:46,080 --> 00:11:46,540 DLL. 144 00:11:47,120 --> 00:11:48,420 And here is the list. 145 00:11:49,160 --> 00:11:50,280 You can see here. 146 00:11:50,740 --> 00:11:53,240 Among the other DLLs, E1 DLL. 147 00:11:53,520 --> 00:11:58,500 It is already loaded in our task list that we use for getting this information. 148 00:11:59,020 --> 00:12:05,840 So it must be loaded into every processes that is starting in our system. 149 00:12:05,900 --> 00:12:06,040 So it must be loaded into every processes that is starting in our system. 150 00:12:07,420 --> 00:12:15,880 So to find out how this malicious file does this, of course we should check the registry. 151 00:12:16,160 --> 00:12:20,820 We open the registry editor and try to find this E1 DLL string. 152 00:12:21,660 --> 00:12:22,980 And here it goes. 153 00:12:23,420 --> 00:12:29,260 The key is hq-vacuum-machine-software-microsoft-windows-inti-current-version-windows-app-init-dll. 154 00:12:29,500 --> 00:12:35,620 This key is used by operating system when a new instance of the process is created. 155 00:12:35,620 --> 00:12:36,020 Well. 156 00:12:36,040 --> 00:12:44,400 The system loads all the DLLs listed in this parameter into other space of the process 157 00:12:44,400 --> 00:12:45,020 being created. 158 00:12:48,540 --> 00:12:49,180 Okay. 159 00:12:49,600 --> 00:12:58,020 I guess all of you must know how to fight this malicious application right now. 160 00:12:58,600 --> 00:13:04,500 Well, please, raise your hands who knows what to do in order to remove this application, 161 00:13:04,720 --> 00:13:06,020 in order to remove this application. 162 00:13:06,020 --> 00:13:07,520 You can see the library and executable. 163 00:13:07,700 --> 00:13:08,360 Please, raise your hands. 164 00:13:11,220 --> 00:13:13,060 Okay, very, very few. 165 00:13:13,960 --> 00:13:16,200 I showed everything for these. 166 00:13:16,920 --> 00:13:18,060 Okay, let's see. 167 00:13:20,080 --> 00:13:21,780 Well, it's very easy, really. 168 00:13:22,120 --> 00:13:29,740 Well, all we have to do is just to prevent this E1 DLL from being loaded into every process. 169 00:13:30,220 --> 00:13:35,520 So to do that, we just need to open registry editor again. 170 00:13:35,640 --> 00:13:36,000 Okay. 171 00:13:36,000 --> 00:13:39,060 and modify registry settings. Nothing more. 172 00:13:40,160 --> 00:13:42,100 So, we just open this key 173 00:13:45,360 --> 00:13:47,380 and remove the value. 174 00:13:51,600 --> 00:13:54,980 We also need to check where the self-exert, 175 00:13:57,300 --> 00:14:00,520 well, where it changed the registry values 176 00:14:00,520 --> 00:14:02,840 in order to start after system reboot. 177 00:14:02,840 --> 00:14:07,900 So, we have to search the registry for this self-exert value 178 00:14:07,900 --> 00:14:10,040 and to remove it as well. 179 00:14:10,380 --> 00:14:15,100 After that, we can easily reboot our system 180 00:14:15,840 --> 00:14:19,760 and check if the malicious application is still present. 181 00:14:20,340 --> 00:14:21,440 It's that easy. 182 00:14:25,240 --> 00:14:29,480 I guess everybody, everyone is present here 183 00:14:29,480 --> 00:14:31,340 will find it... 184 00:14:31,340 --> 00:14:32,820 will find it... 185 00:14:32,840 --> 00:14:34,020 will find this way himself 186 00:14:34,020 --> 00:14:38,380 when he met this malicious application on his system. 187 00:14:40,300 --> 00:14:42,440 Well, when we reboot the system, 188 00:14:43,220 --> 00:14:45,400 to check if everything is okay, 189 00:14:45,520 --> 00:14:47,440 we can just run... 190 00:14:47,440 --> 00:14:50,480 try to run the antivirus installation again. 191 00:14:51,120 --> 00:14:52,280 And here it goes. 192 00:14:52,580 --> 00:14:54,080 Everything seems to be okay. 193 00:14:54,280 --> 00:14:58,360 So, after that we can automate removal of 194 00:14:59,360 --> 00:15:01,180 malicious files using antivirus 195 00:15:01,180 --> 00:15:03,500 or just delete the files ourselves. 196 00:15:06,220 --> 00:15:09,720 Well, we have published this information on our site, 197 00:15:09,860 --> 00:15:13,200 which is www.viruslist.com. 198 00:15:13,380 --> 00:15:16,200 And these instructions were published for users 199 00:15:16,200 --> 00:15:18,460 who cannot install the antivirus solution. 200 00:15:18,960 --> 00:15:26,020 So, the malware creator read this message as well 201 00:15:26,020 --> 00:15:30,240 and he saw that it is too easy for user to prevent, 202 00:15:30,240 --> 00:15:33,620 to stop his malware on his system. 203 00:15:33,700 --> 00:15:38,120 So, he tried to create a kind of resistance to manual removal. 204 00:15:38,740 --> 00:15:40,060 Let's see how it works. 205 00:15:40,640 --> 00:15:45,060 So, when the user deletes the value from the registry 206 00:15:45,060 --> 00:15:46,620 and reboots his system, 207 00:15:48,220 --> 00:15:52,300 he's trying to run the antivirus solution. 208 00:15:53,340 --> 00:15:54,600 And he gets nothing. 209 00:15:55,040 --> 00:16:00,000 Seems like the malicious application continues to work. 210 00:16:00,000 --> 00:16:01,020 On his system. 211 00:16:02,000 --> 00:16:04,780 Well, let's check first the list of the processes. 212 00:16:05,640 --> 00:16:08,520 With the task list command we can do that easily. 213 00:16:08,800 --> 00:16:09,740 And we did... 214 00:16:09,740 --> 00:16:12,100 We do not find the surface of the process. 215 00:16:13,500 --> 00:16:16,480 But E1DLL might be still working 216 00:16:17,000 --> 00:16:19,780 in the address space of each process started in the system. 217 00:16:20,160 --> 00:16:21,280 Let's check the registry. 218 00:16:21,700 --> 00:16:23,060 Yeah, we got it. 219 00:16:23,560 --> 00:16:26,240 Up in E1DLL's value contains E1DLL. 220 00:16:26,440 --> 00:16:29,020 We try to delete it and check it again. 221 00:16:29,020 --> 00:16:30,420 Open the registry editor. 222 00:16:30,820 --> 00:16:32,800 And what we see? 223 00:16:32,920 --> 00:16:34,240 The value is returned. 224 00:16:35,000 --> 00:16:40,460 So, what... 225 00:16:41,200 --> 00:16:42,860 Let's try to analyze what happened. 226 00:16:44,060 --> 00:16:45,340 And what can we do? 227 00:16:45,600 --> 00:16:48,500 The first thing we notice is that malware restores the registry values 228 00:16:48,500 --> 00:16:50,120 when the application terminates. 229 00:16:50,260 --> 00:16:55,560 When the E1DLL is maybe unloaded from the edit process. 230 00:16:56,040 --> 00:16:58,580 And there are set of the processes running 231 00:16:59,020 --> 00:17:01,020 and closing from time to time on our system. 232 00:17:01,980 --> 00:17:08,480 But the routine that restores the value is called several times. 233 00:17:09,080 --> 00:17:11,780 But the value is restored only once 234 00:17:11,780 --> 00:17:14,080 if it is not present in that key. 235 00:17:15,160 --> 00:17:18,580 So, it looks like the malware uses one of the following functions 236 00:17:18,580 --> 00:17:22,300 that are used for searching substring in the specified string. 237 00:17:24,040 --> 00:17:27,560 So, what can we do with this information? 238 00:17:27,560 --> 00:17:32,400 We can hack the malware removal resistance mechanism. 239 00:17:33,880 --> 00:17:36,700 Please, those of you who know how to hack it 240 00:17:36,700 --> 00:17:39,220 based on this information, please, raise your hands. 241 00:17:41,840 --> 00:17:43,600 Okay, not very, very many. 242 00:17:47,920 --> 00:17:50,340 And let's see how to do that. 243 00:17:50,680 --> 00:17:52,020 It is very easy. 244 00:17:52,060 --> 00:17:53,400 It is based on the... 245 00:17:54,700 --> 00:17:57,380 Well, the way malware checks for... 246 00:17:57,380 --> 00:17:57,900 the value. 247 00:17:58,100 --> 00:18:00,640 It checks for presence of substring in this text. 248 00:18:00,900 --> 00:18:03,100 And what we have to do is to add some... 249 00:18:03,100 --> 00:18:05,380 some trash to this string. 250 00:18:06,220 --> 00:18:11,140 Well, when the malware calls this function of searching for substring, 251 00:18:11,220 --> 00:18:12,880 the function returns true. 252 00:18:13,000 --> 00:18:17,120 Yes, this E1DLL is really present in this value. 253 00:18:17,360 --> 00:18:19,880 But when the system is trying to load this module, 254 00:18:20,260 --> 00:18:22,620 it couldn't find this module. 255 00:18:22,760 --> 00:18:24,920 It can't find this module and nothing is loaded. 256 00:18:25,120 --> 00:18:26,160 So, we can easily... 257 00:18:26,160 --> 00:18:31,800 After that, reboot our system and, well, delete the malicious files. 258 00:18:34,360 --> 00:18:37,880 Okay, let's talk about the other example, 259 00:18:38,200 --> 00:18:40,620 which is TrojanWin32AgentACH, 260 00:18:41,880 --> 00:18:43,300 which was made in Japan. 261 00:18:43,780 --> 00:18:45,620 And it is detected... 262 00:18:45,620 --> 00:18:47,900 It was detected on December of 2006. 263 00:18:48,780 --> 00:18:52,140 Well, after running, it silently removes itself. 264 00:18:52,880 --> 00:18:54,380 And it suspends... 265 00:18:54,380 --> 00:18:57,320 It's destructive functionality till the next Friday. 266 00:18:58,120 --> 00:19:01,680 After that, it disables pressing Ctrl-Alt-Delete, 267 00:19:01,840 --> 00:19:04,180 disables running an executable file from shell, 268 00:19:04,380 --> 00:19:08,200 disables system shutdown and reboot functions. 269 00:19:08,720 --> 00:19:11,200 And if you try to hard reboot, 270 00:19:11,520 --> 00:19:14,500 it disables loading your system in any available mode. 271 00:19:16,400 --> 00:19:18,380 So, let's see how it works. 272 00:19:20,680 --> 00:19:23,100 Well, the infecting of the system. 273 00:19:23,720 --> 00:19:24,680 It's quite obvious. 274 00:19:25,540 --> 00:19:28,740 As usual, you receive the file in the mail attachment 275 00:19:28,740 --> 00:19:32,120 or just find it in the network. 276 00:19:32,740 --> 00:19:34,480 You launch the application, it disappears. 277 00:19:39,120 --> 00:19:41,960 Of course, it looks like a Trojan activity, 278 00:19:42,140 --> 00:19:43,480 so you might be... 279 00:19:43,480 --> 00:19:45,580 You have to be very attentive. 280 00:19:45,660 --> 00:19:47,200 And when you see such kind of things, 281 00:19:48,280 --> 00:19:49,340 please check everything. 282 00:19:49,340 --> 00:19:53,600 Well, how infection symptoms look like? 283 00:19:55,160 --> 00:19:59,900 Well, we had tried to launch our favorite applications, maybe. 284 00:20:01,760 --> 00:20:03,320 Outlook Express doesn't run. 285 00:20:03,400 --> 00:20:03,980 Windows... 286 00:20:03,980 --> 00:20:06,360 Windows Media Player doesn't run. 287 00:20:06,640 --> 00:20:08,300 Remote Assistant doesn't run. 288 00:20:11,140 --> 00:20:15,800 When we tried to launch Notepad using Start Run menu, 289 00:20:16,060 --> 00:20:16,880 nothing happens. 290 00:20:17,080 --> 00:20:18,380 The same with Registry Editor. 291 00:20:21,100 --> 00:20:24,240 Well, this is the case when time really matters. 292 00:20:24,820 --> 00:20:31,420 Because if you try to postpone the curing routines, 293 00:20:31,760 --> 00:20:34,060 curing procedures, you will lose your system. 294 00:20:34,980 --> 00:20:38,180 So, you have to do something immediately. 295 00:20:38,660 --> 00:20:40,960 If you reboot your system, you will lose it. 296 00:20:44,620 --> 00:20:47,500 That is the result of hard reset. 297 00:20:47,500 --> 00:20:50,300 You will get this picture on your screen, 298 00:20:50,480 --> 00:20:51,820 and nothing will boot. 299 00:20:54,740 --> 00:20:57,440 No save mode, no any other way. 300 00:20:57,860 --> 00:21:01,960 So, all you can do is just using some, you know, 301 00:21:02,560 --> 00:21:04,640 maybe live CDs if you got one. 302 00:21:05,340 --> 00:21:08,100 But if you have only Windows system and nothing else, 303 00:21:08,240 --> 00:21:09,800 you can't do anything. 304 00:21:09,980 --> 00:21:13,720 So, you have to do the curing... 305 00:21:14,400 --> 00:21:16,200 to apply curing procedures immediately. 306 00:21:18,980 --> 00:21:20,420 Let's see what we can do. 307 00:21:20,660 --> 00:21:22,020 Let's inspect our system. 308 00:21:22,720 --> 00:21:24,520 Well, Task Manager is still available, 309 00:21:25,400 --> 00:21:29,320 despite of the other applications cannot be run. 310 00:21:29,480 --> 00:21:32,940 We can see the alien processes in the process list. 311 00:21:34,680 --> 00:21:37,540 Well, My Computer Explorer is still available, 312 00:21:37,740 --> 00:21:39,340 and we can run Internet Explorer. 313 00:21:43,680 --> 00:21:44,720 Well, but... 314 00:21:45,580 --> 00:21:46,560 One more thing. 315 00:21:46,560 --> 00:21:48,080 Find Files is working. 316 00:21:48,760 --> 00:21:51,320 So, the first thing we must do is 317 00:21:51,320 --> 00:21:55,180 just to find the alien files on our system. 318 00:21:55,860 --> 00:21:57,260 And here they are, 319 00:21:57,360 --> 00:21:59,780 in Windows system 32 folder, 320 00:22:00,440 --> 00:22:03,980 as usual for Trojans and malicious applications. 321 00:22:04,500 --> 00:22:06,480 So, we have found both files, 322 00:22:08,740 --> 00:22:11,960 but we must access the registry editor 323 00:22:12,520 --> 00:22:15,460 to find what has happened. 324 00:22:15,460 --> 00:22:19,380 It disallows us running registry editor in usual way, 325 00:22:19,460 --> 00:22:21,620 so we will use a kind of unusual one. 326 00:22:21,840 --> 00:22:24,560 We will use Internet Explorer for launching a new process. 327 00:22:24,780 --> 00:22:27,140 Here is a little simple script 328 00:22:27,140 --> 00:22:31,640 written in JavaScript for launching a new process 329 00:22:31,640 --> 00:22:34,300 from the address bar of Internet Explorer. 330 00:22:35,080 --> 00:22:36,100 It is very easy. 331 00:22:36,160 --> 00:22:39,500 It creates ActiveX object of wscript.shell 332 00:22:39,500 --> 00:22:42,300 and calls one of its functions, 333 00:22:42,480 --> 00:22:43,600 which is exec function. 334 00:22:43,600 --> 00:22:44,980 Here we go. 335 00:22:45,160 --> 00:22:46,620 We launch the registry editor. 336 00:22:47,880 --> 00:22:53,160 Now we must search for the files, 337 00:22:53,260 --> 00:22:54,700 the name of the files that we have found. 338 00:22:55,420 --> 00:22:56,580 And here they are. 339 00:22:59,800 --> 00:23:01,040 The path is 340 00:23:01,040 --> 00:23:03,600 hkey classes root.exe file shell open command. 341 00:23:03,940 --> 00:23:07,240 If we open the neighboring value, 342 00:23:07,440 --> 00:23:08,500 which is runs command, 343 00:23:09,380 --> 00:23:11,860 we see that it is not modified. 344 00:23:12,120 --> 00:23:13,480 So, it tells us that 345 00:23:13,600 --> 00:23:16,280 we still can launch any process on our system, 346 00:23:16,360 --> 00:23:17,780 but in an alternative way, 347 00:23:17,860 --> 00:23:18,700 not using open, 348 00:23:18,880 --> 00:23:20,220 but using runs, 349 00:23:21,100 --> 00:23:23,740 specifying the current user 350 00:23:23,740 --> 00:23:25,520 and the application we launch. 351 00:23:31,440 --> 00:23:38,140 Then we must find the second file executable. 352 00:23:38,480 --> 00:23:42,160 And we find it in the hkey-local-machine software 353 00:23:42,160 --> 00:23:47,020 Microsoft Windows NT current version WinLogon UI host value, 354 00:23:47,300 --> 00:23:49,020 which is used by operating system 355 00:23:49,020 --> 00:23:50,060 when you boot your system. 356 00:23:50,240 --> 00:23:54,260 So, this malware modified this value. 357 00:23:54,540 --> 00:23:56,540 And when you reboot the system, 358 00:23:56,740 --> 00:24:00,100 system uses this value to launch this process. 359 00:24:00,340 --> 00:24:05,460 And if the process belongs to a system one, 360 00:24:05,700 --> 00:24:07,360 it will continue booting your system. 361 00:24:07,540 --> 00:24:09,400 But in this case, 362 00:24:09,860 --> 00:24:10,280 it will... 363 00:24:11,280 --> 00:24:12,960 the booting of system will be stopped, 364 00:24:13,100 --> 00:24:13,660 will be prevented. 365 00:24:16,300 --> 00:24:18,660 So, that's the way how this trojan works. 366 00:24:19,500 --> 00:24:20,740 Well, how to remove it? 367 00:24:20,800 --> 00:24:22,560 It's very easy, I guess, 368 00:24:22,580 --> 00:24:23,800 when you got all this information, 369 00:24:23,900 --> 00:24:27,960 when you did the inspecting. 370 00:24:31,220 --> 00:24:33,560 Okay, we just need to run the registry editor 371 00:24:34,080 --> 00:24:36,040 using this way that I showed before. 372 00:24:41,320 --> 00:24:42,200 We run it, 373 00:24:42,320 --> 00:24:45,880 and we must just restore all the values 374 00:24:45,880 --> 00:24:46,680 that were modified, 375 00:24:46,940 --> 00:24:47,960 that we have found. 376 00:24:49,120 --> 00:24:52,700 Well, I think that we will not pay so much attention to it, 377 00:24:52,780 --> 00:24:54,060 because it's quite obvious. 378 00:24:54,180 --> 00:24:57,200 We just need to restore the original values, 379 00:24:58,940 --> 00:25:00,320 which are not that complicated, 380 00:25:00,540 --> 00:25:02,260 and you might know all of them. 381 00:25:03,000 --> 00:25:04,280 So, let's go further. 382 00:25:07,720 --> 00:25:09,800 Control check is already... 383 00:25:10,920 --> 00:25:13,000 It's obvious, well, it really works. 384 00:25:13,200 --> 00:25:13,900 We will skip it, 385 00:25:13,940 --> 00:25:15,420 because of lack of time. 386 00:25:15,640 --> 00:25:18,120 Well, virus win32-suburbs-a. 387 00:25:18,320 --> 00:25:21,300 This is the place in my presentation 388 00:25:21,300 --> 00:25:25,600 where I must wear this cap. 389 00:25:26,860 --> 00:25:27,360 Crazy. 390 00:25:27,880 --> 00:25:29,040 It is written here. 391 00:25:29,800 --> 00:25:33,000 So, here is the most interesting part of my presentation. 392 00:25:33,000 --> 00:25:34,140 Here it starts. 393 00:25:34,580 --> 00:25:38,460 Well, it is an executable virus, suburbs. 394 00:25:38,660 --> 00:25:40,880 It was detected last year, 395 00:25:41,040 --> 00:25:45,760 and the virus infects executable files 396 00:25:45,760 --> 00:25:47,500 located on hard disk partition, 397 00:25:47,660 --> 00:25:48,680 which is selected at random. 398 00:25:48,800 --> 00:25:50,220 So, it infects random files. 399 00:25:50,940 --> 00:25:54,380 It injects onto every process that has visible window. 400 00:25:54,520 --> 00:25:59,560 It makes screenshots of running of opened windows, 401 00:25:59,680 --> 00:26:01,500 and it sends them to the Internet. 402 00:26:01,500 --> 00:26:06,140 So, this is all about this virus. 403 00:26:06,700 --> 00:26:08,300 Let's see what we can do 404 00:26:08,300 --> 00:26:12,340 in order to cure the executable virus 405 00:26:12,340 --> 00:26:14,580 on our own, from scratch. 406 00:26:15,440 --> 00:26:16,980 The first thing we must do 407 00:26:16,980 --> 00:26:18,840 is to get the code of the virus. 408 00:26:19,640 --> 00:26:23,380 To do that, we must use ntsdo2. 409 00:26:23,700 --> 00:26:26,080 Let us assume that we have this infected application. 410 00:26:26,400 --> 00:26:27,680 It is Kodak Image Xe, 411 00:26:27,760 --> 00:26:30,120 which is part of Windows. 412 00:26:30,120 --> 00:26:32,280 Well, it is infected. 413 00:26:33,380 --> 00:26:34,500 We know that. 414 00:26:34,760 --> 00:26:37,540 Let us get the code of the virus 415 00:26:37,540 --> 00:26:38,300 from this application. 416 00:26:39,460 --> 00:26:42,400 We use ntsd2, 417 00:26:42,740 --> 00:26:43,820 which is part of Windows, 418 00:26:44,060 --> 00:26:48,580 to get the assembly code of the application. 419 00:26:49,000 --> 00:26:50,260 The first thing we must do is 420 00:26:50,260 --> 00:26:52,580 to view the IP header. 421 00:26:53,200 --> 00:26:55,460 We must specify the base address 422 00:26:56,420 --> 00:26:58,300 of the application. 423 00:27:00,700 --> 00:27:03,440 Check the address of the entry point. 424 00:27:04,000 --> 00:27:05,380 And after that, 425 00:27:06,300 --> 00:27:07,980 unassemble a piece of code 426 00:27:07,980 --> 00:27:09,080 starting from the entry point. 427 00:27:09,580 --> 00:27:12,860 Usually, viruses put their code 428 00:27:12,860 --> 00:27:14,380 right there. 429 00:27:14,940 --> 00:27:18,160 The same is with Ceburex virus. 430 00:27:19,200 --> 00:27:20,920 Here is the assembly listing. 431 00:27:22,080 --> 00:27:24,240 But we have this. 432 00:27:24,420 --> 00:27:26,600 Instead of names of API functions, 433 00:27:26,740 --> 00:27:27,780 we get only the 434 00:27:28,620 --> 00:27:29,560 offsets of 435 00:27:31,960 --> 00:27:33,440 addresses of these functions. 436 00:27:33,880 --> 00:27:35,140 In order to get 437 00:27:35,140 --> 00:27:37,460 more or less readable code, 438 00:27:38,240 --> 00:27:39,720 we must patch it 439 00:27:40,300 --> 00:27:40,780 and 440 00:27:41,940 --> 00:27:45,620 put the names of the API functions. 441 00:27:46,560 --> 00:27:48,340 I will show you how to do that. 442 00:27:48,680 --> 00:27:49,880 We use the address 443 00:27:51,540 --> 00:27:54,380 which is used for call operation. 444 00:27:55,080 --> 00:27:57,240 We can check what is placed 445 00:27:57,240 --> 00:27:58,300 at that address. 446 00:27:59,580 --> 00:28:00,700 And this is 447 00:28:01,560 --> 00:28:03,120 getModuleFileNameA API function. 448 00:28:03,900 --> 00:28:04,700 After that, 449 00:28:04,800 --> 00:28:06,700 we apply a small patch 450 00:28:08,220 --> 00:28:10,940 to the place where this function is called. 451 00:28:13,740 --> 00:28:14,780 And that's all. 452 00:28:16,480 --> 00:28:18,120 Print the unassembled listing. 453 00:28:18,400 --> 00:28:19,460 And we can see here that 454 00:28:20,180 --> 00:28:21,500 we have now this 455 00:28:23,220 --> 00:28:24,340 getModuleFileNameA name. 456 00:28:25,240 --> 00:28:26,260 It's quite readable. 457 00:28:26,260 --> 00:28:28,440 The same can be done with other calls. 458 00:28:30,180 --> 00:28:31,580 But after all, 459 00:28:32,060 --> 00:28:33,220 we get the 460 00:28:33,960 --> 00:28:34,840 code listing. 461 00:28:34,980 --> 00:28:36,100 It's not that large, 462 00:28:36,280 --> 00:28:37,060 as you see it. 463 00:28:37,260 --> 00:28:39,440 Only maybe five screens. 464 00:28:40,280 --> 00:28:40,840 Right? 465 00:28:40,940 --> 00:28:42,880 And this is all the code 466 00:28:42,880 --> 00:28:44,260 that you need for analysis. 467 00:28:44,800 --> 00:28:46,200 After analyzing the code, 468 00:28:46,420 --> 00:28:47,280 you can understand, 469 00:28:47,600 --> 00:28:48,980 you can see the clear picture 470 00:28:48,980 --> 00:28:50,500 of what this virus does. 471 00:28:51,840 --> 00:28:53,000 Sorry for my English. 472 00:28:53,220 --> 00:28:53,660 Well, 473 00:28:53,660 --> 00:28:58,000 by analyzing the source code, 474 00:28:58,200 --> 00:29:00,060 we can reveal the following picture. 475 00:29:00,340 --> 00:29:02,460 Well, the virus uses the source file. 476 00:29:02,600 --> 00:29:08,500 It cuts the header of source file, 477 00:29:08,600 --> 00:29:09,380 compresses it, 478 00:29:09,440 --> 00:29:12,800 and stores at the end of the file. 479 00:29:13,740 --> 00:29:16,280 It replaces the header of source file 480 00:29:16,280 --> 00:29:17,240 with its own header 481 00:29:17,240 --> 00:29:19,740 and with its own virus section, 482 00:29:19,940 --> 00:29:21,920 which contains executable code. 483 00:29:22,720 --> 00:29:23,280 Also, 484 00:29:23,280 --> 00:29:25,540 it attaches compressed virus module 485 00:29:25,540 --> 00:29:27,120 in the end of the file. 486 00:29:27,320 --> 00:29:30,020 So, in order to cure the infected file, 487 00:29:30,260 --> 00:29:34,260 we have to remove all these pieces of code 488 00:29:34,260 --> 00:29:35,140 and pieces of data 489 00:29:35,140 --> 00:29:37,800 which were added by the virus. 490 00:29:38,080 --> 00:29:39,360 But after that, 491 00:29:39,460 --> 00:29:41,040 is the most difficult thing. 492 00:29:41,180 --> 00:29:42,500 We have to decompress 493 00:29:42,500 --> 00:29:44,300 the chunk of source file 494 00:29:44,300 --> 00:29:46,280 and put it in the beginning. 495 00:29:47,180 --> 00:29:47,740 Well, 496 00:29:47,880 --> 00:29:49,620 in the case of SubUrqs, 497 00:29:49,700 --> 00:29:50,980 we are quite lucky 498 00:29:50,980 --> 00:29:51,260 because 499 00:29:51,260 --> 00:29:53,540 it uses 500 00:29:53,540 --> 00:29:58,540 the algorithm of packing CAP files. 501 00:29:58,980 --> 00:30:01,440 And Microsoft operating system includes 502 00:30:01,440 --> 00:30:05,840 the tool for decompressing these CAP files 503 00:30:05,840 --> 00:30:07,420 that we will use. 504 00:30:08,240 --> 00:30:10,200 But to create the solution, 505 00:30:10,420 --> 00:30:13,680 our own small, tiny antivirus 506 00:30:13,680 --> 00:30:15,000 for curing these files, 507 00:30:15,240 --> 00:30:18,100 we have to build our own PE application, 508 00:30:18,380 --> 00:30:18,880 PE file. 509 00:30:20,240 --> 00:30:20,800 Well, 510 00:30:21,140 --> 00:30:23,100 it will be quite obvious. 511 00:30:23,320 --> 00:30:25,140 It will contain only PE header 512 00:30:25,140 --> 00:30:25,900 and one section. 513 00:30:27,640 --> 00:30:28,200 Well, 514 00:30:28,340 --> 00:30:29,780 in the section, 515 00:30:30,640 --> 00:30:33,040 there should be placed 516 00:30:33,040 --> 00:30:36,500 import directory table, 517 00:30:36,740 --> 00:30:37,620 import lookup table, 518 00:30:37,780 --> 00:30:39,060 and import address table. 519 00:30:40,400 --> 00:30:41,580 This is obligatory. 520 00:30:42,000 --> 00:30:42,240 Well, 521 00:30:42,340 --> 00:30:44,540 also there must be import names, 522 00:30:44,640 --> 00:30:46,500 which are the names of API functions 523 00:30:46,500 --> 00:30:47,220 that we will use. 524 00:30:47,420 --> 00:30:48,380 There will be 525 00:30:48,380 --> 00:30:52,160 some piece of user data and user code, 526 00:30:52,940 --> 00:30:54,780 which we will create right now. 527 00:30:56,940 --> 00:30:57,500 Okay. 528 00:30:58,300 --> 00:30:59,740 Let's see how it looks like 529 00:31:00,200 --> 00:31:02,580 programming the pure machine code in Notepad. 530 00:31:03,880 --> 00:31:06,220 First we have to do is 531 00:31:06,220 --> 00:31:07,360 to plan our actions. 532 00:31:08,420 --> 00:31:09,740 Here is the short plan. 533 00:31:10,020 --> 00:31:11,100 Zero field work area, 534 00:31:11,280 --> 00:31:12,180 create import list, 535 00:31:12,340 --> 00:31:14,340 create import tables, 536 00:31:14,760 --> 00:31:16,520 prepare space for our variables, 537 00:31:16,680 --> 00:31:17,480 create user code, 538 00:31:17,480 --> 00:31:18,680 relocate user code, 539 00:31:18,940 --> 00:31:19,960 create PE header, 540 00:31:20,040 --> 00:31:20,600 and write to file. 541 00:31:20,740 --> 00:31:21,180 That's all. 542 00:31:22,740 --> 00:31:23,600 That's easy, right? 543 00:31:25,000 --> 00:31:25,520 Well, 544 00:31:26,340 --> 00:31:28,040 the second thing we must 545 00:31:28,040 --> 00:31:30,840 just put as notes in Notepad 546 00:31:30,840 --> 00:31:33,780 is the map of the memory 547 00:31:33,780 --> 00:31:34,980 that we use for our solution. 548 00:31:35,820 --> 00:31:37,560 In order not to get, 549 00:31:37,660 --> 00:31:38,140 you know, 550 00:31:38,180 --> 00:31:41,640 messed in all of these memory addresses, 551 00:31:42,000 --> 00:31:45,420 we have to mark every space that we use. 552 00:31:45,980 --> 00:31:47,460 Something is for PE header, 553 00:31:47,600 --> 00:31:48,480 some for work area, 554 00:31:49,560 --> 00:31:51,420 the space for import headers, 555 00:31:51,480 --> 00:31:51,800 tables, 556 00:31:52,200 --> 00:31:53,160 and so on. 557 00:31:53,920 --> 00:31:55,520 Some space for user variables, 558 00:31:56,320 --> 00:31:57,420 and, of course, 559 00:31:57,420 --> 00:31:57,940 for the code. 560 00:31:59,140 --> 00:32:00,160 Well, let's start. 561 00:32:01,660 --> 00:32:02,680 Let the show begin. 562 00:32:03,720 --> 00:32:05,460 This is a scenario, actually, 563 00:32:05,520 --> 00:32:06,920 for DebugExe2, 564 00:32:07,160 --> 00:32:08,480 which is part of Windows system, 565 00:32:08,580 --> 00:32:08,860 I repeat. 566 00:32:11,040 --> 00:32:13,880 So this is the coding in Hex. 567 00:32:15,420 --> 00:32:18,220 We just build the import tables. 568 00:32:21,680 --> 00:32:24,040 We set our variables, 569 00:32:24,320 --> 00:32:25,640 the initial values, 570 00:32:25,940 --> 00:32:28,540 and here go the user code. 571 00:32:28,940 --> 00:32:33,000 This is machine code in Hex. 572 00:32:33,680 --> 00:32:35,780 Well, it's not that difficult, really, 573 00:32:35,840 --> 00:32:38,740 and I coded it myself in Notepad, 574 00:32:38,940 --> 00:32:40,880 and all you have to remember 575 00:32:40,880 --> 00:32:43,780 is maybe a dozen of opcodes. 576 00:32:45,420 --> 00:32:46,900 Like conditional jumps, 577 00:32:47,080 --> 00:32:49,140 the calls of the functions, 578 00:32:49,360 --> 00:32:50,720 and pushing parameters 579 00:32:50,720 --> 00:32:52,480 and popping them from the stack. 580 00:32:52,740 --> 00:32:54,860 And if you even forgot 581 00:32:56,420 --> 00:32:58,100 the opcode, 582 00:32:58,260 --> 00:32:59,680 you can always use this 583 00:32:59,680 --> 00:33:01,180 in-TSD tool 584 00:33:01,180 --> 00:33:03,540 to assemble or disassemble 585 00:33:03,540 --> 00:33:06,120 the code. 586 00:33:06,340 --> 00:33:09,120 So you can get the opcodes 587 00:33:09,120 --> 00:33:10,640 just remembering 588 00:33:10,640 --> 00:33:12,760 how they sound in assembler. 589 00:33:16,040 --> 00:33:17,580 I used not more than 590 00:33:17,580 --> 00:33:20,340 ten different opcodes 591 00:33:20,340 --> 00:33:21,140 here in this code. 592 00:33:21,720 --> 00:33:23,300 So what we do is 593 00:33:23,300 --> 00:33:24,520 open the file, 594 00:33:24,720 --> 00:33:29,060 cut and remove the infected parts, 595 00:33:29,260 --> 00:33:32,180 and extract those parts, 596 00:33:32,360 --> 00:33:34,760 that part that was compressed 597 00:33:34,760 --> 00:33:35,440 by the virus. 598 00:33:36,800 --> 00:33:38,540 Okay, let's save now this file. 599 00:33:38,960 --> 00:33:40,740 But before we have to remove 600 00:33:40,740 --> 00:33:41,460 our comments. 601 00:33:41,920 --> 00:33:43,560 They were just useful 602 00:33:43,560 --> 00:33:47,500 for creation of this file. 603 00:33:48,680 --> 00:33:50,780 We save it as a text file, 604 00:33:52,460 --> 00:33:53,840 and after that 605 00:33:54,620 --> 00:33:55,760 the magic's in 606 00:33:56,400 --> 00:33:57,520 converting the text file 607 00:33:57,520 --> 00:33:59,080 to executable. 608 00:34:00,140 --> 00:34:01,520 We just call debug, 609 00:34:03,200 --> 00:34:04,240 redirecting the input 610 00:34:04,240 --> 00:34:05,460 from this text file. 611 00:34:07,880 --> 00:34:08,860 And that's all. 612 00:34:10,260 --> 00:34:11,660 We got some errors here 613 00:34:11,660 --> 00:34:12,740 because of our comments, 614 00:34:12,740 --> 00:34:13,640 but it doesn't matter 615 00:34:13,640 --> 00:34:16,200 because the file is created. 616 00:34:16,920 --> 00:34:19,420 It is actually a .bin file. 617 00:34:19,540 --> 00:34:20,820 You see cure.bin here. 618 00:34:21,060 --> 00:34:23,300 Three kilobytes size. 619 00:34:24,340 --> 00:34:26,440 This is the smallest antivirus solution 620 00:34:26,440 --> 00:34:27,160 I've ever seen. 621 00:34:29,780 --> 00:34:31,620 After that we rename this 622 00:34:31,620 --> 00:34:32,760 .bin file to exec 623 00:34:33,940 --> 00:34:35,480 and execute it. 624 00:34:36,440 --> 00:34:38,080 Oh, not really execute it 625 00:34:38,080 --> 00:34:39,460 because it doesn't contain 626 00:34:39,460 --> 00:34:40,760 the decompressing routine. 627 00:34:40,760 --> 00:34:44,840 So we now have to build 628 00:34:45,960 --> 00:34:48,000 another file for 629 00:34:48,760 --> 00:34:49,860 calling this 630 00:34:51,640 --> 00:34:52,960 decompression routine. 631 00:34:53,880 --> 00:34:56,020 Well, we have to build 632 00:34:56,020 --> 00:34:57,000 one more file, 633 00:34:57,120 --> 00:34:57,980 which is batch file. 634 00:34:59,260 --> 00:35:01,500 What we do here is 635 00:35:01,500 --> 00:35:04,000 copy our source file 636 00:35:04,000 --> 00:35:04,880 that was infected 637 00:35:04,880 --> 00:35:06,100 to file.in. 638 00:35:06,300 --> 00:35:09,760 Call our current solution 639 00:35:09,760 --> 00:35:12,500 to remove the infected 640 00:35:12,500 --> 00:35:13,720 parts of the file 641 00:35:13,720 --> 00:35:15,700 and to extract compressed one. 642 00:35:16,040 --> 00:35:17,840 If we extract compressed one, 643 00:35:17,940 --> 00:35:18,900 there will be a file 644 00:35:18,900 --> 00:35:20,800 tmp.part1.cap. 645 00:35:21,060 --> 00:35:22,420 If it is not found 646 00:35:22,420 --> 00:35:23,760 in this directory, 647 00:35:24,120 --> 00:35:25,040 that means that file, 648 00:35:25,180 --> 00:35:25,760 the original file, 649 00:35:25,840 --> 00:35:26,400 was not infected. 650 00:35:26,620 --> 00:35:27,760 So we have a check here 651 00:35:27,760 --> 00:35:29,460 in order not to cure 652 00:35:29,460 --> 00:35:30,900 not infected file. 653 00:35:31,560 --> 00:35:33,140 So if the file is extracted, 654 00:35:33,300 --> 00:35:35,600 we just call the expand.util 655 00:35:36,540 --> 00:35:38,280 that extracts this cap file 656 00:35:38,280 --> 00:35:39,740 into our temporary file. 657 00:35:39,740 --> 00:35:40,220 This is our temporary bin file, 658 00:35:40,460 --> 00:35:42,540 which will be used further. 659 00:35:43,720 --> 00:35:44,420 After that, 660 00:35:44,520 --> 00:35:45,160 we glue 661 00:35:46,800 --> 00:35:51,100 two parts of the file 662 00:35:52,760 --> 00:35:57,040 and get the clean executable. 663 00:35:59,040 --> 00:36:00,660 Okay, let's save it and run. 664 00:36:04,960 --> 00:36:05,760 Here we go. 665 00:36:06,460 --> 00:36:07,880 Here are our files. 666 00:36:07,880 --> 00:36:10,140 We just run the batch file 667 00:36:10,140 --> 00:36:11,500 and execute and stop. 668 00:36:11,840 --> 00:36:12,900 Here it is. 669 00:36:13,500 --> 00:36:17,020 We get codecimage.exe.clean 670 00:36:17,020 --> 00:36:21,280 which differs from the original infected files 671 00:36:21,280 --> 00:36:25,560 by 30 kilobytes. 672 00:36:25,760 --> 00:36:27,180 So the infected part 673 00:36:27,180 --> 00:36:29,900 took 30 kilobytes. 674 00:36:30,140 --> 00:36:32,540 And this application, 675 00:36:32,920 --> 00:36:33,900 this new file, 676 00:36:34,000 --> 00:36:36,560 is clean and ready to run. 677 00:36:36,820 --> 00:36:37,860 Let's check it. 678 00:36:39,240 --> 00:36:40,660 Well, it runs okay, 679 00:36:40,840 --> 00:36:40,960 but, 680 00:36:41,000 --> 00:36:41,480 oh, 681 00:36:42,000 --> 00:36:42,280 oh, 682 00:36:42,320 --> 00:36:42,440 oh, 683 00:36:42,560 --> 00:36:43,000 sorry. 684 00:36:43,740 --> 00:36:44,620 It runs okay. 685 00:36:44,680 --> 00:36:45,480 It just requires 686 00:36:45,480 --> 00:36:47,300 some additional DLLs 687 00:36:47,300 --> 00:36:48,060 while running, 688 00:36:48,620 --> 00:36:49,360 while being run. 689 00:36:49,420 --> 00:36:52,740 So it just output this message box. 690 00:36:53,180 --> 00:36:53,620 Well, 691 00:36:53,740 --> 00:36:55,600 let's see a system evolution 692 00:36:55,600 --> 00:36:57,960 of Microsoft operating systems. 693 00:36:58,340 --> 00:36:58,880 Well, 694 00:36:58,980 --> 00:37:00,220 as for Microsoft systems, 695 00:37:01,220 --> 00:37:01,860 well, 696 00:37:01,940 --> 00:37:02,780 Microsoft included 697 00:37:02,780 --> 00:37:03,860 more and more utilities 698 00:37:03,860 --> 00:37:07,600 in their newer operating systems, 699 00:37:07,600 --> 00:37:09,380 maybe for compatibility issues. 700 00:37:09,900 --> 00:37:11,200 But as for Vista, 701 00:37:12,600 --> 00:37:14,540 here we got different picture 702 00:37:14,540 --> 00:37:17,660 because several very useful utils 703 00:37:18,220 --> 00:37:20,960 for such kind of hacks, 704 00:37:21,300 --> 00:37:21,560 maybe, 705 00:37:21,720 --> 00:37:23,560 were removed. 706 00:37:23,800 --> 00:37:26,460 Such utils as NTSD 707 00:37:26,460 --> 00:37:28,500 and DebugExcel were removed 708 00:37:28,500 --> 00:37:30,280 from Windows Vista. 709 00:37:30,840 --> 00:37:31,720 And, 710 00:37:31,960 --> 00:37:32,920 you know, 711 00:37:33,600 --> 00:37:36,600 the number of useful utilities 712 00:37:36,600 --> 00:37:38,780 in Windows Vista 713 00:37:38,780 --> 00:37:43,600 is lower than in Windows XP. 714 00:37:44,020 --> 00:37:44,960 And as for Unix, 715 00:37:45,100 --> 00:37:49,860 it was always based on tools. 716 00:37:50,420 --> 00:37:54,400 And there is a great number of tools 717 00:37:54,400 --> 00:37:54,980 that can be used 718 00:37:54,980 --> 00:37:56,740 for creating your custom solution. 719 00:37:57,520 --> 00:37:59,080 So as for Vista, 720 00:37:59,160 --> 00:38:00,280 we had a set picture here. 721 00:38:00,560 --> 00:38:03,400 But what can be done on Vista? 722 00:38:03,820 --> 00:38:06,500 Vista includes Microsoft.NET 723 00:38:06,500 --> 00:38:07,740 as a part of operating system. 724 00:38:08,180 --> 00:38:11,240 And this technology 725 00:38:11,240 --> 00:38:13,440 can be used for our needs. 726 00:38:14,580 --> 00:38:15,220 Well, 727 00:38:16,260 --> 00:38:18,920 the problem with Microsoft.NET 728 00:38:18,920 --> 00:38:19,500 is documentation. 729 00:38:19,620 --> 00:38:20,600 It is not included 730 00:38:20,600 --> 00:38:22,440 into operating system 731 00:38:22,440 --> 00:38:25,700 as an opposite to, 732 00:38:25,700 --> 00:38:26,200 you know, 733 00:38:26,260 --> 00:38:27,280 main pages in Unix. 734 00:38:28,920 --> 00:38:31,280 So we have to do something. 735 00:38:31,440 --> 00:38:32,620 And what we can do 736 00:38:32,620 --> 00:38:33,420 is use this 737 00:38:33,420 --> 00:38:35,260 .NET reflection 738 00:38:35,260 --> 00:38:35,680 mechanism. 739 00:38:36,940 --> 00:38:38,180 It allows us 740 00:38:38,180 --> 00:38:39,700 to browse the classes, 741 00:38:39,880 --> 00:38:40,780 to browse the libraries, 742 00:38:41,080 --> 00:38:42,660 and to see the members 743 00:38:42,660 --> 00:38:43,640 of the classes. 744 00:38:44,200 --> 00:38:44,880 And it is 745 00:38:44,880 --> 00:38:47,100 everything that we need. 746 00:38:47,240 --> 00:38:47,900 For example, 747 00:38:47,900 --> 00:38:49,100 I need for creating 748 00:38:49,100 --> 00:38:51,020 any application on .NET. 749 00:38:51,960 --> 00:38:52,520 So, 750 00:38:52,600 --> 00:38:53,660 we build this 751 00:38:54,360 --> 00:38:55,260 .txt file, 752 00:38:55,480 --> 00:38:56,300 and we call 753 00:38:56,960 --> 00:38:58,540 compiler of C Sharp, 754 00:38:58,640 --> 00:38:59,320 which is part of 755 00:38:59,320 --> 00:39:00,740 Windows Vista. 756 00:39:02,700 --> 00:39:03,260 And 757 00:39:03,260 --> 00:39:04,480 after that, 758 00:39:04,560 --> 00:39:05,120 we call our 759 00:39:05,260 --> 00:39:05,540 application, 760 00:39:05,680 --> 00:39:06,500 specifying the 761 00:39:06,500 --> 00:39:07,640 necessary class 762 00:39:07,640 --> 00:39:08,560 that we are interested in. 763 00:39:09,460 --> 00:39:10,060 So, 764 00:39:10,120 --> 00:39:10,900 we can browse 765 00:39:10,900 --> 00:39:11,560 the framework. 766 00:39:11,960 --> 00:39:12,900 Here it is, 767 00:39:13,000 --> 00:39:14,740 system.io.file. 768 00:39:14,820 --> 00:39:15,220 Here are the 769 00:39:15,220 --> 00:39:16,280 file functions. 770 00:39:16,720 --> 00:39:17,580 The members 771 00:39:17,580 --> 00:39:18,260 of class 772 00:39:19,280 --> 00:39:20,040 that is 773 00:39:20,040 --> 00:39:20,340 devoted 774 00:39:20,900 --> 00:39:21,300 to 775 00:39:21,300 --> 00:39:22,000 working 776 00:39:22,000 --> 00:39:22,780 with files. 777 00:39:23,180 --> 00:39:23,780 And 778 00:39:23,780 --> 00:39:24,680 we can see 779 00:39:24,680 --> 00:39:25,180 not only 780 00:39:25,180 --> 00:39:26,800 the names 781 00:39:26,800 --> 00:39:27,380 of the methods, 782 00:39:27,480 --> 00:39:28,420 but the parameters 783 00:39:28,420 --> 00:39:29,320 and the types 784 00:39:29,320 --> 00:39:30,640 and the return types 785 00:39:30,640 --> 00:39:31,340 of functions. 786 00:39:31,880 --> 00:39:33,040 And this is enough 787 00:39:33,040 --> 00:39:33,660 for creating 788 00:39:33,660 --> 00:39:34,900 any custom application 789 00:39:35,260 --> 00:39:35,720 without documentation. 790 00:39:37,960 --> 00:39:38,480 Well, 791 00:39:38,640 --> 00:39:39,620 let me show you 792 00:39:39,620 --> 00:39:40,220 examples of 793 00:39:40,220 --> 00:39:40,800 using this 794 00:39:41,840 --> 00:39:42,360 .NET 795 00:39:42,360 --> 00:39:42,960 for creating 796 00:39:42,960 --> 00:39:44,060 some custom solutions 797 00:39:46,320 --> 00:39:47,360 from scratch. 798 00:39:47,940 --> 00:39:48,220 Well, 799 00:39:48,760 --> 00:39:49,940 it is very interesting 800 00:39:49,940 --> 00:39:50,360 to sniff 801 00:39:50,360 --> 00:39:50,860 mobile communication. 802 00:39:51,980 --> 00:39:52,500 Well, 803 00:39:52,640 --> 00:39:53,300 the other thing 804 00:39:53,300 --> 00:39:53,740 we can do 805 00:39:53,740 --> 00:39:54,300 is to analyze 806 00:39:54,300 --> 00:39:55,980 what Windows Network Monitor 807 00:39:55,980 --> 00:39:56,340 says. 808 00:39:56,600 --> 00:39:57,240 It is a part 809 00:39:57,240 --> 00:39:57,860 of Task Manager. 810 00:39:58,360 --> 00:39:58,880 And 811 00:39:59,540 --> 00:40:00,660 it is not enough. 812 00:40:00,900 --> 00:40:01,200 We 813 00:40:01,200 --> 00:40:02,320 sometimes need 814 00:40:02,320 --> 00:40:03,080 to cache DNS 815 00:40:03,080 --> 00:40:03,520 requests, 816 00:40:03,800 --> 00:40:04,480 cache HTTP 817 00:40:04,480 --> 00:40:05,020 requests, 818 00:40:05,140 --> 00:40:05,560 and even 819 00:40:05,560 --> 00:40:07,200 implement our own 820 00:40:07,200 --> 00:40:08,020 IP packet filter 821 00:40:08,020 --> 00:40:09,000 because it is not 822 00:40:09,000 --> 00:40:09,840 included in Windows. 823 00:40:11,920 --> 00:40:13,220 It is very useful 824 00:40:13,220 --> 00:40:14,240 to track, 825 00:40:14,300 --> 00:40:14,660 to trace 826 00:40:15,480 --> 00:40:16,040 downloaders 827 00:40:16,040 --> 00:40:16,320 or 828 00:40:17,080 --> 00:40:17,640 vectors 829 00:40:17,640 --> 00:40:18,300 that are used 830 00:40:18,300 --> 00:40:18,820 for building, 831 00:40:18,840 --> 00:40:19,380 for creating 832 00:40:19,380 --> 00:40:20,020 zombie networks. 833 00:40:22,240 --> 00:40:22,800 Well, 834 00:40:22,920 --> 00:40:23,660 let's see 835 00:40:23,660 --> 00:40:25,060 what we can find 836 00:40:26,500 --> 00:40:27,280 looking at 837 00:40:27,280 --> 00:40:27,760 the Trojan 838 00:40:27,760 --> 00:40:28,360 Downloader. 839 00:40:30,540 --> 00:40:31,320 Let us 840 00:40:31,320 --> 00:40:31,600 assume 841 00:40:31,600 --> 00:40:31,760 that 842 00:40:31,760 --> 00:40:32,300 this 843 00:40:32,300 --> 00:40:32,660 we have 844 00:40:32,660 --> 00:40:33,380 a Trojan 845 00:40:33,380 --> 00:40:34,160 Downloader application 846 00:40:34,160 --> 00:40:34,640 running, 847 00:40:34,800 --> 00:40:35,980 which is called 848 00:40:35,980 --> 00:40:36,720 malware.exe. 849 00:40:37,140 --> 00:40:37,860 We know 850 00:40:37,860 --> 00:40:38,840 that it tries 851 00:40:38,840 --> 00:40:39,400 to download 852 00:40:39,400 --> 00:40:39,740 something, 853 00:40:39,880 --> 00:40:40,760 but we do not know 854 00:40:40,760 --> 00:40:41,780 what exactly 855 00:40:41,780 --> 00:40:42,880 and what server 856 00:40:42,880 --> 00:40:43,300 it uses. 857 00:40:44,200 --> 00:40:44,920 Let us 858 00:40:44,920 --> 00:40:45,160 assume 859 00:40:45,160 --> 00:40:45,480 that we 860 00:40:45,480 --> 00:40:46,280 have located 861 00:40:46,280 --> 00:40:46,780 the file. 862 00:40:48,240 --> 00:40:48,800 And 863 00:40:48,800 --> 00:40:49,140 now 864 00:40:50,040 --> 00:40:50,780 let's try 865 00:40:50,780 --> 00:40:51,220 to see 866 00:40:51,220 --> 00:40:52,240 what can 867 00:40:52,240 --> 00:40:52,520 we do 868 00:40:52,520 --> 00:40:52,680 with 869 00:40:52,680 --> 00:40:53,340 network 870 00:40:53,340 --> 00:40:53,740 communication. 871 00:40:54,540 --> 00:40:55,100 Well, 872 00:40:55,100 --> 00:40:55,880 I used Microsoft 873 00:40:55,880 --> 00:40:56,580 Toolback Adapter 874 00:40:56,580 --> 00:40:56,860 here. 875 00:40:57,320 --> 00:40:58,360 If the network 876 00:40:58,360 --> 00:40:58,900 is unavailable, 877 00:40:59,020 --> 00:40:59,660 you can use 878 00:40:59,660 --> 00:41:01,220 this adapter 879 00:41:01,220 --> 00:41:02,220 for your network 880 00:41:02,220 --> 00:41:02,600 experiments. 881 00:41:03,840 --> 00:41:04,480 So, 882 00:41:04,520 --> 00:41:05,200 what we do 883 00:41:05,860 --> 00:41:06,180 is 884 00:41:06,180 --> 00:41:07,040 set 885 00:41:07,040 --> 00:41:07,700 DNS 886 00:41:08,340 --> 00:41:08,980 server 887 00:41:08,980 --> 00:41:09,720 IP address 888 00:41:09,720 --> 00:41:10,060 to 889 00:41:10,060 --> 00:41:11,060 our 890 00:41:11,060 --> 00:41:12,140 local 891 00:41:12,980 --> 00:41:13,620 host 892 00:41:13,620 --> 00:41:14,260 IP address. 893 00:41:15,360 --> 00:41:16,000 After 894 00:41:16,000 --> 00:41:16,260 that, 895 00:41:17,260 --> 00:41:17,900 we 896 00:41:17,900 --> 00:41:18,100 have 897 00:41:18,100 --> 00:41:18,600 to build 898 00:41:18,600 --> 00:41:18,860 a 899 00:41:18,860 --> 00:41:19,700 kind 900 00:41:19,700 --> 00:41:19,900 of 901 00:41:19,900 --> 00:41:20,360 listener 902 00:41:20,360 --> 00:41:21,140 on our 903 00:41:21,900 --> 00:41:22,480 local 904 00:41:22,480 --> 00:41:22,900 system, 905 00:41:23,020 --> 00:41:23,360 which will 906 00:41:23,360 --> 00:41:23,700 listen 907 00:41:23,700 --> 00:41:24,600 for any 908 00:41:24,600 --> 00:41:25,080 connections 909 00:41:25,080 --> 00:41:25,440 to 910 00:41:25,440 --> 00:41:26,340 the port 911 00:41:26,340 --> 00:41:26,900 53, 912 00:41:27,220 --> 00:41:27,900 which is 913 00:41:27,900 --> 00:41:28,200 DNS 914 00:41:28,200 --> 00:41:28,540 service 915 00:41:28,540 --> 00:41:28,860 port. 916 00:41:29,200 --> 00:41:29,880 And 917 00:41:29,880 --> 00:41:30,380 we will 918 00:41:30,380 --> 00:41:30,680 output 919 00:41:30,680 --> 00:41:31,860 all the 920 00:41:31,860 --> 00:41:32,140 data 921 00:41:32,140 --> 00:41:32,520 coming 922 00:41:32,520 --> 00:41:33,440 to 923 00:41:33,440 --> 00:41:34,680 this 924 00:41:34,680 --> 00:41:34,980 port. 925 00:41:36,120 --> 00:41:36,800 Here 926 00:41:36,800 --> 00:41:37,020 is 927 00:41:37,020 --> 00:41:37,160 it. 928 00:41:39,040 --> 00:41:39,720 One 929 00:41:39,720 --> 00:41:40,040 screen 930 00:41:40,040 --> 00:41:40,320 lens. 931 00:41:50,680 --> 00:41:51,400 Listen 932 00:41:51,400 --> 00:41:51,760 to 933 00:41:51,760 --> 00:41:52,720 new 934 00:41:52,720 --> 00:41:53,440 packets 935 00:41:53,440 --> 00:41:54,080 in 936 00:41:56,180 --> 00:41:56,900 the 937 00:41:56,900 --> 00:41:57,160 loop 938 00:41:57,160 --> 00:41:57,560 and 939 00:41:57,560 --> 00:41:58,040 output 940 00:41:58,040 --> 00:41:58,580 every 941 00:41:58,580 --> 00:41:58,880 incoming 942 00:41:58,880 --> 00:41:59,340 data. 943 00:41:59,940 --> 00:42:00,660 That's 944 00:42:00,660 --> 00:42:00,800 it. 945 00:42:04,120 --> 00:42:04,840 Easy, 946 00:42:04,920 --> 00:42:05,080 right? 947 00:42:06,740 --> 00:42:07,460 You 948 00:42:07,460 --> 00:42:07,620 can 949 00:42:07,620 --> 00:42:07,760 do 950 00:42:07,760 --> 00:42:07,980 that, 951 00:42:07,980 --> 00:42:08,100 right? 952 00:42:11,140 --> 00:42:11,860 Well, 953 00:42:12,800 --> 00:42:13,520 let's 954 00:42:13,520 --> 00:42:13,760 compile 955 00:42:13,760 --> 00:42:14,240 our 956 00:42:15,840 --> 00:42:16,560 source. 957 00:42:19,900 --> 00:42:20,120 To do 958 00:42:20,120 --> 00:42:20,460 that, 959 00:42:20,480 --> 00:42:21,240 we must 960 00:42:21,240 --> 00:42:21,600 specify 961 00:42:21,600 --> 00:42:22,020 in 962 00:42:22,020 --> 00:42:22,420 path 963 00:42:22,420 --> 00:42:22,920 environment 964 00:42:22,920 --> 00:42:23,320 variable 965 00:42:23,320 --> 00:42:24,080 the 966 00:42:24,080 --> 00:42:24,580 correct 967 00:42:24,580 --> 00:42:24,940 path 968 00:42:24,940 --> 00:42:25,180 to 969 00:42:25,180 --> 00:42:25,340 the 970 00:42:26,380 --> 00:42:27,120 framework 971 00:42:27,120 --> 00:42:27,760 binaries. 972 00:42:28,500 --> 00:42:29,240 So 973 00:42:29,240 --> 00:42:29,400 we 974 00:42:29,400 --> 00:42:29,540 do 975 00:42:29,540 --> 00:42:29,700 that 976 00:42:29,700 --> 00:42:29,860 with 977 00:42:29,860 --> 00:42:31,100 set 978 00:42:31,100 --> 00:42:31,480 command. 979 00:42:34,480 --> 00:42:35,220 After 980 00:42:35,220 --> 00:42:35,600 that, 981 00:42:35,740 --> 00:42:36,640 we 982 00:42:36,640 --> 00:42:36,900 run 983 00:42:36,900 --> 00:42:37,140 the 984 00:42:37,140 --> 00:42:37,700 compiler. 985 00:42:48,080 --> 00:42:48,820 Got 986 00:42:48,960 --> 00:42:49,120 needs 987 00:42:49,120 --> 00:42:49,360 for 988 00:42:49,360 --> 00:42:49,660 any 989 00:42:49,660 --> 00:42:49,960 incoming 990 00:42:49,960 --> 00:42:50,320 DNS 991 00:42:50,320 --> 00:42:50,680 requests 992 00:42:50,680 --> 00:42:50,880 and 993 00:42:50,880 --> 00:42:51,140 prints 994 00:42:51,140 --> 00:42:51,360 to 995 00:42:51,360 --> 00:42:51,500 the 996 00:42:51,500 --> 00:42:51,940 console. 997 00:42:52,320 --> 00:42:52,800 Here 998 00:42:52,800 --> 00:42:52,960 we 999 00:42:52,960 --> 00:42:53,120 go. 1000 00:42:53,560 --> 00:42:54,160 Malware 1001 00:42:54,160 --> 00:42:54,400 tries 1002 00:42:54,400 --> 00:42:54,700 to 1003 00:42:54,700 --> 00:42:54,940 send 1004 00:42:54,940 --> 00:42:55,220 DNS 1005 00:42:55,220 --> 00:42:55,640 requests. 1006 00:42:56,020 --> 00:42:56,600 It 1007 00:42:56,600 --> 00:42:57,160 tries 1008 00:42:57,160 --> 00:42:57,480 to 1009 00:42:57,480 --> 00:42:57,800 find 1010 00:42:58,840 --> 00:42:59,440 vpad 1011 00:42:59,440 --> 00:43:00,000 host, 1012 00:43:00,220 --> 00:43:00,700 which 1013 00:43:00,700 --> 00:43:01,320 is used 1014 00:43:01,320 --> 00:43:02,040 for web 1015 00:43:02,040 --> 00:43:02,440 proxy 1016 00:43:02,440 --> 00:43:03,200 autodetection. 1017 00:43:03,420 --> 00:43:03,980 After 1018 00:43:03,980 --> 00:43:04,280 that, 1019 00:43:04,400 --> 00:43:04,880 it tries 1020 00:43:04,880 --> 00:43:05,360 to connect 1021 00:43:05,360 --> 00:43:05,980 to the 1022 00:43:05,980 --> 00:43:06,900 target 1023 00:43:06,900 --> 00:43:07,180 server, 1024 00:43:07,340 --> 00:43:07,500 which 1025 00:43:07,500 --> 00:43:07,600 is 1026 00:43:07,600 --> 00:43:10,260 www.wood-co.com. 1027 00:43:11,180 --> 00:43:11,740 Here 1028 00:43:11,740 --> 00:43:12,000 is 1029 00:43:12,000 --> 00:43:12,160 it. 1030 00:43:12,280 --> 00:43:12,700 We 1031 00:43:12,700 --> 00:43:12,960 got 1032 00:43:12,960 --> 00:43:13,140 the 1033 00:43:13,140 --> 00:43:13,540 address 1034 00:43:13,540 --> 00:43:13,760 of 1035 00:43:13,760 --> 00:43:13,940 the 1036 00:43:13,940 --> 00:43:14,300 server, 1037 00:43:14,440 --> 00:43:14,980 which 1038 00:43:14,980 --> 00:43:15,160 the 1039 00:43:15,160 --> 00:43:15,440 malware 1040 00:43:15,440 --> 00:43:16,100 is 1041 00:43:16,100 --> 00:43:16,380 trying 1042 00:43:16,380 --> 00:43:16,620 to 1043 00:43:32,300 --> 00:43:32,980 connect 1044 00:43:33,800 --> 00:43:34,480 we 1045 00:43:34,480 --> 00:43:34,660 must 1046 00:43:34,660 --> 00:43:34,980 fool 1047 00:43:34,980 --> 00:43:35,420 malware 1048 00:43:35,420 --> 00:43:35,760 again. 1049 00:43:35,920 --> 00:43:36,260 We 1050 00:43:36,260 --> 00:43:36,580 open 1051 00:43:36,580 --> 00:43:36,760 the 1052 00:43:36,760 --> 00:43:36,980 hosts 1053 00:43:36,980 --> 00:43:37,360 file 1054 00:43:37,360 --> 00:43:38,100 and 1055 00:43:38,100 --> 00:43:38,520 add 1056 00:43:38,520 --> 00:43:38,700 a 1057 00:43:38,700 --> 00:43:38,920 new 1058 00:43:38,920 --> 00:43:39,260 string 1059 00:43:39,260 --> 00:43:39,600 there. 1060 00:43:40,420 --> 00:43:41,100 We 1061 00:43:41,100 --> 00:43:41,480 specify 1062 00:43:41,480 --> 00:43:42,000 our 1063 00:43:42,000 --> 00:43:42,420 local 1064 00:43:42,420 --> 00:43:42,740 IP 1065 00:43:42,740 --> 00:43:43,160 address 1066 00:43:43,160 --> 00:43:44,240 and 1067 00:43:44,240 --> 00:43:45,060 this 1068 00:43:45,060 --> 00:43:46,180 name 1069 00:43:46,180 --> 00:43:46,720 of the 1070 00:44:00,700 --> 00:44:00,860 host. 1071 00:44:00,860 --> 00:44:01,200 DNS 1072 00:44:01,200 --> 00:44:01,540 request 1073 00:44:01,540 --> 00:44:02,360 will 1074 00:44:02,360 --> 00:44:02,600 be 1075 00:44:02,600 --> 00:44:03,880 not 1076 00:44:03,880 --> 00:44:04,320 used 1077 00:44:04,320 --> 00:44:05,560 because 1078 00:44:05,560 --> 00:44:06,180 we 1079 00:44:06,180 --> 00:44:06,620 have 1080 00:44:06,620 --> 00:44:07,020 a record 1081 00:44:07,020 --> 00:44:07,380 in our 1082 00:44:07,380 --> 00:44:07,760 hosts 1083 00:44:07,760 --> 00:44:08,040 file. 1084 00:44:09,440 --> 00:44:10,200 The 1085 00:44:10,200 --> 00:44:10,480 malware 1086 00:44:10,480 --> 00:44:10,720 will 1087 00:44:10,720 --> 00:44:11,040 try 1088 00:44:11,040 --> 00:44:11,220 to 1089 00:44:11,220 --> 00:44:11,620 connect 1090 00:44:11,620 --> 00:44:12,000 to 1091 00:44:15,200 --> 00:44:15,960 this 1092 00:44:15,960 --> 00:44:16,340 web 1093 00:44:16,340 --> 00:44:16,720 server. 1094 00:44:17,560 --> 00:44:18,320 Now 1095 00:44:18,320 --> 00:44:18,660 we 1096 00:44:18,660 --> 00:44:19,120 have 1097 00:44:19,120 --> 00:44:19,340 to 1098 00:44:19,340 --> 00:44:19,600 build 1099 00:44:19,600 --> 00:44:20,120 this 1100 00:44:20,120 --> 00:44:21,320 web 1101 00:44:21,320 --> 00:44:21,800 sniffing 1102 00:44:21,800 --> 00:44:22,040 solution 1103 00:44:22,040 --> 00:44:22,680 that 1104 00:44:22,680 --> 00:44:22,800 will 1105 00:44:22,800 --> 00:44:23,180 open 1106 00:44:23,180 --> 00:44:23,720 on our 1107 00:44:23,720 --> 00:44:24,480 local 1108 00:44:24,480 --> 00:44:24,900 host 1109 00:44:24,900 --> 00:44:25,880 the 1110 00:44:25,880 --> 00:44:26,140 port 1111 00:44:26,140 --> 00:44:26,340 of 1112 00:44:26,340 --> 00:44:26,840 AT 1113 00:44:26,840 --> 00:44:28,240 and 1114 00:44:28,240 --> 00:44:28,620 we 1115 00:44:28,620 --> 00:44:28,760 will 1116 00:44:29,780 --> 00:44:30,480 print 1117 00:44:30,480 --> 00:44:30,820 all 1118 00:44:30,820 --> 00:44:31,020 the 1119 00:44:31,020 --> 00:44:31,380 requests. 1120 00:44:32,100 --> 00:44:32,800 We 1121 00:44:32,800 --> 00:44:32,940 do 1122 00:44:32,940 --> 00:44:33,060 the 1123 00:44:33,060 --> 00:44:33,300 same, 1124 00:44:33,420 --> 00:44:33,540 just 1125 00:44:33,540 --> 00:44:33,860 compile 1126 00:44:33,860 --> 00:44:34,220 this 1127 00:44:34,220 --> 00:44:34,620 application 1128 00:44:35,070 --> 00:44:35,840 and run 1129 00:44:35,840 --> 00:44:36,040 it. 1130 00:44:40,140 --> 00:44:40,900 By the 1131 00:44:40,900 --> 00:44:40,980 way, 1132 00:44:41,040 --> 00:44:41,180 before 1133 00:44:41,180 --> 00:44:41,920 running 1134 00:44:41,920 --> 00:44:42,300 we must 1135 00:44:42,300 --> 00:44:42,940 terminate 1136 00:44:42,940 --> 00:44:43,080 the 1137 00:44:43,080 --> 00:44:43,760 downloader 1138 00:44:44,760 --> 00:44:46,000 if it 1139 00:44:46,000 --> 00:44:46,660 has any 1140 00:44:46,660 --> 00:44:47,160 delays 1141 00:44:47,160 --> 00:44:47,500 in it. 1142 00:44:48,300 --> 00:44:48,920 So 1143 00:44:48,920 --> 00:44:49,440 we must 1144 00:44:49,440 --> 00:44:49,780 rerun 1145 00:44:49,780 --> 00:44:49,940 it. 1146 00:44:50,340 --> 00:44:50,900 We 1147 00:44:50,900 --> 00:44:51,140 start 1148 00:44:51,140 --> 00:44:51,420 our 1149 00:44:51,420 --> 00:44:52,620 web 1150 00:44:52,620 --> 00:44:52,980 sniffer, 1151 00:44:53,180 --> 00:44:53,900 run 1152 00:44:53,900 --> 00:44:54,100 the 1153 00:45:04,220 --> 00:45:04,420 server. 1154 00:45:04,640 --> 00:45:05,040 Here is 1155 00:45:05,040 --> 00:45:05,120 the 1156 00:45:05,120 --> 00:45:05,380 request. 1157 00:45:05,660 --> 00:45:05,980 Get 1158 00:45:05,980 --> 00:45:06,560 LDR, 1159 00:45:06,840 --> 00:45:07,480 index 1160 00:45:07,480 --> 00:45:07,740 PHP, 1161 00:45:08,060 --> 00:45:08,300 blah, 1162 00:45:08,340 --> 00:45:08,460 blah, 1163 00:45:08,480 --> 00:45:08,580 blah. 1164 00:45:10,500 --> 00:45:11,020 And 1165 00:45:11,020 --> 00:45:11,820 one more 1166 00:45:11,820 --> 00:45:12,100 useful 1167 00:45:12,100 --> 00:45:12,320 thing, 1168 00:45:12,380 --> 00:45:12,580 it 1169 00:45:12,580 --> 00:45:12,920 uses 1170 00:45:12,920 --> 00:45:13,660 Microsoft 1171 00:45:13,660 --> 00:45:14,200 bits 1172 00:45:14,200 --> 00:45:14,840 service. 1173 00:45:15,420 --> 00:45:15,940 It 1174 00:45:15,940 --> 00:45:16,200 is 1175 00:45:16,200 --> 00:45:16,380 a 1176 00:45:17,180 --> 00:45:17,700 part 1177 00:45:17,700 --> 00:45:18,680 of 1178 00:45:18,680 --> 00:45:18,940 operating 1179 00:45:18,940 --> 00:45:19,360 system 1180 00:45:19,360 --> 00:45:20,040 and 1181 00:45:20,040 --> 00:45:20,200 it 1182 00:45:20,200 --> 00:45:20,440 uses 1183 00:45:34,220 --> 00:45:34,620 DNS. 1184 00:45:34,620 --> 00:45:34,920 But it 1185 00:45:34,920 --> 00:45:35,320 is not 1186 00:45:35,320 --> 00:45:35,700 enough 1187 00:45:35,700 --> 00:45:36,700 because 1188 00:45:36,700 --> 00:45:37,740 just 1189 00:45:37,740 --> 00:45:38,120 imagine 1190 00:45:38,120 --> 00:45:38,580 if the 1191 00:45:38,580 --> 00:45:38,820 malware 1192 00:45:38,820 --> 00:45:39,620 doesn't 1193 00:45:39,620 --> 00:45:39,860 use 1194 00:45:39,860 --> 00:45:40,420 DNS at 1195 00:45:40,420 --> 00:45:40,660 all. 1196 00:45:41,560 --> 00:45:42,200 It 1197 00:45:42,200 --> 00:45:42,520 has, 1198 00:45:42,640 --> 00:45:42,980 for 1199 00:45:42,980 --> 00:45:43,420 example, 1200 00:45:44,820 --> 00:45:45,840 hard coded 1201 00:45:45,840 --> 00:45:46,160 IP 1202 00:45:46,160 --> 00:45:46,720 addresses 1203 00:45:46,720 --> 00:45:47,040 in 1204 00:45:47,040 --> 00:45:47,720 the 1205 00:45:47,720 --> 00:45:47,960 source. 1206 00:45:48,480 --> 00:45:49,120 And 1207 00:45:49,120 --> 00:45:49,460 it 1208 00:45:49,460 --> 00:45:50,040 doesn't 1209 00:45:50,040 --> 00:45:50,520 try to 1210 00:45:50,520 --> 00:45:50,840 search 1211 00:45:50,840 --> 00:45:51,120 for 1212 00:45:51,120 --> 00:45:51,400 any 1213 00:45:51,400 --> 00:45:51,820 names. 1214 00:45:52,000 --> 00:45:53,620 So we 1215 00:45:53,620 --> 00:45:54,400 must use, 1216 00:45:54,500 --> 00:45:54,720 in this 1217 00:45:54,720 --> 00:45:55,000 case, 1218 00:45:55,060 --> 00:45:56,220 total 1219 00:45:56,220 --> 00:45:56,660 IP 1220 00:45:56,660 --> 00:45:57,520 packet 1221 00:45:57,520 --> 00:45:58,060 filtering. 1222 00:46:01,720 --> 00:46:02,440 Well, 1223 00:46:03,800 --> 00:46:04,520 we 1224 00:46:04,520 --> 00:46:04,740 will 1225 00:46:04,740 --> 00:46:05,000 fly 1226 00:46:05,000 --> 00:46:05,220 for 1227 00:46:05,220 --> 00:46:05,580 a 1228 00:46:05,580 --> 00:46:05,840 while. 1229 00:46:09,080 --> 00:46:09,800 This 1230 00:46:09,800 --> 00:46:10,080 is 1231 00:46:10,080 --> 00:46:10,840 how 1232 00:46:10,840 --> 00:46:11,600 operation 1233 00:46:11,600 --> 00:46:11,960 system 1234 00:46:11,960 --> 00:46:12,260 can 1235 00:46:12,260 --> 00:46:12,400 be 1236 00:46:12,400 --> 00:46:12,700 imagined. 1237 00:46:12,960 --> 00:46:13,680 The 1238 00:46:13,680 --> 00:46:13,940 columns 1239 00:46:13,940 --> 00:46:14,740 are the 1240 00:46:14,740 --> 00:46:15,200 processes. 1241 00:46:15,900 --> 00:46:16,960 Here are 1242 00:46:16,960 --> 00:46:17,580 the familiar 1243 00:46:17,580 --> 00:46:18,020 names. 1244 00:46:18,140 --> 00:46:18,700 SVC 1245 00:46:18,700 --> 00:46:19,080 hosts, 1246 00:46:19,340 --> 00:46:20,460 services 1247 00:46:20,460 --> 00:46:21,920 and any 1248 00:46:21,920 --> 00:46:22,200 other. 1249 00:46:22,500 --> 00:46:23,040 And we 1250 00:46:23,040 --> 00:46:23,480 get malware 1251 00:46:23,480 --> 00:46:24,180 running in 1252 00:46:24,180 --> 00:46:24,320 our 1253 00:46:24,320 --> 00:46:24,720 system. 1254 00:46:25,380 --> 00:46:26,140 Well, 1255 00:46:26,260 --> 00:46:26,740 every 1256 00:46:26,740 --> 00:46:27,100 process 1257 00:46:27,100 --> 00:46:27,400 consists 1258 00:46:27,400 --> 00:46:27,780 of 1259 00:46:27,780 --> 00:46:28,160 modules 1260 00:46:28,160 --> 00:46:28,720 and 1261 00:46:29,920 --> 00:46:30,680 they 1262 00:46:30,680 --> 00:46:31,520 can 1263 00:46:31,520 --> 00:46:31,720 use 1264 00:46:31,720 --> 00:46:32,120 any 1265 00:46:32,120 --> 00:46:32,540 communication 1266 00:46:32,540 --> 00:46:33,160 interfaces 1267 00:46:33,160 --> 00:46:33,480 in 1268 00:46:43,680 --> 00:46:45,100 are 1269 00:46:45,100 --> 00:46:46,080 marked 1270 00:46:46,080 --> 00:46:47,380 DLLs 1271 00:46:47,380 --> 00:46:48,480 which 1272 00:46:48,480 --> 00:46:48,620 are 1273 00:46:48,620 --> 00:46:48,860 used 1274 00:46:48,860 --> 00:46:49,080 by 1275 00:46:49,080 --> 00:46:49,220 the 1276 00:46:49,220 --> 00:46:49,620 process. 1277 00:46:54,360 --> 00:46:55,280 This 1278 00:46:55,280 --> 00:46:55,480 is 1279 00:46:55,480 --> 00:46:55,740 how 1280 00:46:55,740 --> 00:46:56,700 operating 1281 00:46:56,700 --> 00:46:57,160 system 1282 00:46:57,160 --> 00:46:57,760 can 1283 00:46:57,760 --> 00:46:57,980 look 1284 00:46:57,980 --> 00:46:58,480 from 1285 00:46:58,480 --> 00:46:58,800 inside. 1286 00:47:00,760 --> 00:47:01,680 Well, 1287 00:47:01,680 --> 00:47:03,100 every 1288 00:47:03,100 --> 00:47:03,640 process 1289 00:47:03,640 --> 00:47:05,060 is 1290 00:47:05,060 --> 00:47:05,400 based 1291 00:47:05,400 --> 00:47:05,800 on 1292 00:47:05,800 --> 00:47:07,200 system 1293 00:47:07,200 --> 00:47:08,040 libraries 1294 00:47:09,060 --> 00:47:09,600 which 1295 00:47:09,600 --> 00:47:09,800 are 1296 00:47:11,280 --> 00:47:11,820 kernel32dll. 1297 00:47:14,180 --> 00:47:14,720 It 1298 00:47:14,720 --> 00:47:15,000 can 1299 00:47:15,000 --> 00:47:15,120 be 1300 00:47:15,120 --> 00:47:16,160 user32dll 1301 00:47:16,160 --> 00:47:16,620 and 1302 00:47:18,240 --> 00:47:18,780 adwp32dll 1303 00:47:18,780 --> 00:47:19,440 which 1304 00:47:19,440 --> 00:47:19,620 are 1305 00:47:19,620 --> 00:47:20,080 parts of 1306 00:47:20,080 --> 00:47:20,280 operating 1307 00:47:20,280 --> 00:47:20,780 system. 1308 00:47:20,900 --> 00:47:20,980 And 1309 00:47:20,980 --> 00:47:21,580 kernel32, 1310 00:47:21,840 --> 00:47:21,860 you 1311 00:47:21,860 --> 00:47:22,020 know, 1312 00:47:22,080 --> 00:47:22,220 it's 1313 00:47:22,220 --> 00:47:24,840 kernel module. 1314 00:47:26,080 --> 00:47:26,620 It's 1315 00:47:26,620 --> 00:47:26,660 a 1316 00:47:26,660 --> 00:47:27,060 kernel of 1317 00:47:27,060 --> 00:47:27,280 operation 1318 00:47:27,280 --> 00:47:27,680 system. 1319 00:47:28,160 --> 00:47:28,600 Well, 1320 00:47:28,700 --> 00:47:29,040 when 1321 00:47:29,040 --> 00:47:29,100 the 1322 00:47:30,560 --> 00:47:31,200 malware 1323 00:47:31,200 --> 00:47:31,860 is 1324 00:47:31,860 --> 00:47:32,280 trying 1325 00:47:32,280 --> 00:47:32,500 to 1326 00:47:32,500 --> 00:47:32,840 connect 1327 00:47:32,840 --> 00:47:33,260 somewhere, 1328 00:47:33,560 --> 00:47:34,220 it 1329 00:47:34,220 --> 00:47:34,760 generates 1330 00:47:34,760 --> 00:47:35,620 IP packet 1331 00:47:36,420 --> 00:47:37,060 which 1332 00:47:37,060 --> 00:47:37,220 will 1333 00:47:37,220 --> 00:47:37,360 be 1334 00:47:37,360 --> 00:47:37,640 sent 1335 00:47:37,640 --> 00:47:37,920 to 1336 00:47:37,920 --> 00:47:38,180 the 1337 00:47:39,620 --> 00:47:40,260 network. 1338 00:47:42,920 --> 00:47:43,560 So, 1339 00:47:43,600 --> 00:47:44,180 the 1340 00:47:44,180 --> 00:47:44,480 usual 1341 00:47:44,480 --> 00:47:44,760 way 1342 00:47:44,760 --> 00:47:45,100 it 1343 00:47:45,100 --> 00:47:45,380 generates 1344 00:47:45,380 --> 00:47:45,820 packet 1345 00:47:45,820 --> 00:47:46,240 and 1346 00:47:46,240 --> 00:47:46,460 sends 1347 00:47:46,460 --> 00:47:46,680 to 1348 00:47:46,680 --> 00:47:46,840 the 1349 00:47:46,840 --> 00:47:47,040 LAN 1350 00:47:48,360 --> 00:47:49,000 trying 1351 00:47:59,040 --> 00:47:59,160 to 1352 00:47:59,160 --> 00:47:59,620 get 1353 00:47:59,620 --> 00:47:59,800 the 1354 00:47:59,800 --> 00:48:00,160 content, 1355 00:48:01,040 --> 00:48:01,560 we 1356 00:48:01,560 --> 00:48:01,780 must 1357 00:48:01,780 --> 00:48:02,240 filter 1358 00:48:02,240 --> 00:48:02,760 all 1359 00:48:03,860 --> 00:48:04,380 packets 1360 00:48:04,380 --> 00:48:04,740 that 1361 00:48:04,740 --> 00:48:04,940 are 1362 00:48:05,780 --> 00:48:06,300 going 1363 00:48:06,300 --> 00:48:06,640 out 1364 00:48:06,640 --> 00:48:06,880 from 1365 00:48:06,880 --> 00:48:07,020 our 1366 00:48:07,020 --> 00:48:07,400 system. 1367 00:48:07,660 --> 00:48:07,920 And 1368 00:48:07,920 --> 00:48:08,080 we 1369 00:48:08,080 --> 00:48:08,280 must 1370 00:48:08,280 --> 00:48:08,620 implement, 1371 00:48:08,820 --> 00:48:08,900 we 1372 00:48:08,900 --> 00:48:09,020 must 1373 00:48:09,020 --> 00:48:09,340 build 1374 00:48:09,340 --> 00:48:09,580 our 1375 00:48:09,580 --> 00:48:09,880 own 1376 00:48:09,880 --> 00:48:10,260 process 1377 00:48:10,260 --> 00:48:10,460 that 1378 00:48:10,460 --> 00:48:10,580 will 1379 00:48:10,580 --> 00:48:10,880 help 1380 00:48:10,880 --> 00:48:11,000 with 1381 00:48:11,000 --> 00:48:11,220 it. 1382 00:48:12,380 --> 00:48:13,160 I called 1383 00:48:13,160 --> 00:48:13,320 it 1384 00:48:13,320 --> 00:48:14,000 APXA. 1385 00:48:14,000 --> 00:48:14,200 It is 1386 00:48:14,200 --> 00:48:14,520 a small 1387 00:48:14,520 --> 00:48:14,920 application, 1388 00:48:15,120 --> 00:48:15,320 very, 1389 00:48:15,360 --> 00:48:15,600 very 1390 00:48:15,600 --> 00:48:16,140 simple. 1391 00:48:19,860 --> 00:48:20,380 This 1392 00:48:20,380 --> 00:48:21,360 process 1393 00:48:21,360 --> 00:48:21,920 will 1394 00:48:21,920 --> 00:48:22,280 help 1395 00:48:22,280 --> 00:48:22,600 us to 1396 00:48:22,600 --> 00:48:22,720 do 1397 00:48:22,720 --> 00:48:22,920 that. 1398 00:48:24,360 --> 00:48:24,880 It 1399 00:48:24,880 --> 00:48:25,000 will 1400 00:48:25,000 --> 00:48:25,280 happen 1401 00:48:25,280 --> 00:48:25,760 like 1402 00:48:25,760 --> 00:48:26,040 this. 1403 00:48:26,300 --> 00:48:26,700 When 1404 00:48:26,700 --> 00:48:26,900 the 1405 00:48:26,900 --> 00:48:27,160 malware 1406 00:48:27,160 --> 00:48:27,480 generates 1407 00:48:27,480 --> 00:48:28,000 new 1408 00:48:28,000 --> 00:48:28,240 IP 1409 00:48:28,240 --> 00:48:28,460 packet 1410 00:48:29,240 --> 00:48:29,700 and 1411 00:48:30,060 --> 00:48:30,480 sends 1412 00:48:30,480 --> 00:48:30,900 it 1413 00:48:30,900 --> 00:48:32,180 to 1414 00:48:32,180 --> 00:48:32,360 the 1415 00:48:32,360 --> 00:48:32,700 network, 1416 00:48:32,940 --> 00:48:34,340 our 1417 00:48:34,340 --> 00:48:35,080 application 1418 00:48:35,080 --> 00:48:35,740 will 1419 00:48:35,740 --> 00:48:36,840 build 1420 00:48:36,840 --> 00:48:36,980 a 1421 00:48:36,980 --> 00:48:37,220 packet 1422 00:48:37,220 --> 00:48:37,500 filter 1423 00:48:37,500 --> 00:48:38,140 and 1424 00:48:38,140 --> 00:48:38,540 redirect 1425 00:48:38,540 --> 00:48:39,120 the 1426 00:48:39,120 --> 00:48:39,540 IP 1427 00:48:39,540 --> 00:48:39,900 packet. 1428 00:48:42,980 --> 00:48:43,820 This 1429 00:48:43,820 --> 00:48:44,060 IP 1430 00:48:44,060 --> 00:48:44,460 packet 1431 00:48:44,460 --> 00:48:44,880 will 1432 00:48:44,880 --> 00:48:45,500 come 1433 00:48:45,500 --> 00:48:45,680 to 1434 00:48:45,680 --> 00:48:45,900 our 1435 00:48:45,900 --> 00:48:46,520 application 1436 00:48:46,520 --> 00:48:47,960 and 1437 00:48:47,960 --> 00:48:49,300 it 1438 00:48:49,300 --> 00:48:49,400 will 1439 00:48:49,400 --> 00:48:50,060 absorb 1440 00:48:50,060 --> 00:48:50,360 it 1441 00:48:50,360 --> 00:48:50,700 like 1442 00:48:51,980 --> 00:48:52,620 bloop 1443 00:48:52,620 --> 00:48:53,380 and 1444 00:48:55,080 --> 00:48:55,720 analyze 1445 00:48:55,720 --> 00:48:56,000 it. 1446 00:48:59,820 --> 00:49:00,460 Let's 1447 00:49:00,460 --> 00:49:00,840 see how 1448 00:49:00,840 --> 00:49:01,020 it 1449 00:49:01,020 --> 00:49:01,340 looks 1450 00:49:01,340 --> 00:49:02,300 in 1451 00:49:02,300 --> 00:49:03,020 our 1452 00:49:03,020 --> 00:49:03,560 usual 1453 00:49:03,560 --> 00:49:03,860 way 1454 00:49:03,860 --> 00:49:04,640 in 1455 00:49:04,640 --> 00:49:04,680 the 1456 00:49:04,680 --> 00:49:04,900 operating 1457 00:49:04,900 --> 00:49:05,320 system. 1458 00:49:08,820 --> 00:49:09,460 Let's 1459 00:49:09,460 --> 00:49:09,680 check 1460 00:49:09,680 --> 00:49:09,860 this 1461 00:49:09,860 --> 00:49:10,200 example. 1462 00:49:10,320 --> 00:49:10,620 Backdoor 1463 00:49:10,620 --> 00:49:10,780 is 1464 00:49:10,780 --> 00:49:11,640 used 1465 00:49:19,300 --> 00:49:19,320 to 1466 00:49:19,320 --> 00:49:19,540 connect 1467 00:49:19,540 --> 00:49:19,820 to 1468 00:49:19,820 --> 00:49:20,520 and 1469 00:49:20,520 --> 00:49:20,820 we 1470 00:49:20,820 --> 00:49:21,160 create 1471 00:49:21,160 --> 00:49:21,400 this 1472 00:49:21,400 --> 00:49:22,260 source 1473 00:49:22,260 --> 00:49:22,540 code 1474 00:49:22,540 --> 00:49:22,720 for 1475 00:49:22,720 --> 00:49:22,860 our 1476 00:49:22,860 --> 00:49:23,220 application 1477 00:49:23,220 --> 00:49:23,600 . 1478 00:49:23,600 --> 00:49:24,260 We 1479 00:49:26,800 --> 00:49:27,440 also 1480 00:49:27,440 --> 00:49:28,100 created 1481 00:49:28,100 --> 00:49:28,380 a 1482 00:49:28,380 --> 00:49:29,280 web 1483 00:49:29,280 --> 00:49:29,740 txt 1484 00:49:29,740 --> 00:49:30,180 file. 1485 00:49:30,540 --> 00:49:31,180 It 1486 00:49:31,180 --> 00:49:31,360 is 1487 00:49:31,360 --> 00:49:31,480 the 1488 00:49:31,480 --> 00:49:31,780 same 1489 00:49:31,780 --> 00:49:32,320 web 1490 00:49:32,320 --> 00:49:32,660 sniffer. 1491 00:49:32,820 --> 00:49:33,400 We 1492 00:49:33,400 --> 00:49:33,540 will 1493 00:49:33,540 --> 00:49:33,740 use 1494 00:49:33,740 --> 00:49:33,880 it. 1495 00:49:34,360 --> 00:49:35,020 We 1496 00:49:35,020 --> 00:49:35,580 check the 1497 00:49:35,580 --> 00:49:35,800 network 1498 00:49:35,800 --> 00:49:36,120 activity. 1499 00:49:36,440 --> 00:49:37,000 It 1500 00:49:37,000 --> 00:49:37,240 is 1501 00:49:37,240 --> 00:49:37,640 0 1502 00:49:37,640 --> 00:49:37,900 level. 1503 00:49:38,060 --> 00:49:38,240 After 1504 00:49:38,240 --> 00:49:38,600 running 1505 00:49:38,600 --> 00:49:39,460 malware.exe, 1506 00:49:39,660 --> 00:49:39,940 it 1507 00:49:39,940 --> 00:49:40,260 is 1508 00:49:40,260 --> 00:49:40,660 above 1509 00:49:40,660 --> 00:49:41,000 0. 1510 00:49:41,360 --> 00:49:41,880 Something 1511 00:49:41,880 --> 00:49:42,580 is 1512 00:49:42,580 --> 00:49:43,780 happening 1513 00:49:43,780 --> 00:49:44,120 on 1514 00:49:44,120 --> 00:49:44,220 the 1515 00:49:44,220 --> 00:49:44,740 network. 1516 00:49:45,700 --> 00:49:45,960 To 1517 00:49:45,960 --> 00:49:46,640 trace 1518 00:49:46,640 --> 00:49:46,880 it, 1519 00:49:48,740 --> 00:49:49,260 we 1520 00:49:49,260 --> 00:49:49,440 must 1521 00:49:49,440 --> 00:49:49,740 compile 1522 00:49:49,740 --> 00:49:50,020 our 1523 00:49:50,020 --> 00:49:50,400 application, 1524 00:49:50,700 --> 00:49:51,280 build and 1525 00:49:51,280 --> 00:49:51,600 compile. 1526 00:49:51,840 --> 00:49:52,200 It is 1527 00:49:52,200 --> 00:49:52,720 9 1528 00:49:52,720 --> 00:49:53,320 kilobytes 1529 00:49:53,320 --> 00:49:53,780 size, 1530 00:49:53,960 --> 00:49:54,460 as you 1531 00:49:54,460 --> 00:49:54,680 see. 1532 00:49:55,340 --> 00:49:55,820 Not 1533 00:49:55,820 --> 00:49:56,000 that 1534 00:49:56,000 --> 00:49:56,240 big, 1535 00:49:56,400 --> 00:49:56,820 but 1536 00:49:57,360 --> 00:49:57,840 not 1537 00:49:57,840 --> 00:49:58,000 that 1538 00:49:58,000 --> 00:49:58,200 small. 1539 00:50:02,540 --> 00:50:03,020 Let's 1540 00:50:03,020 --> 00:50:03,240 compile. 1541 00:50:04,700 --> 00:50:05,180 We 1542 00:50:05,180 --> 00:50:05,400 compile 1543 00:50:05,400 --> 00:50:05,640 the 1544 00:50:05,640 --> 00:50:05,820 source 1545 00:50:05,820 --> 00:50:06,060 code. 1546 00:50:09,520 --> 00:50:10,000 Some 1547 00:50:10,000 --> 00:50:10,280 error. 1548 00:50:10,500 --> 00:50:10,620 We 1549 00:50:10,620 --> 00:50:10,820 have 1550 00:50:10,820 --> 00:50:10,960 to 1551 00:50:10,960 --> 00:50:11,400 specify 1552 00:50:11,400 --> 00:50:11,800 unsafe 1553 00:50:20,020 --> 00:50:20,040 code. 1554 00:50:20,040 --> 00:50:20,160 that, 1555 00:50:21,020 --> 00:50:21,860 we 1556 00:50:23,680 --> 00:50:24,100 run 1557 00:50:24,100 --> 00:50:24,360 our 1558 00:50:24,360 --> 00:50:24,820 application 1559 00:50:24,820 --> 00:50:25,560 and wait 1560 00:50:25,560 --> 00:50:25,740 for 1561 00:50:25,740 --> 00:50:26,400 packets. 1562 00:50:28,300 --> 00:50:29,140 Here 1563 00:50:29,140 --> 00:50:29,580 is 1564 00:50:29,580 --> 00:50:29,900 0. 1565 00:50:32,660 --> 00:50:33,080 But 1566 00:50:33,080 --> 00:50:33,720 in order 1567 00:50:33,720 --> 00:50:33,900 to 1568 00:50:33,900 --> 00:50:34,180 fool 1569 00:50:34,180 --> 00:50:34,800 the 1570 00:50:34,800 --> 00:50:35,060 malware, 1571 00:50:35,500 --> 00:50:35,720 we 1572 00:50:35,720 --> 00:50:35,960 must 1573 00:50:35,960 --> 00:50:36,520 specify 1574 00:50:36,520 --> 00:50:36,980 the 1575 00:50:36,980 --> 00:50:37,640 gateway 1576 00:50:37,640 --> 00:50:38,180 because 1577 00:50:38,180 --> 00:50:38,920 the 1578 00:50:38,920 --> 00:50:40,120 packets 1579 00:50:40,120 --> 00:50:40,340 are 1580 00:50:40,340 --> 00:50:40,580 sent 1581 00:50:40,580 --> 00:50:40,880 to the 1582 00:50:40,880 --> 00:50:41,220 gateway. 1583 00:50:41,320 --> 00:50:41,880 The packets 1584 00:50:41,880 --> 00:50:43,060 are for 1585 00:50:43,060 --> 00:50:43,640 any 1586 00:50:45,620 --> 00:50:46,220 host 1587 00:50:46,220 --> 00:50:46,580 that is 1588 00:50:46,580 --> 00:50:47,020 out of 1589 00:50:47,020 --> 00:50:47,260 our 1590 00:50:47,260 --> 00:50:47,460 LAN. 1591 00:50:48,080 --> 00:50:48,680 We 1592 00:50:48,680 --> 00:50:49,140 specify 1593 00:50:49,140 --> 00:50:49,820 the 1594 00:50:49,820 --> 00:50:50,960 IP 1595 00:50:50,960 --> 00:50:51,320 address 1596 00:50:51,320 --> 00:50:51,720 of 1597 00:50:51,720 --> 00:50:52,140 the 1598 00:50:52,140 --> 00:50:52,520 gateway, 1599 00:50:52,720 --> 00:50:52,900 the 1600 00:50:52,900 --> 00:50:53,120 same 1601 00:50:53,120 --> 00:50:53,320 as 1602 00:50:53,320 --> 00:50:53,640 our 1603 00:50:53,640 --> 00:50:54,100 local 1604 00:50:54,100 --> 00:50:54,380 IP. 1605 00:50:58,540 --> 00:50:59,140 Here 1606 00:51:00,420 --> 00:51:01,020 we 1607 00:51:01,020 --> 00:51:01,380 get a 1608 00:51:01,380 --> 00:51:01,660 packet 1609 00:51:01,660 --> 00:51:02,800 of 1610 00:51:02,800 --> 00:51:03,180 your market 1611 00:51:03,180 --> 00:51:03,600 right now. 1612 00:51:04,700 --> 00:51:05,340 That is 1613 00:51:05,340 --> 00:51:05,700 for 1614 00:51:05,700 --> 00:51:06,300 a 1615 00:51:07,460 --> 00:51:08,080 host that 1616 00:51:08,080 --> 00:51:08,440 is out 1617 00:51:08,440 --> 00:51:08,720 of our 1618 00:51:08,720 --> 00:51:08,940 LAN. 1619 00:51:10,340 --> 00:51:10,980 And the 1620 00:51:10,980 --> 00:51:11,500 port is 1621 00:51:11,500 --> 00:51:12,020 AT, 1622 00:51:12,260 --> 00:51:12,520 which is 1623 00:51:12,520 --> 00:51:12,680 web 1624 00:51:12,680 --> 00:51:12,860 server. 1625 00:51:13,100 --> 00:51:13,520 So 1626 00:51:14,300 --> 00:51:14,880 after that, 1627 00:51:15,000 --> 00:51:15,200 we can 1628 00:51:15,200 --> 00:51:15,420 use 1629 00:51:15,420 --> 00:51:15,560 the 1630 00:51:18,060 --> 00:51:18,500 web 1631 00:51:18,500 --> 00:51:19,080 server 1632 00:51:19,620 --> 00:51:20,060 emulation 1633 00:51:20,060 --> 00:51:20,440 and to 1634 00:51:20,440 --> 00:51:20,920 listen to 1635 00:51:20,920 --> 00:51:21,200 incoming 1636 00:51:21,920 --> 00:51:22,360 packets. 1637 00:51:22,580 --> 00:51:22,960 Specify 1638 00:51:22,960 --> 00:51:23,220 the 1639 00:51:23,220 --> 00:51:23,340 IP 1640 00:51:23,340 --> 00:51:23,760 address 1641 00:51:23,760 --> 00:51:24,480 to 1642 00:51:24,480 --> 00:51:24,760 the 1643 00:51:24,760 --> 00:51:25,540 one 1644 00:51:25,540 --> 00:51:25,780 that 1645 00:51:25,780 --> 00:51:26,020 is 1646 00:51:26,020 --> 00:51:26,420 needed 1647 00:51:26,420 --> 00:51:26,700 for 1648 00:51:26,700 --> 00:51:27,100 malware 1649 00:51:27,100 --> 00:51:27,700 and 1650 00:51:27,700 --> 00:51:27,960 sniff 1651 00:51:27,960 --> 00:51:28,200 for 1652 00:51:28,200 --> 00:51:28,600 requests. 1653 00:51:28,980 --> 00:51:29,300 I 1654 00:51:29,300 --> 00:51:29,440 will 1655 00:51:29,440 --> 00:51:29,580 skip 1656 00:51:29,580 --> 00:51:29,760 it 1657 00:51:29,760 --> 00:51:29,940 because 1658 00:51:29,940 --> 00:51:30,100 we 1659 00:51:30,100 --> 00:51:30,240 have 1660 00:51:30,240 --> 00:51:30,360 a 1661 00:51:30,360 --> 00:51:30,480 lot 1662 00:51:30,480 --> 00:51:30,540 of 1663 00:51:30,540 --> 00:51:30,700 time. 1664 00:51:30,960 --> 00:51:31,620 There are 1665 00:51:31,620 --> 00:51:31,920 more 1666 00:51:31,920 --> 00:51:32,500 interesting 1667 00:51:32,500 --> 00:51:32,800 things. 1668 00:51:32,800 --> 00:51:33,400 Some 1669 00:51:33,400 --> 00:51:34,220 advanced 1670 00:51:34,220 --> 00:51:34,580 techniques. 1671 00:51:35,000 --> 00:51:35,580 How to 1672 00:51:35,580 --> 00:51:35,740 view 1673 00:51:35,740 --> 00:51:35,880 P 1674 00:51:35,880 --> 00:51:36,120 header, 1675 00:51:36,480 --> 00:51:36,780 ways of 1676 00:51:36,780 --> 00:51:37,100 terminating 1677 00:51:37,100 --> 00:51:37,680 alternative 1678 00:51:37,680 --> 00:51:38,320 terminating 1679 00:51:38,320 --> 00:51:38,860 process and 1680 00:51:38,860 --> 00:51:39,240 so on. 1681 00:51:40,000 --> 00:51:40,460 To 1682 00:51:40,460 --> 00:51:40,600 view 1683 00:51:40,600 --> 00:51:40,720 a 1684 00:51:40,720 --> 00:51:40,780 P 1685 00:51:40,780 --> 00:51:41,060 header, 1686 00:51:41,240 --> 00:51:41,320 you 1687 00:51:41,320 --> 00:51:41,460 need 1688 00:51:41,460 --> 00:51:41,560 to 1689 00:51:41,560 --> 00:51:42,320 use 1690 00:51:42,320 --> 00:51:42,940 NTSD 1691 00:51:42,940 --> 00:51:43,260 tool. 1692 00:51:43,980 --> 00:51:44,440 Specify 1693 00:51:44,440 --> 00:51:44,600 the 1694 00:51:44,600 --> 00:51:44,740 path 1695 00:51:44,740 --> 00:51:44,880 to 1696 00:51:44,880 --> 00:51:44,960 the 1697 00:51:44,960 --> 00:51:45,080 target 1698 00:51:45,080 --> 00:51:45,480 file, 1699 00:51:45,620 --> 00:51:45,820 locate 1700 00:51:45,820 --> 00:51:46,260 image 1701 00:51:46,260 --> 00:51:46,540 base 1702 00:51:46,540 --> 00:51:46,800 after 1703 00:51:46,800 --> 00:51:47,040 running 1704 00:51:47,040 --> 00:51:47,300 this 1705 00:51:47,300 --> 00:51:47,560 tool, 1706 00:51:47,680 --> 00:51:48,140 and 1707 00:51:48,140 --> 00:51:48,460 use 1708 00:51:48,460 --> 00:51:48,880 DH 1709 00:51:48,880 --> 00:51:49,320 command 1710 00:51:49,320 --> 00:51:49,720 to 1711 00:51:49,720 --> 00:51:50,120 print 1712 00:51:50,120 --> 00:51:50,460 the 1713 00:51:51,100 --> 00:51:51,620 header. 1714 00:51:52,500 --> 00:51:53,020 Here 1715 00:51:53,020 --> 00:51:53,200 is 1716 00:51:53,200 --> 00:51:53,260 how 1717 00:51:53,260 --> 00:51:53,380 it 1718 00:51:53,380 --> 00:51:53,580 looks 1719 00:51:53,580 --> 00:51:53,840 like. 1720 00:51:55,220 --> 00:51:55,740 We 1721 00:51:55,740 --> 00:51:56,240 can 1722 00:51:57,080 --> 00:51:57,600 use 1723 00:51:57,600 --> 00:51:57,800 task 1724 00:51:57,800 --> 00:51:58,060 manager, 1725 00:51:58,320 --> 00:51:58,500 task 1726 00:51:58,500 --> 00:51:58,740 list, 1727 00:52:14,960 --> 00:52:15,120 application, 1728 00:52:15,240 --> 00:52:15,660 which is 1729 00:52:15,660 --> 00:52:16,060 part of 1730 00:52:16,060 --> 00:52:16,300 operating 1731 00:52:16,300 --> 00:52:16,760 system, 1732 00:52:16,940 --> 00:52:17,980 which helps 1733 00:52:17,980 --> 00:52:18,340 to 1734 00:52:18,340 --> 00:52:19,140 communicate 1735 00:52:19,140 --> 00:52:19,460 with 1736 00:52:19,460 --> 00:52:20,040 WMI 1737 00:52:20,040 --> 00:52:20,800 interface 1738 00:52:20,800 --> 00:52:21,300 directly. 1739 00:52:21,580 --> 00:52:21,880 We 1740 00:52:21,880 --> 00:52:22,020 can 1741 00:52:22,020 --> 00:52:22,180 use 1742 00:52:22,180 --> 00:52:22,740 NTSD 1743 00:52:22,740 --> 00:52:23,180 to 1744 00:52:23,180 --> 00:52:23,780 attach 1745 00:52:23,780 --> 00:52:24,440 the 1746 00:52:24,440 --> 00:52:24,920 debugger 1747 00:52:24,920 --> 00:52:25,060 to 1748 00:52:25,060 --> 00:52:25,300 running 1749 00:52:25,300 --> 00:52:26,020 process and 1750 00:52:26,020 --> 00:52:26,200 to 1751 00:52:26,200 --> 00:52:26,520 invoke 1752 00:52:26,520 --> 00:52:26,860 kill 1753 00:52:26,860 --> 00:52:27,260 function 1754 00:52:27,260 --> 00:52:27,980 to 1755 00:52:27,980 --> 00:52:28,400 terminate 1756 00:52:28,400 --> 00:52:28,500 the 1757 00:52:44,960 --> 00:52:45,160 list 1758 00:52:45,160 --> 00:52:45,500 like 1759 00:52:45,500 --> 00:52:45,820 utility, 1760 00:52:46,140 --> 00:52:46,740 but we 1761 00:52:46,740 --> 00:52:47,040 can use 1762 00:52:47,040 --> 00:52:47,400 existing 1763 00:52:47,400 --> 00:52:47,900 solutions 1764 00:52:47,900 --> 00:52:48,200 like 1765 00:52:48,200 --> 00:52:48,400 queue 1766 00:52:48,400 --> 00:52:48,700 process, 1767 00:52:48,900 --> 00:52:49,780 MSN432, 1768 00:52:49,960 --> 00:52:50,080 and 1769 00:52:50,080 --> 00:52:50,340 performance 1770 00:52:50,340 --> 00:52:50,740 monitor. 1771 00:52:51,100 --> 00:52:51,500 I 1772 00:52:51,500 --> 00:52:51,820 will show 1773 00:52:51,820 --> 00:52:52,040 you the 1774 00:52:52,040 --> 00:52:52,180 most 1775 00:52:52,180 --> 00:52:52,600 interesting 1776 00:52:52,600 --> 00:52:52,880 ones. 1777 00:52:54,040 --> 00:52:54,640 Task 1778 00:52:54,640 --> 00:52:54,860 list 1779 00:52:54,860 --> 00:52:55,300 plus 1780 00:52:55,300 --> 00:52:55,600 task 1781 00:52:55,600 --> 00:52:55,820 queue 1782 00:52:55,820 --> 00:52:56,020 is 1783 00:52:56,020 --> 00:52:56,820 obvious. 1784 00:52:57,880 --> 00:52:58,480 WMI 1785 00:52:58,480 --> 00:52:58,920 plus 1786 00:52:59,680 --> 00:53:00,360 WSH. 1787 00:53:00,600 --> 00:53:00,920 This is 1788 00:53:00,920 --> 00:53:01,440 actually 1789 00:53:01,440 --> 00:53:02,520 JavaScript 1790 00:53:02,520 --> 00:53:03,260 small 1791 00:53:03,780 --> 00:53:04,120 sources 1792 00:53:04,920 --> 00:53:05,560 that can 1793 00:53:05,560 --> 00:53:05,940 be used. 1794 00:53:06,140 --> 00:53:07,080 We create 1795 00:53:07,080 --> 00:53:07,880 an application 1796 00:53:07,880 --> 00:53:08,280 in 1797 00:53:08,280 --> 00:53:08,620 JavaScript 1798 00:53:08,620 --> 00:53:09,700 that 1799 00:53:09,700 --> 00:53:10,360 contain 1800 00:53:10,360 --> 00:53:12,020 only two 1801 00:53:12,020 --> 00:53:12,320 lines, 1802 00:53:12,520 --> 00:53:13,320 and it 1803 00:53:13,320 --> 00:53:13,700 is enough 1804 00:53:13,700 --> 00:53:14,040 for 1805 00:53:14,040 --> 00:53:14,840 getting 1806 00:53:14,840 --> 00:53:15,040 the 1807 00:53:15,040 --> 00:53:15,260 list 1808 00:53:15,260 --> 00:53:15,400 of 1809 00:53:15,400 --> 00:53:15,540 the 1810 00:53:15,540 --> 00:53:15,900 processes 1811 00:53:15,900 --> 00:53:17,520 and to 1812 00:53:17,520 --> 00:53:17,780 kill 1813 00:53:17,780 --> 00:53:18,420 the 1814 00:53:18,420 --> 00:53:18,960 specified 1815 00:53:18,960 --> 00:53:19,340 process. 1816 00:53:28,920 --> 00:53:29,220 I hope. 1817 00:53:31,560 --> 00:53:32,420 There in 1818 00:53:32,420 --> 00:53:32,640 the 1819 00:53:33,720 --> 00:53:34,400 folder is 1820 00:53:34,400 --> 00:53:34,560 my 1821 00:53:34,560 --> 00:53:34,940 presentation, 1822 00:53:35,220 --> 00:53:35,460 so you 1823 00:53:35,460 --> 00:53:35,820 can check 1824 00:53:35,820 --> 00:53:36,060 everything 1825 00:53:36,060 --> 00:53:36,460 on your 1826 00:53:36,460 --> 00:53:36,780 systems. 1827 00:53:39,580 --> 00:53:40,060 Okay, 1828 00:53:40,180 --> 00:53:40,700 I will 1829 00:53:40,700 --> 00:53:41,040 skip it 1830 00:53:41,040 --> 00:53:41,480 because we 1831 00:53:41,480 --> 00:53:41,760 don't 1832 00:53:41,760 --> 00:53:41,900 have 1833 00:53:41,900 --> 00:53:42,100 much 1834 00:53:42,100 --> 00:53:42,340 time. 1835 00:53:43,340 --> 00:53:43,940 Here is 1836 00:53:43,940 --> 00:53:44,620 one more 1837 00:53:44,620 --> 00:53:45,000 interesting 1838 00:53:45,000 --> 00:53:45,760 way, 1839 00:53:45,940 --> 00:53:46,260 using 1840 00:53:47,220 --> 00:53:47,700 WBEM 1841 00:53:47,700 --> 00:53:48,040 test 1842 00:53:48,040 --> 00:53:48,260 to 1843 00:53:48,260 --> 00:53:48,380 kill. 1844 00:53:48,600 --> 00:53:49,460 We just use 1845 00:53:49,460 --> 00:53:49,780 start, 1846 00:53:49,900 --> 00:53:50,120 run, 1847 00:53:50,740 --> 00:53:51,260 WBEM, 1848 00:53:51,260 --> 00:53:51,640 test. 1849 00:53:52,800 --> 00:53:53,640 Here we go. 1850 00:53:53,780 --> 00:53:54,140 This is 1851 00:53:54,140 --> 00:53:55,000 application which is a 1852 00:53:55,000 --> 00:53:55,380 part of 1853 00:53:55,380 --> 00:53:55,840 Windows XP 1854 00:53:55,840 --> 00:53:56,400 and Windows, 1855 00:53:56,580 --> 00:53:57,380 yes, 1856 00:53:57,500 --> 00:53:58,400 only Windows XP. 1857 00:53:58,560 --> 00:53:59,020 It's not a 1858 00:53:59,020 --> 00:53:59,400 part of 1859 00:53:59,400 --> 00:54:00,220 Windows 2000. 1860 00:54:00,660 --> 00:54:01,460 We connect 1861 00:54:01,460 --> 00:54:01,740 to 1862 00:54:01,740 --> 00:54:02,520 repository 1863 00:54:02,520 --> 00:54:03,580 and specify 1864 00:54:03,580 --> 00:54:04,820 SQL-like 1865 00:54:04,820 --> 00:54:05,360 request 1866 00:54:05,360 --> 00:54:06,080 to find 1867 00:54:06,080 --> 00:54:06,280 the 1868 00:54:06,280 --> 00:54:06,600 necessary 1869 00:54:06,600 --> 00:54:07,160 process. 1870 00:54:09,700 --> 00:54:10,380 It is 1871 00:54:10,380 --> 00:54:10,780 select 1872 00:54:10,780 --> 00:54:11,500 all from 1873 00:54:11,500 --> 00:54:12,200 Win32 1874 00:54:12,640 --> 00:54:12,920 processes, 1875 00:54:13,780 --> 00:54:14,340 process 1876 00:54:14,340 --> 00:54:15,160 where, 1877 00:54:16,260 --> 00:54:16,820 name, 1878 00:54:17,020 --> 00:54:17,680 like. 1879 00:54:17,860 --> 00:54:18,540 We want 1880 00:54:18,540 --> 00:54:19,140 to terminate 1881 00:54:19,140 --> 00:54:19,600 notepad 1882 00:54:19,600 --> 00:54:20,640 application. 1883 00:54:23,260 --> 00:54:24,000 Here we 1884 00:54:24,000 --> 00:54:24,140 go. 1885 00:54:24,200 --> 00:54:24,420 We get 1886 00:54:24,420 --> 00:54:24,820 the list 1887 00:54:24,820 --> 00:54:25,500 with 1888 00:54:25,500 --> 00:54:26,760 only one 1889 00:54:26,760 --> 00:54:27,080 item. 1890 00:54:28,840 --> 00:54:29,400 Then 1891 00:54:29,400 --> 00:54:30,820 we must 1892 00:54:30,820 --> 00:54:31,320 copy the 1893 00:54:31,320 --> 00:54:31,800 path of 1894 00:54:31,800 --> 00:54:32,320 the object 1895 00:54:32,320 --> 00:54:32,660 in the 1896 00:54:32,660 --> 00:54:33,080 repository 1897 00:54:33,740 --> 00:54:34,460 and we 1898 00:54:34,460 --> 00:54:34,720 will use 1899 00:54:34,720 --> 00:54:35,060 it later. 1900 00:54:35,700 --> 00:54:36,260 Copy. 1901 00:54:40,780 --> 00:54:41,000 Let's execute 1902 00:54:41,000 --> 00:54:41,680 method of 1903 00:54:41,680 --> 00:54:42,180 this object. 1904 00:54:42,420 --> 00:54:43,260 We click the 1905 00:54:43,260 --> 00:54:43,480 button 1906 00:54:43,480 --> 00:54:43,820 execute 1907 00:54:43,820 --> 00:54:44,180 method. 1908 00:54:44,400 --> 00:54:45,120 Specify the 1909 00:54:45,120 --> 00:54:45,440 object. 1910 00:54:45,660 --> 00:54:46,380 Just paste 1911 00:54:46,380 --> 00:54:46,920 what we 1912 00:54:46,920 --> 00:54:47,160 copied. 1913 00:54:48,180 --> 00:54:48,860 Here we 1914 00:54:48,860 --> 00:54:49,020 go. 1915 00:54:49,220 --> 00:54:49,540 Here is 1916 00:54:49,540 --> 00:54:50,280 the object 1917 00:54:50,280 --> 00:54:51,520 and we 1918 00:54:51,520 --> 00:54:51,880 call the 1919 00:54:51,880 --> 00:54:52,160 method. 1920 00:54:53,580 --> 00:54:54,100 Terminate. 1921 00:54:54,880 --> 00:54:55,400 Execute 1922 00:54:55,400 --> 00:54:55,480 the 1923 00:54:55,480 --> 00:54:56,400 method and 1924 00:54:56,400 --> 00:54:57,000 notepad 1925 00:54:57,000 --> 00:54:57,240 disappears. 1926 00:54:58,420 --> 00:54:59,060 This is 1927 00:54:59,060 --> 00:54:59,220 it. 1928 00:55:00,140 --> 00:55:00,660 Let's 1929 00:55:00,660 --> 00:55:00,820 see 1930 00:55:00,820 --> 00:55:01,020 what 1931 00:55:01,540 --> 00:55:01,980 we 1932 00:55:01,980 --> 00:55:02,460 TSD, 1933 00:55:03,000 --> 00:55:03,640 I will 1934 00:55:03,640 --> 00:55:04,000 skip it 1935 00:55:04,000 --> 00:55:04,500 because it's 1936 00:55:04,500 --> 00:55:04,920 quite obvious. 1937 00:55:05,140 --> 00:55:05,420 We just 1938 00:55:05,420 --> 00:55:05,800 need to 1939 00:55:05,800 --> 00:55:06,360 attach to 1940 00:55:06,360 --> 00:55:06,520 the 1941 00:55:06,520 --> 00:55:06,840 running 1942 00:55:06,840 --> 00:55:07,340 process 1943 00:55:07,340 --> 00:55:08,240 and queue 1944 00:55:08,240 --> 00:55:08,440 it. 1945 00:55:10,120 --> 00:55:11,000 I want 1946 00:55:11,000 --> 00:55:11,120 to 1947 00:55:11,120 --> 00:55:11,420 machine 1948 00:55:11,420 --> 00:55:11,940 code. 1949 00:55:12,120 --> 00:55:12,360 We can 1950 00:55:12,360 --> 00:55:12,640 implement 1951 00:55:12,640 --> 00:55:13,020 it and 1952 00:55:13,020 --> 00:55:13,460 here is 1953 00:55:13,460 --> 00:55:13,580 the 1954 00:55:13,580 --> 00:55:13,820 source 1955 00:55:13,820 --> 00:55:14,100 code. 1956 00:55:14,100 --> 00:55:14,420 It's 1957 00:55:14,900 --> 00:55:15,120 very, 1958 00:55:15,200 --> 00:55:15,660 very small 1959 00:55:15,660 --> 00:55:16,060 for 1960 00:55:16,540 --> 00:55:16,980 queueing 1961 00:55:16,980 --> 00:55:17,100 the 1962 00:55:17,100 --> 00:55:17,380 process 1963 00:55:17,380 --> 00:55:17,580 by 1964 00:55:17,580 --> 00:55:17,740 its 1965 00:55:17,740 --> 00:55:17,980 speed. 1966 00:55:18,400 --> 00:55:18,980 But to 1967 00:55:18,980 --> 00:55:19,320 get the 1968 00:55:19,320 --> 00:55:19,500 speed, 1969 00:55:19,940 --> 00:55:20,380 we 1970 00:55:20,380 --> 00:55:20,580 must 1971 00:55:21,620 --> 00:55:22,060 use 1972 00:55:22,720 --> 00:55:23,160 some 1973 00:55:24,440 --> 00:55:24,880 external 1974 00:55:24,880 --> 00:55:25,680 other 1975 00:55:26,120 --> 00:55:26,560 tools 1976 00:55:27,540 --> 00:55:27,980 which 1977 00:55:27,980 --> 00:55:28,100 are 1978 00:55:28,100 --> 00:55:28,420 actually 1979 00:55:28,420 --> 00:55:29,320 parts of 1980 00:55:29,320 --> 00:55:29,520 operating 1981 00:55:29,520 --> 00:55:29,960 system. 1982 00:55:30,140 --> 00:55:30,340 There is 1983 00:55:30,340 --> 00:55:30,580 a tool 1984 00:55:30,580 --> 00:55:30,760 queue 1985 00:55:30,760 --> 00:55:30,980 process 1986 00:55:30,980 --> 00:55:31,480 which 1987 00:55:32,320 --> 00:55:33,020 outpads 1988 00:55:33,020 --> 00:55:33,760 the 1989 00:55:33,760 --> 00:55:34,760 list of 1990 00:55:34,760 --> 00:55:34,860 the 1991 00:55:34,860 --> 00:55:35,240 processes 1992 00:55:35,240 --> 00:55:35,520 with 1993 00:55:35,520 --> 00:55:35,760 speeds. 1994 00:55:36,360 --> 00:55:37,060 The 1995 00:55:37,060 --> 00:55:37,500 second 1996 00:55:37,500 --> 00:55:38,220 way is 1997 00:55:38,220 --> 00:55:38,780 to use 1998 00:55:38,780 --> 00:55:39,160 MS 1999 00:55:39,160 --> 00:55:39,400 info 2000 00:55:39,400 --> 00:55:39,860 32, 2001 00:55:40,780 --> 00:55:41,480 the 2002 00:55:41,480 --> 00:55:41,820 tool 2003 00:55:41,820 --> 00:55:43,180 which 2004 00:55:43,180 --> 00:55:43,360 can 2005 00:55:43,360 --> 00:55:43,720 tell 2006 00:55:43,720 --> 00:55:43,920 us 2007 00:55:43,920 --> 00:55:44,140 a lot 2008 00:55:44,140 --> 00:55:44,440 about 2009 00:55:44,440 --> 00:55:44,720 our 2010 00:55:44,720 --> 00:55:44,980 operating 2011 00:55:44,980 --> 00:55:45,340 system. 2012 00:55:46,420 --> 00:55:47,120 We 2013 00:55:48,180 --> 00:55:48,880 can 2014 00:55:48,880 --> 00:55:49,320 find the 2015 00:55:49,320 --> 00:55:49,620 list of 2016 00:55:49,620 --> 00:55:49,720 the 2017 00:55:49,720 --> 00:55:49,860 running 2018 00:55:49,860 --> 00:55:50,300 processes 2019 00:55:50,300 --> 00:55:50,580 in 2020 00:55:50,580 --> 00:55:50,940 running 2021 00:55:50,940 --> 00:55:51,420 tasks 2022 00:55:52,900 --> 00:55:53,540 section. 2023 00:55:54,280 --> 00:55:54,920 You 2024 00:55:54,920 --> 00:55:55,080 can 2025 00:55:55,080 --> 00:55:55,460 find our 2026 00:55:55,460 --> 00:55:55,700 process 2027 00:55:55,700 --> 00:55:55,860 . 2028 00:55:55,860 --> 00:55:56,800 Here 2029 00:55:56,800 --> 00:55:57,040 is 2030 00:55:57,040 --> 00:55:57,200 the 2031 00:55:57,200 --> 00:55:57,660 PID 2032 00:55:57,660 --> 00:55:58,480 2008. 2033 00:55:59,440 --> 00:56:00,080 And 2034 00:56:00,080 --> 00:56:00,540 the 2035 00:56:00,540 --> 00:56:00,740 most 2036 00:56:00,740 --> 00:56:01,260 interesting 2037 00:56:01,260 --> 00:56:01,560 and 2038 00:56:01,560 --> 00:56:01,920 tricky 2039 00:56:01,920 --> 00:56:02,300 method 2040 00:56:02,300 --> 00:56:02,620 is 2041 00:56:02,620 --> 00:56:02,900 to 2042 00:56:02,900 --> 00:56:03,220 use 2043 00:56:03,220 --> 00:56:03,660 performance 2044 00:56:04,200 --> 00:56:04,520 counter 2045 00:56:05,120 --> 00:56:05,760 to get 2046 00:56:05,760 --> 00:56:05,940 the 2047 00:56:05,940 --> 00:56:06,260 PID. 2048 00:56:07,940 --> 00:56:08,260 Well, 2049 00:56:08,360 --> 00:56:08,540 it's 2050 00:56:08,540 --> 00:56:08,680 very 2051 00:56:08,680 --> 00:56:09,040 unusual, 2052 00:56:09,280 --> 00:56:10,220 even 2053 00:56:10,220 --> 00:56:10,440 for 2054 00:56:10,440 --> 00:56:10,620 me. 2055 00:56:10,840 --> 00:56:11,480 That's 2056 00:56:11,480 --> 00:56:11,640 why 2057 00:56:11,640 --> 00:56:11,880 I 2058 00:56:11,880 --> 00:56:12,380 call it 2059 00:56:12,380 --> 00:56:12,580 crazy 2060 00:56:12,580 --> 00:56:12,960 sometimes. 2061 00:56:15,700 --> 00:56:16,340 Well, 2062 00:56:16,480 --> 00:56:17,200 we 2063 00:56:17,200 --> 00:56:17,380 run 2064 00:56:17,380 --> 00:56:17,600 the 2065 00:56:17,600 --> 00:56:18,740 performance 2066 00:56:18,740 --> 00:56:19,220 monitor, 2067 00:56:21,900 --> 00:56:22,540 remove 2068 00:56:22,540 --> 00:56:23,020 any 2069 00:56:23,020 --> 00:56:23,780 existing 2070 00:56:23,780 --> 00:56:24,880 counters. 2071 00:56:29,780 --> 00:56:30,420 Come 2072 00:56:30,420 --> 00:56:30,600 on, 2073 00:56:33,220 --> 00:56:33,440 get us 2074 00:56:33,440 --> 00:56:33,720 OPC, 2075 00:56:33,840 --> 00:56:34,020 sorry. 2076 00:56:36,600 --> 00:56:37,160 We 2077 00:56:37,160 --> 00:56:37,400 remove 2078 00:56:37,400 --> 00:56:37,660 the 2079 00:56:37,660 --> 00:56:38,080 counters 2080 00:56:38,080 --> 00:56:38,480 and 2081 00:56:38,480 --> 00:56:38,900 add a 2082 00:56:38,900 --> 00:56:39,040 new 2083 00:56:39,040 --> 00:56:39,260 one. 2084 00:56:41,000 --> 00:56:41,280 Well, 2085 00:56:41,380 --> 00:56:41,560 I 2086 00:56:41,560 --> 00:56:41,720 don't 2087 00:56:41,720 --> 00:56:41,840 know 2088 00:56:41,840 --> 00:56:42,060 why, 2089 00:56:42,180 --> 00:56:42,280 but 2090 00:56:42,280 --> 00:56:42,740 Microsoft 2091 00:56:42,740 --> 00:56:43,140 included 2092 00:56:43,140 --> 00:56:43,940 a 2093 00:56:43,940 --> 00:56:44,220 lot 2094 00:56:44,220 --> 00:56:44,400 of 2095 00:56:44,400 --> 00:56:44,700 different 2096 00:56:44,700 --> 00:56:45,360 counters 2097 00:56:45,360 --> 00:56:46,120 and 2098 00:56:46,120 --> 00:56:46,460 different 2099 00:56:46,460 --> 00:56:47,000 objects 2100 00:56:47,000 --> 00:56:47,440 into 2101 00:56:47,440 --> 00:56:47,700 performance 2102 00:56:47,700 --> 00:56:48,240 monitor. 2103 00:56:48,600 --> 00:56:49,360 They're, 2104 00:56:49,500 --> 00:56:50,480 you know, 2105 00:56:50,520 --> 00:56:51,180 sometimes 2106 00:56:51,180 --> 00:56:51,460 they're 2107 00:56:51,460 --> 00:56:52,080 quite silly 2108 00:56:52,080 --> 00:56:52,520 like this 2109 00:56:52,520 --> 00:56:52,740 one, 2110 00:56:52,860 --> 00:56:53,220 the 2111 00:56:53,220 --> 00:56:53,600 process 2112 00:56:53,600 --> 00:56:54,560 with 2113 00:56:54,560 --> 00:56:56,040 performance 2114 00:56:56,040 --> 00:56:56,540 counter 2115 00:56:56,540 --> 00:56:57,060 for 2116 00:56:57,060 --> 00:56:58,120 process 2117 00:56:58,120 --> 00:56:58,360 ID. 2118 00:56:59,080 --> 00:56:59,840 Well, 2119 00:56:59,920 --> 00:57:00,020 the 2120 00:57:00,020 --> 00:57:00,280 process 2121 00:57:00,280 --> 00:57:00,520 ID 2122 00:57:00,520 --> 00:57:00,740 never 2123 00:57:00,740 --> 00:57:01,220 changes 2124 00:57:01,220 --> 00:57:01,640 during 2125 00:57:01,640 --> 00:57:02,240 the 2126 00:57:02,240 --> 00:57:03,720 running 2127 00:57:03,720 --> 00:57:04,120 one 2128 00:57:04,120 --> 00:57:04,640 application. 2129 00:57:15,760 --> 00:57:16,520 We 2130 00:57:16,520 --> 00:57:16,680 can 2131 00:57:19,000 --> 00:57:19,640 dump 2132 00:57:21,380 --> 00:57:22,020 any 2133 00:57:22,020 --> 00:57:23,000 process 2134 00:57:23,000 --> 00:57:23,320 on 2135 00:57:23,320 --> 00:57:23,580 Windows 2136 00:57:23,580 --> 00:57:23,980 system. 2137 00:57:24,600 --> 00:57:25,240 To 2138 00:57:25,240 --> 00:57:25,420 do 2139 00:57:25,420 --> 00:57:25,720 that, 2140 00:57:25,720 --> 00:57:25,820 we 2141 00:57:25,820 --> 00:57:26,120 must 2142 00:57:26,120 --> 00:57:26,540 use 2143 00:57:28,660 --> 00:57:29,300 familiar 2144 00:57:30,200 --> 00:57:30,520 tool 2145 00:57:30,520 --> 00:57:31,080 in 2146 00:57:31,080 --> 00:57:31,600 TSD. 2147 00:57:32,160 --> 00:57:32,800 Well, 2148 00:57:33,520 --> 00:57:34,160 I 2149 00:57:34,160 --> 00:57:34,480 guess 2150 00:57:34,480 --> 00:57:34,640 I 2151 00:57:34,640 --> 00:57:34,920 don't 2152 00:57:34,920 --> 00:57:35,080 have 2153 00:57:35,080 --> 00:57:35,260 enough 2154 00:57:35,260 --> 00:57:35,500 time 2155 00:57:35,500 --> 00:57:35,620 to 2156 00:57:35,620 --> 00:57:35,860 show 2157 00:57:35,860 --> 00:57:36,240 all 2158 00:57:36,240 --> 00:57:36,480 this. 2159 00:57:46,780 --> 00:57:47,420 I 2160 00:57:47,420 --> 00:57:47,760 have to 2161 00:57:47,760 --> 00:57:49,600 all the 2162 00:57:49,600 --> 00:57:50,140 data that 2163 00:57:50,140 --> 00:57:50,360 is 2164 00:57:50,360 --> 00:57:51,120 present 2165 00:57:52,200 --> 00:57:53,400 now in 2166 00:57:53,400 --> 00:57:53,500 the 2167 00:57:54,360 --> 00:57:54,960 process 2168 00:57:54,960 --> 00:57:55,300 memory. 2169 00:57:55,720 --> 00:57:56,300 But 2170 00:57:56,300 --> 00:57:56,900 unfortunately, 2171 00:57:57,120 --> 00:57:57,640 in TSD 2172 00:57:58,560 --> 00:57:59,160 application 2173 00:57:59,160 --> 00:57:59,820 included 2174 00:57:59,820 --> 00:58:00,220 in Windows 2175 00:58:00,220 --> 00:58:00,480 XP 2176 00:58:00,480 --> 00:58:00,920 is quite 2177 00:58:00,920 --> 00:58:01,220 old, 2178 00:58:01,440 --> 00:58:02,580 and it 2179 00:58:02,580 --> 00:58:02,900 doesn't 2180 00:58:02,900 --> 00:58:03,340 allow us 2181 00:58:03,340 --> 00:58:03,720 to dump 2182 00:58:03,720 --> 00:58:04,200 it directly. 2183 00:58:04,520 --> 00:58:04,920 So, 2184 00:58:05,040 --> 00:58:05,540 we have 2185 00:58:05,540 --> 00:58:06,540 to use 2186 00:58:06,540 --> 00:58:07,360 the log 2187 00:58:07,360 --> 00:58:07,780 feature 2188 00:58:07,780 --> 00:58:08,080 of 2189 00:58:08,080 --> 00:58:08,680 in 2190 00:58:08,680 --> 00:58:09,200 TSD. 2191 00:58:10,320 --> 00:58:11,000 We 2192 00:58:11,000 --> 00:58:11,220 have 2193 00:58:11,220 --> 00:58:11,600 to log 2194 00:58:11,600 --> 00:58:12,360 all 2195 00:58:12,360 --> 00:58:12,620 the 2196 00:58:12,620 --> 00:58:13,160 output 2197 00:58:13,160 --> 00:58:14,220 of 2198 00:58:14,220 --> 00:58:15,160 in 2199 00:58:15,160 --> 00:58:15,620 TSD 2200 00:58:15,620 --> 00:58:16,820 and save 2201 00:58:16,820 --> 00:58:17,140 it to 2202 00:58:17,140 --> 00:58:17,240 a 2203 00:58:17,240 --> 00:58:17,480 text 2204 00:58:17,480 --> 00:58:17,740 file. 2205 00:58:17,980 --> 00:58:18,380 And 2206 00:58:18,380 --> 00:58:18,780 after 2207 00:58:18,780 --> 00:58:19,020 that, 2208 00:58:19,080 --> 00:58:19,500 transform 2209 00:58:19,500 --> 00:58:19,980 our 2210 00:58:19,980 --> 00:58:20,220 text 2211 00:58:20,220 --> 00:58:20,560 file 2212 00:58:20,560 --> 00:58:20,960 into 2213 00:58:20,960 --> 00:58:21,180 a 2214 00:58:21,180 --> 00:58:21,540 binary 2215 00:58:21,540 --> 00:58:21,880 using 2216 00:58:21,880 --> 00:58:22,620 the 2217 00:58:22,620 --> 00:58:22,740 debug 2218 00:58:22,740 --> 00:58:23,160 and 2219 00:58:23,160 --> 00:58:23,820 debug 2220 00:58:23,820 --> 00:58:24,260 tool. 2221 00:58:24,800 --> 00:58:25,600 That's 2222 00:58:25,600 --> 00:58:25,960 scenario. 2223 00:58:26,680 --> 00:58:27,480 Here's 2224 00:58:27,480 --> 00:58:27,840 one 2225 00:58:27,840 --> 00:58:28,340 demonstration 2226 00:58:28,340 --> 00:58:28,860 of 2227 00:58:28,860 --> 00:58:30,140 compressing, 2228 00:58:30,140 --> 00:58:30,560 of 2229 00:58:30,560 --> 00:58:30,820 packing 2230 00:58:30,820 --> 00:58:31,280 the 2231 00:58:31,280 --> 00:58:32,100 notepad 2232 00:58:32,100 --> 00:58:32,460 with 2233 00:58:32,460 --> 00:58:33,420 UPX 2234 00:58:33,420 --> 00:58:33,840 and 2235 00:58:33,840 --> 00:58:34,320 dumping 2236 00:58:34,320 --> 00:58:34,580 it 2237 00:58:34,580 --> 00:58:34,940 after 2238 00:58:34,940 --> 00:58:35,220 that. 2239 00:58:35,540 --> 00:58:36,240 Well, 2240 00:58:36,320 --> 00:58:36,540 it 2241 00:58:36,540 --> 00:58:37,060 works. 2242 00:58:37,280 --> 00:58:37,500 If 2243 00:58:37,500 --> 00:58:37,680 you 2244 00:58:37,680 --> 00:58:37,920 want 2245 00:58:37,920 --> 00:58:38,080 to 2246 00:58:52,620 --> 00:58:52,700 use 2247 00:58:53,940 --> 00:58:54,460 what 2248 00:58:54,460 --> 00:58:54,660 we 2249 00:58:54,660 --> 00:58:54,800 need 2250 00:58:54,800 --> 00:58:55,000 to 2251 00:58:55,000 --> 00:58:55,120 do 2252 00:58:55,120 --> 00:58:55,260 is 2253 00:58:55,260 --> 00:58:55,520 just 2254 00:58:55,520 --> 00:58:55,800 grab 2255 00:58:55,800 --> 00:58:56,020 all 2256 00:58:56,020 --> 00:58:56,500 sequences 2257 00:58:56,500 --> 00:58:56,820 of 2258 00:58:56,820 --> 00:58:57,100 bytes 2259 00:58:57,100 --> 00:58:57,460 from 2260 00:58:57,460 --> 00:58:57,560 a 2261 00:58:57,560 --> 00:58:57,740 given 2262 00:58:57,740 --> 00:58:58,000 file 2263 00:58:58,000 --> 00:58:58,260 that 2264 00:58:58,260 --> 00:58:58,460 form 2265 00:58:58,460 --> 00:58:58,620 a 2266 00:58:58,620 --> 00:58:58,860 string 2267 00:58:58,860 --> 00:58:59,320 consisting 2268 00:58:59,320 --> 00:58:59,700 of 2269 00:58:59,700 --> 00:58:59,900 three 2270 00:58:59,900 --> 00:59:00,580 or 2271 00:59:00,580 --> 00:59:01,400 more 2272 00:59:22,080 --> 00:59:22,600 ASCII 2273 00:59:22,600 --> 00:59:22,840 functions. 2274 00:59:22,840 --> 00:59:23,060 which 2275 00:59:23,060 --> 00:59:24,360 makes 2276 00:59:25,100 --> 00:59:25,820 very 2277 00:59:25,820 --> 00:59:26,960 significant 2278 00:59:26,960 --> 00:59:27,520 changes 2279 00:59:27,520 --> 00:59:28,120 to 2280 00:59:28,120 --> 00:59:28,520 system 2281 00:59:28,520 --> 00:59:28,760 registry 2282 00:59:28,760 --> 00:59:29,720 and system 2283 00:59:29,720 --> 00:59:30,180 policies. 2284 00:59:31,220 --> 00:59:31,940 We 2285 00:59:31,940 --> 00:59:32,480 don't 2286 00:59:32,480 --> 00:59:32,680 have, 2287 00:59:32,780 --> 00:59:32,920 for 2288 00:59:32,920 --> 00:59:33,240 example, 2289 00:59:33,320 --> 00:59:33,660 file 2290 00:59:33,660 --> 00:59:34,000 menu 2291 00:59:34,000 --> 00:59:34,380 in 2292 00:59:34,380 --> 00:59:34,640 this 2293 00:59:34,640 --> 00:59:35,080 Internet 2294 00:59:35,080 --> 00:59:35,320 Explorer 2295 00:59:35,320 --> 00:59:35,740 window. 2296 00:59:35,740 --> 00:59:36,340 Here is 2297 00:59:36,340 --> 00:59:36,920 our start 2298 00:59:36,920 --> 00:59:37,220 menu. 2299 00:59:37,960 --> 00:59:38,660 We cannot 2300 00:59:38,660 --> 00:59:39,220 run command 2301 00:59:39,220 --> 00:59:39,460 prompt. 2302 00:59:39,720 --> 00:59:39,980 It is 2303 00:59:39,980 --> 00:59:40,540 disabled by 2304 00:59:40,540 --> 00:59:41,140 our administrator. 2305 00:59:41,440 --> 00:59:41,760 We cannot 2306 00:59:41,760 --> 00:59:42,240 run, of 2307 00:59:42,240 --> 00:59:42,400 course, 2308 00:59:42,560 --> 00:59:43,100 registry 2309 00:59:43,100 --> 00:59:43,460 editor. 2310 00:59:43,680 --> 00:59:44,000 But what 2311 00:59:44,000 --> 00:59:44,580 we can 2312 00:59:44,580 --> 00:59:44,920 run is 2313 00:59:44,920 --> 00:59:45,300 notepad. 2314 00:59:45,500 --> 00:59:46,040 This is 2315 00:59:46,040 --> 00:59:46,300 enough. 2316 00:59:49,320 --> 00:59:49,920 We are 2317 00:59:49,920 --> 00:59:50,400 kind of 2318 00:59:50,400 --> 00:59:50,760 notepad 2319 00:59:50,760 --> 00:59:51,040 hackers, 2320 00:59:51,180 --> 00:59:51,320 right? 2321 00:59:53,320 --> 00:59:53,800 Well, 2322 00:59:53,860 --> 00:59:54,020 we 2323 00:59:54,020 --> 00:59:54,320 open 2324 00:59:54,320 --> 00:59:54,740 notepad 2325 00:59:54,740 --> 00:59:54,980 and 2326 01:00:05,740 --> 01:00:06,080 run 2327 01:00:06,080 --> 01:00:06,340 But to 2328 01:00:06,340 --> 01:00:06,640 enable 2329 01:00:06,640 --> 01:00:06,980 it, 2330 01:00:06,980 --> 01:00:07,100 we 2331 01:00:07,100 --> 01:00:07,240 can 2332 01:00:07,240 --> 01:00:07,440 use 2333 01:00:07,440 --> 01:00:09,140 reg.exe 2334 01:00:10,180 --> 01:00:10,700 tool. 2335 01:00:12,640 --> 01:00:13,160 To 2336 01:00:13,160 --> 01:00:13,420 do 2337 01:00:13,420 --> 01:00:13,760 that, 2338 01:00:13,780 --> 01:00:14,060 we 2339 01:00:14,060 --> 01:00:14,220 must 2340 01:00:14,220 --> 01:00:14,540 specify 2341 01:00:14,540 --> 01:00:14,820 some 2342 01:00:14,820 --> 01:00:15,220 parameters. 2343 01:00:16,000 --> 01:00:16,520 And 2344 01:00:16,520 --> 01:00:16,760 to 2345 01:00:16,760 --> 01:00:16,840 be 2346 01:00:16,840 --> 01:00:17,100 able 2347 01:00:17,100 --> 01:00:17,220 to 2348 01:00:17,220 --> 01:00:17,340 do 2349 01:00:17,340 --> 01:00:17,500 that, 2350 01:00:17,580 --> 01:00:17,660 we 2351 01:00:17,660 --> 01:00:17,840 have 2352 01:00:17,840 --> 01:00:18,000 to 2353 01:00:18,000 --> 01:00:18,540 create a 2354 01:00:18,540 --> 01:00:19,240 shortcut to 2355 01:00:19,240 --> 01:00:19,820 reg.exe 2356 01:00:19,820 --> 01:00:20,620 and specify 2357 01:00:20,620 --> 01:00:21,420 these parameters. 2358 01:00:21,800 --> 01:00:22,220 These 2359 01:00:22,220 --> 01:00:22,560 parameters 2360 01:00:22,560 --> 01:00:23,060 tell the 2361 01:00:23,060 --> 01:00:23,320 system, 2362 01:00:23,460 --> 01:00:24,040 tell the 2363 01:00:24,040 --> 01:00:24,720 reg.exe 2364 01:00:24,720 --> 01:00:25,480 file 2365 01:00:26,440 --> 01:00:27,040 application 2366 01:00:27,040 --> 01:00:28,040 to remove 2367 01:00:28,040 --> 01:00:28,620 disable 2368 01:00:28,620 --> 01:00:29,140 registry 2369 01:00:29,140 --> 01:00:29,500 tools 2370 01:00:29,500 --> 01:00:29,940 value 2371 01:00:29,940 --> 01:00:30,380 from the 2372 01:00:30,380 --> 01:00:30,720 registry. 2373 01:00:31,900 --> 01:00:32,500 Well, 2374 01:00:32,620 --> 01:00:32,960 we just 2375 01:00:32,960 --> 01:00:33,320 run this 2376 01:00:33,320 --> 01:00:34,120 shortcut and 2377 01:00:34,120 --> 01:00:34,820 this value 2378 01:00:34,820 --> 01:00:35,240 is removed. 2379 01:00:35,420 --> 01:00:35,920 After that, 2380 01:00:35,980 --> 01:00:36,200 we can 2381 01:00:36,200 --> 01:00:36,400 run 2382 01:00:36,400 --> 01:00:37,200 the 2383 01:00:37,200 --> 01:00:37,520 editor. 2384 01:00:38,160 --> 01:00:38,720 So, 2385 01:00:39,600 --> 01:00:40,380 after that, 2386 01:00:40,420 --> 01:00:40,700 it is 2387 01:00:40,700 --> 01:00:40,980 easy. 2388 01:00:41,120 --> 01:00:41,400 You 2389 01:00:41,400 --> 01:00:41,580 can 2390 01:00:43,680 --> 01:00:44,240 delete 2391 01:00:44,240 --> 01:00:44,640 the 2392 01:00:44,640 --> 01:00:44,920 values 2393 01:00:44,920 --> 01:00:45,380 from the 2394 01:00:45,380 --> 01:00:45,640 registry 2395 01:00:45,640 --> 01:00:45,880 that 2396 01:00:45,880 --> 01:00:46,060 you 2397 01:00:47,040 --> 01:00:47,600 already 2398 01:00:47,600 --> 01:00:47,940 know, 2399 01:00:48,020 --> 01:00:48,160 that 2400 01:00:48,160 --> 01:00:48,260 you 2401 01:00:48,260 --> 01:00:48,360 are 2402 01:00:48,360 --> 01:00:48,660 familiar 2403 01:00:48,660 --> 01:00:48,980 to, 2404 01:00:49,180 --> 01:00:49,740 some 2405 01:00:49,740 --> 01:00:50,260 system 2406 01:00:50,260 --> 01:00:50,720 policies. 2407 01:00:51,900 --> 01:00:52,460 But 2408 01:00:52,460 --> 01:00:53,120 if 2409 01:00:53,120 --> 01:00:53,260 you 2410 01:00:53,260 --> 01:00:53,360 do 2411 01:01:06,420 --> 01:01:06,900 that, 2412 01:01:07,140 --> 01:01:07,740 have to 2413 01:01:07,740 --> 01:01:07,960 use 2414 01:01:07,960 --> 01:01:08,160 this 2415 01:01:08,160 --> 01:01:08,680 jscript 2416 01:01:09,400 --> 01:01:09,880 file 2417 01:01:09,880 --> 01:01:10,580 that I 2418 01:01:10,580 --> 01:01:10,800 showed 2419 01:01:10,800 --> 01:01:10,940 you 2420 01:01:10,940 --> 01:01:11,160 before. 2421 01:01:12,980 --> 01:01:13,460 So, 2422 01:01:15,260 --> 01:01:15,880 here is 2423 01:01:15,880 --> 01:01:15,920 a 2424 01:01:15,920 --> 01:01:16,200 demonstration 2425 01:01:16,200 --> 01:01:16,600 of 2426 01:01:16,600 --> 01:01:16,720 it 2427 01:01:16,720 --> 01:01:16,900 that 2428 01:01:16,900 --> 01:01:17,140 you 2429 01:01:17,140 --> 01:01:17,280 can 2430 01:01:17,280 --> 01:01:17,540 watch 2431 01:01:17,540 --> 01:01:18,440 on 2432 01:01:18,440 --> 01:01:18,620 your 2433 01:01:18,620 --> 01:01:18,920 own 2434 01:01:18,920 --> 01:01:19,420 on 2435 01:01:19,420 --> 01:01:19,500 the 2436 01:01:19,500 --> 01:01:19,740 CD. 2437 01:01:33,560 --> 01:01:34,040 And 2438 01:01:34,040 --> 01:01:34,220 you are 2439 01:01:34,220 --> 01:01:34,820 ready actually 2440 01:01:34,820 --> 01:01:35,160 to be 2441 01:01:35,160 --> 01:01:35,420 in attack. 2442 01:01:35,560 --> 01:01:35,760 You can 2443 01:01:35,760 --> 01:01:36,280 preserve your 2444 01:01:36,280 --> 01:01:37,120 confidentiality 2445 01:01:37,120 --> 01:01:38,060 and you 2446 01:01:38,060 --> 01:01:38,460 can restore 2447 01:01:38,460 --> 01:01:38,920 your system 2448 01:01:38,920 --> 01:01:39,280 here and 2449 01:01:39,280 --> 01:01:39,460 now. 2450 01:01:39,600 --> 01:01:39,740 You know 2451 01:01:39,740 --> 01:01:40,780 why time 2452 01:01:40,780 --> 01:01:41,220 matters, 2453 01:01:41,480 --> 01:01:42,440 because you 2454 01:01:42,440 --> 01:01:42,800 can lose 2455 01:01:42,800 --> 01:01:43,280 your data 2456 01:01:43,280 --> 01:01:43,740 if you 2457 01:01:44,280 --> 01:01:44,800 postpone 2458 01:01:45,940 --> 01:01:46,460 the 2459 01:01:46,460 --> 01:01:46,900 procedures. 2460 01:01:48,120 --> 01:01:48,640 Well, 2461 01:01:49,740 --> 01:01:50,580 the questions 2462 01:01:50,580 --> 01:01:51,060 can be 2463 01:01:51,060 --> 01:01:52,140 asked in 2464 01:01:52,140 --> 01:01:53,580 room 109 2465 01:01:53,580 --> 01:01:54,420 after my 2466 01:01:54,420 --> 01:01:54,960 presentation. 2467 01:01:56,200 --> 01:01:56,540 So, 2468 01:01:56,700 --> 01:01:57,220 may the 2469 01:01:57,220 --> 01:01:57,560 frost be 2470 01:01:57,560 --> 01:01:57,900 with you. 2471 01:01:57,960 --> 01:01:58,340 Thank you 2472 01:01:58,340 --> 01:01:58,700 very much.