[00:00.000 --> 00:02.820] Okay, let's get started on the next session. I've got Jamie [00:02.820 --> 00:08.220] Sanchez with derevolutionizing OS fingerprinting, the cat and [00:08.220 --> 00:12.020] mouse game. Jamie's got over 20 years experience as a [00:12.020 --> 00:14.840] specialist advisor for large national and international [00:14.840 --> 00:18.260] companies, focusing on different aspects of security. And [00:18.260 --> 00:20.880] without further ado, I'll hand over to Jamie. Thanks very [00:20.880 --> 00:26.500] much. [00:26.500 --> 00:31.160] Well, hi, hello. It's great to be here. Thank you for coming to [00:31.160 --> 00:38.140] see this talk. Just some things about me. I've been working in [00:38.140 --> 00:43.160] security for almost 20 years. It's not my first time in Vegas. [00:43.700 --> 00:50.460] So it's great to be here again. What we are going to talk about [00:50.460 --> 00:54.760] is OS fingerprinting, you know, that is something very [00:54.760 --> 00:58.320] interesting from different perspectives, you know, from [00:58.320 --> 01:02.420] the attacker point of view, for defenders, administrators, [01:02.420 --> 01:08.080] vendors, you know, you really need to know what kind of [01:08.080 --> 01:13.120] operating system you are trying to connect. If you try to [01:13.120 --> 01:16.800] attack, you need to know, for example, if it's a Windows XP [01:16.800 --> 01:21.680] without a service pack or whatever before launching your [01:21.680 --> 01:26.540] exploit, you have to know the memory addresses. So it's [01:26.540 --> 01:30.540] described as basic collection of configuration attributes from [01:30.540 --> 01:34.660] remote devices but it's not also this because there are a lot of [01:34.660 --> 01:39.520] approaches for operating system fingerprinting. You know the old [01:39.520 --> 01:44.100] days when everything was like banner grabbing, that's manual [01:44.100 --> 01:49.000] recognizance. Then we moved to active operating system [01:49.000 --> 01:53.940] fingerprinting with tools like Xboot, like Nmap. Then we have [01:53.940 --> 01:59.040] also that basic point of view where you are only an analyzer [01:59.040 --> 02:04.880] like a packet sniffer. All the traffic that you are generating [02:04.880 --> 02:10.000] on your side and on the other side just to get useful [02:10.000 --> 02:12.780] information. But there is another approach that are the [02:12.780 --> 02:18.620] timing attacks. We are not going to see it here. So the first [02:18.620 --> 02:21.680] technique is banner grabbing is very simple. You connect, you [02:21.680 --> 02:25.420] use Telnet for example to a web server to get all the headers [02:25.420 --> 02:32.080] information if you are dealing with an ESS or NGINX, whatever. [02:32.100 --> 02:35.120] You can also connect to FTP services, Telnet to see the [02:35.120 --> 02:43.120] banner. You can use SNMP. That's kind of active techniques. But [02:43.120 --> 02:46.700] you can also get free information for other services, [02:46.700 --> 02:51.120] you know, Emap, Finger, NTP. And if you have access to the [02:51.120 --> 02:54.740] remote machines, you can also play with some configuration [02:54.740 --> 03:00.460] files for the issue files, the banners and you can try to port [03:00.620 --> 03:04.720] a scan and also you can try to do social engineering just to [03:04.720 --> 03:08.020] get information about the technologies used by any [03:08.020 --> 03:14.820] company. There are a lot of services that gives any other [03:14.820 --> 03:19.320] information, for example FTP use the SST command that asks [03:19.320 --> 03:22.660] information about the server operating systems and you have [03:22.660 --> 03:28.340] some examples there. Another useful thing would be for [03:28.340 --> 03:33.400] example in FTP connecting to the FTP, get any file that is [03:33.400 --> 03:39.500] inside, for example the LS, compress, cut and try to get [03:39.500 --> 03:42.040] information on your local machine. For example here you [03:42.040 --> 03:47.740] can see that our file is compiled for Linux, for Sun, [03:47.740 --> 03:53.920] whatever. You can also use all the kind of search engines like [03:53.920 --> 03:57.940] Sodan, like Census, that get all this information for you so [03:57.940 --> 04:03.520] that you don't have to interact with the other machine. For [04:03.520 --> 04:08.180] example, this is very useful because I don't know if you can [04:08.180 --> 04:17.300] see it there. Well, don't worry. If you try to scan, for [04:17.300 --> 04:22.180] example, mobile networks, you can try to look for ports 62078 [04:22.660 --> 04:26.560] as well for jailbroken iPhones and you can try to connect with [04:26.560 --> 04:29.540] SSH with the file credential that are root and alpine and [04:29.540 --> 04:34.480] try to move on. So this is very important to know. To know what [04:34.480 --> 04:37.060] kind of operating system you are dealing with. In this case I [04:37.060 --> 04:40.820] only use the mobile phones to jump to another machine and [04:40.820 --> 04:46.560] finally attack my target. Try to get all the information and try [04:46.560 --> 04:51.980] finally to attack my final target. So some things you need [04:51.980 --> 04:56.460] to know, TCP IP theory. This should be very basic but it's [04:56.460 --> 05:00.380] something that people have to understand before going into [05:01.860 --> 05:08.080] fingerprinting. For example, in IP you have to know what kind of [05:08.080 --> 05:11.940] protocol you are dealing with, TCP, UDP, ICMP, that are the [05:11.940 --> 05:17.600] most important ones that we are taking a look. Source address, [05:17.600 --> 05:21.280] destination address, something you know. But in TCP we will be [05:21.280 --> 05:27.220] dealing with SIM packets, ARC packets, push. We have to know [05:27.220 --> 05:32.080] not every, almost every TCP option that is available. But [05:32.080 --> 05:34.840] you have to understand that every almost operating system [05:34.840 --> 05:40.860] uses some TCP options in the same order and maybe in Windows [05:40.860 --> 05:44.980] XP and Windows 2000 they have the same options but they are in [05:44.980 --> 05:48.980] different order. So that's the way that we can make the [05:48.980 --> 05:51.580] difference and know what we are dealing with a Windows XP or [05:51.580 --> 05:58.220] Windows 2000. The same for UDP. Just to know source port, [05:58.220 --> 06:01.900] destination port. You will see that in Nmap it has like a [06:01.900 --> 06:10.300] custom data that has a lot of C's. And finally ICMP that is [06:10.300 --> 06:15.620] used by Nmap. So these are some basics that you will see that in [06:15.620 --> 06:20.740] any database. You get all this information if there is a [06:20.740 --> 06:28.220] congestion flag that is on. If the default fragment flag is on. [06:28.220 --> 06:32.120] So for active operating system fingerprinting we are going to [06:32.120 --> 06:36.940] see just little tools that for example some of the first one [06:36.940 --> 06:42.140] that was called Queso. That is in Spanish. It's like which [06:42.140 --> 06:48.060] operating system. And it was sending like seven kind of tests. [06:48.060 --> 06:55.800] You can see the SYN, SYN plus acknowledge, SYN. And then they [06:55.800 --> 07:00.760] moved and another project was released that called XProof. [07:00.760 --> 07:07.260] XProof deal a lot of, deal with a lot of packets of ICMP. Send [07:07.260 --> 07:13.320] also UDP packets. But this kind of tools are some old right now [07:13.320 --> 07:20.380] and I think that almost everyone in the security is using Nmap. [07:20.760 --> 07:25.290] Nmap is a mask for pen tester for everyone. And Nmap gives you a [07:25.290 --> 07:28.030] lot of information about what kind of device you are dealing [07:28.030 --> 07:30.470] with. For example the device type in this case is a general [07:30.470 --> 07:33.410] proposed because it's a computer but it can also tell you if you [07:33.410 --> 07:37.210] are dealing with a printer, if you are dealing with a firewall, [07:37.210 --> 07:41.530] with a router or if it doesn't know well it can give you [07:41.530 --> 07:44.830] information about this maybe should be a router or maybe it's [07:44.950 --> 07:49.050] a firewall. Next thing that we'll tell you is the family in [07:49.050 --> 07:52.130] this case is Linux and the generation. The generation is [07:52.130 --> 07:57.730] practically the version that you are running. Common platform [07:57.730 --> 08:03.050] enumeration, that's something standard. The details on the [08:03.050 --> 08:07.070] fingerprint. If it's not a perfect match because there are [08:07.070 --> 08:10.510] some times where you have like a firewall or you are not getting [08:10.510 --> 08:15.090] all the traffic, you can get a message like just guessing. So [08:15.090 --> 08:17.910] Nmap doesn't know exactly what kind of operating system it is [08:17.910 --> 08:20.510] but maybe it's telling you that you are dealing with a Solaris. [08:20.510 --> 08:24.890] Maybe this version, maybe another one. You know, a lot of [08:24.890 --> 08:29.070] information, the network distance like if you were doing [08:29.270 --> 08:35.850] a trace route, uptime guess, TCP sequence prediction. But you [08:35.850 --> 08:40.930] can also use version scan. Version scan is very useful when [08:40.930 --> 08:43.910] you are dealing with a proxy because if you try to make the [08:43.910 --> 08:47.050] operating system fingerprinting you are dealing really with the [08:47.050 --> 08:49.830] proxy and you need to get information about the remote [08:49.830 --> 08:54.010] host. So in this case you can get a lot of information about [08:54.010 --> 09:00.250] if it's an SSL service, if it's running TCP in UDP, it can deal [09:00.250 --> 09:05.150] with a map, whatever service. But the interesting thing here [09:05.800 --> 09:10.050] is how does Nmap works? How does it really works? The new [09:10.050 --> 09:16.730] working for this is that Nmap is leaving 15 TCP proofs to UDP and [09:16.730 --> 09:23.130] ICMP. All these tests are with a custom destination port. They [09:23.130 --> 09:27.950] have custom flags. And the result for the Nmap database is [09:27.950 --> 09:30.870] something like that. I don't know if you can see it very [09:30.870 --> 09:34.350] fine. But you can find it in the slides that you have a lot of [09:34.350 --> 09:37.410] information about every operating system that you are [09:37.410 --> 09:43.990] dealing. For example, the first TCP proofs. So it has like this [09:43.990 --> 09:49.170] custom TCP options. If you want to get more information about [09:49.710 --> 09:54.130] this, it's really useful to get the official Nmap book. It has [09:54.350 --> 09:59.730] a lot of information about this. So you can get all the TCP [09:59.730 --> 10:04.270] options that they are using, the port, the remote port they are [10:04.270 --> 10:09.650] using, if they are looking for a network congestion flag, if the [10:09.990 --> 10:16.010] default fragment bit is set on ICMP. And it begins with the [10:16.010 --> 10:25.670] real proofs of T1, T2 to T7. When you have a lot of, a lot of [10:25.670 --> 10:29.210] flags that you will know that you will receive. For example, [10:29.210 --> 10:35.450] packet T2 is no flags. Fragment bit is on. It's window size is [10:36.070 --> 10:40.790] 124. This is all the information I got. So I can know which [10:40.790 --> 10:45.170] packets I should filter and I should manipulate and let all [10:45.170 --> 10:50.290] the traffic go to the, all the traffic go to my machine. So I, [10:50.290 --> 10:53.470] in this case, we will see a tool that is called OSFiller that is [10:53.470 --> 10:56.850] only dealing with the specific packets for Nmap. All the other [10:56.850 --> 11:05.550] traffic should be treated by the kernel. This case is UDP. UDP [11:05.550 --> 11:10.910] has a special payload because it has like 300 times the letter [11:10.910 --> 11:15.410] C. So it's very easy to, to recognize that kind of, of [11:15.410 --> 11:19.730] packets. I have a small demo but I think it will be better if we [11:19.730 --> 11:25.250] do it live because we can make the screen bigger. So the same [11:25.250 --> 11:29.390] thing is for basic operating system fingerprinting. You know, [11:29.390 --> 11:32.810] it's like dealing with a packet sniffer. What you are trying to [11:32.810 --> 11:36.670] do is coping the data without modifying it. You don't [11:36.670 --> 11:39.290] manipulate the traffic. You just get all the information and try [11:39.290 --> 11:42.710] to analyze it locally to get all the information you can about [11:42.710 --> 11:48.510] the remote host. And for this you got, for example, OSFiller, [11:48.510 --> 11:53.530] the tool I'm presenting, can hold all the information from [11:53.530 --> 11:56.750] the database from version 2. It's very simple. Every line is [11:56.750 --> 11:59.750] like this. The first is the window size for the, for the [11:59.750 --> 12:05.890] TCP IP stack. Time to leave if the default fragment flag is on. [12:05.890 --> 12:10.190] The TCP options and the order. And some quirks, for example, if [12:10.190 --> 12:13.530] you get a SIM packet, you shouldn't have any payload inside [12:13.530 --> 12:16.830] but there are some operating systems that send this kind of [12:16.830 --> 12:19.850] information so this is very useful to identify them. And [12:19.850 --> 12:23.230] finally you got the, like, like the label for the operating [12:23.230 --> 12:27.650] system. This is fully working but then both move to another [12:27.650 --> 12:32.130] version, version 3, that is like a complete rewrite of the, of [12:32.130 --> 12:37.630] the original code. And it deals with TCP packets, the SIM [12:37.630 --> 12:42.490] packets, but the, the SIM and the acknowledged packets, HTTP [12:42.490 --> 12:47.370] request, so it's more complete. In this case, instead of [12:47.370 --> 12:51.650] rebuilding all OSFiller, what I'm trying to do is just to [12:51.650 --> 12:56.050] migrate this kind of database to the old format so we can, we can [12:56.050 --> 12:58.950] use it. If you can see, it's almost the same kind of [12:58.950 --> 13:02.250] information. You have the time to leave, the length of the [13:02.250 --> 13:05.510] packet, maximum segment size, you have the TCP options, [13:05.690 --> 13:10.310] default fragment, some more quirks that are available in, on [13:10.310 --> 13:14.150] this operating system. So this is very easy to, to identify. [13:14.910 --> 13:18.490] And finally, there are a lot of people that are still using [13:18.490 --> 13:21.950] Ethercap. Ethercap is almost using the same technique as [13:21.950 --> 13:26.290] both. It's only copying all the traffic and just trying to [13:26.290 --> 13:30.510] analyze. And it has some, uh, database. If you can see all, [13:30.510 --> 13:33.350] practically all the, all the, all these tools use the same [13:33.350 --> 13:35.930] format, all the same information, it analyzes TCP [13:35.930 --> 13:39.110] options, length of the packet, what kind of information if it [13:39.110 --> 13:43.730] has a payload. So in this case, um, in the next release of [13:43.730 --> 13:48.790] OSFiller, I will migrate the same database from Ethercap to [13:48.790 --> 13:52.170] both. It's very simple because, uh, the version two of, of [13:52.170 --> 13:56.750] database, um, database of, of, of version two, uh, is being [13:56.750 --> 14:01.390] parsed by OSFiller and it is 100% complete. So it works like [14:01.510 --> 14:05.290] a charm. So I will be doing this, this change. But also [14:05.290 --> 14:08.190] there are some commercial engines like Surefire or [14:08.190 --> 14:12.110] Fireside that use this kind of techniques to, to identify all [14:12.110 --> 14:16.650] the traffic for, for the IPS or the IDS. When you get an alert, [14:16.650 --> 14:19.630] they tell you like, hey, you have been attacked by this kind [14:19.630 --> 14:22.810] of machine, maybe it's a Linux, maybe it's a Windows machine. [14:22.810 --> 14:25.330] They are using almost the same information and the same [14:25.330 --> 14:30.810] information, you can, you can spoof the, that kind of, of, of [14:30.810 --> 14:33.870] fingerprint. So you can try to confuse administrators, [14:33.870 --> 14:40.690] defenders. And this is really useful to know because there are [14:40.690 --> 14:44.830] other online services, for example, for vendors of, for [14:44.830 --> 14:49.370] ads or whatever, that use this online. So it's very useful for, [14:49.370 --> 14:51.950] for vendors, for example, to know if you are using not only, [14:51.950 --> 14:57.190] uh, Chrome or Safari, but if you are using, uh, Macintosh, you [14:57.190 --> 15:01.430] are using Windows, you are using Solaris, whatever. So in this [15:01.430 --> 15:06.250] case, it's very simple to make the same thing in, in the, in [15:06.250 --> 15:09.950] the first approach, it thinks it's a Linux version three. And [15:09.950 --> 15:13.470] in the second one, we are running only OSFiller and you [15:13.470 --> 15:17.650] get like Windows NT kernel. So that's because it's using same [15:17.650 --> 15:21.730] database like both of the gap. So it's very simple to deal with [15:21.730 --> 15:27.410] this. So other techniques to, to do this kind of fingerprinting [15:27.410 --> 15:33.930] could be analyzing the, the DHCP requests. So when you, when you [15:33.930 --> 15:37.650] ask, for example, for options like the DNS server, default [15:37.650 --> 15:41.830] gateway, it's asking in an, an exact order. So you can try to [15:41.830 --> 15:44.070] do, there is a tool called Satori. There is a very [15:44.070 --> 15:47.410] interesting, uh, white paper that you can download and take a [15:47.410 --> 15:52.830] look. And at last you can use other techniques like identify [15:52.830 --> 15:57.130] the MAC addresses, for example, Apple or Sony use some kind of [15:57.130 --> 16:00.910] patterns. So you can use that to get all the information about [16:00.910 --> 16:06.190] the, the machine you want. So at this point we know how to do [16:06.190 --> 16:08.730] that kind of active fingerprinting, basic [16:08.730 --> 16:12.410] fingerprinting, but which kind of countermeasures do we have to [16:12.410 --> 16:16.890] protect from this? I have collected some information about [16:16.890 --> 16:21.990] uh, just uh, someone's, for example, IP personality. It was [16:21.990 --> 16:25.450] very famous because, um, depending on some parameters, it [16:25.450 --> 16:30.730] let you change sequence number, window size, IDs, uh, how it [16:30.730 --> 16:34.410] answer to TCP packets. But the problem is that, uh, it changed [16:34.530 --> 16:39.850] a lot of, of, of the behavior of the TCP IP stack for Linux. And [16:39.850 --> 16:43.290] this, uh, was working for all releases of the kernel. So [16:43.290 --> 16:48.570] nowadays it's not very useful. Uh, the other one was the steal [16:48.570 --> 16:56.150] patch, uh, that was running from kernel to 22 to 24. But this [16:56.150 --> 17:00.550] problem, this, this tool have a problem that, um, if you change [17:00.550 --> 17:03.470] some parameters when it's scanning, you can know that [17:03.470 --> 17:07.430] this, this, the, the remote machine is using this tool and [17:07.430 --> 17:10.590] you can identify because you know that steal patch only works [17:10.590 --> 17:15.730] for some kernels. So it makes easier to understand. Many [17:15.730 --> 17:21.050] others, it was a blue, black hole, fingerprint fucker, more, [17:21.050 --> 17:25.510] there were a lot of tools, but nowadays I, I didn't find any [17:25.510 --> 17:30.390] useful tool to, to avoid this. So when I was working, I worked [17:30.390 --> 17:34.170] for Telefonica. When I was working at the security center, [17:34.170 --> 17:37.870] I have to deal with a customer that it was scanning all his [17:37.870 --> 17:42.390] network every day, every day. I, I didn't have time enough. I [17:42.390 --> 17:46.430] didn't have alerts so fast to notice him that I know that he [17:46.430 --> 17:49.950] was scanning. So I tried to make some kind of cool thing that [17:49.950 --> 17:53.850] this was detecting the, the scannings, uh, uh, with a [17:53.850 --> 17:58.490] program I made in Perl. Um, but also try to fool him. And so [17:58.490 --> 18:01.030] like, Hey, you're scanning, but you have a PlayStation inside [18:01.030 --> 18:05.150] your network. You see, you have a Sonny Wallman Ericsson. Um, [18:05.150 --> 18:09.970] and that's how we came to OSFiller. OSFiller, if you [18:09.970 --> 18:13.950] know, uh, packets are inside the kernel space and you are, uh, [18:13.950 --> 18:18.290] on, uh, on user space. So you can not interact with packets in [18:18.290 --> 18:24.890] real time. So, uh, the solution was to use NFQ. NFQ is, uh, an [18:24.890 --> 18:31.330] extension for IP tables that accepts some, uh, some, uh, uh, [18:31.330 --> 18:35.390] extensions and lets you put all the packets inside some queues. [18:35.770 --> 18:39.770] So you have two elements. You have a queue handler that deals [18:39.770 --> 18:42.370] with the, with the packets, with the kernel. So it tells the [18:42.370 --> 18:47.250] kernel, just give me the packets and it moves to user space. In [18:47.250 --> 18:50.330] user space, you can receive those packets, manipulate them [18:50.330 --> 18:53.750] and send them back. The only problem here is that you have a [18:53.750 --> 18:58.910] maximum queue length that is 1,424. So you have to manipulate [18:58.910 --> 19:02.010] all those packets very, very fast because if you don't and [19:02.010 --> 19:04.730] the queue gets full, all the traffic will be re, will be [19:04.730 --> 19:12.730] rejected. And that's a big problem. So if just, just take a [19:12.730 --> 20:06.630] look, for example, let me see if I can. Okay. Okay. Now you [20:06.630 --> 20:13.420] have, I think that you can see the screen now. If you, for [20:13.420 --> 20:20.940] example, do an Nmap scan for localhost, it will give no [20:20.940 --> 20:24.180] information why because I don't have any open port. So let's [20:24.180 --> 20:36.570] start, for example, secure cell. So we have, I'm running a Kali. [20:36.570 --> 20:42.710] I have the Linux with kernel version 3, 3.7 to 3.10. So this [20:42.710 --> 20:47.570] is all information that Nmap can give me. So we will be using [20:48.470 --> 20:56.170] our tool is OSFueler. OSFueler is working. So what can you do? [20:56.910 --> 21:02.590] First of all, just let you know that here we are only dealing [21:02.590 --> 21:08.330] with, in case of Nmap, only dealing with a specific test for [21:08.330 --> 21:12.070] Nmap. All the traffic, all the traffic should go directly to [21:12.070 --> 21:17.070] your computer and shouldn't be manipulated in any way. So, for [21:17.070 --> 21:20.050] example, if you just want to take a look at what kind of [21:20.050 --> 21:27.970] operating systems do you have, minus N. We are interacting with [21:27.970 --> 21:31.330] the official Nmap database. So you can just update it and we [21:31.330 --> 21:35.750] will be working. So this is almost all the operating systems [21:36.270 --> 21:43.810] that are available right now. There are a lot of them. Just to [21:43.810 --> 21:50.470] let you know that it has like 5,500 signatures. So there are [21:50.630 --> 21:56.510] a lot of operating systems to emulate. So if you do the same [21:56.510 --> 22:06.310] thing, for example, with Poth, the same. In this case you have [22:06.310 --> 22:10.590] to deal with what kind of operating system do you want and [22:10.590 --> 22:15.230] then you go to the versions. In this case, Nmap, with OSFueler [22:15.230 --> 22:20.090] you can go in both ways. You can specify I want to be like a [22:20.090 --> 22:25.610] Windows and I need the version to be like XP or 2000 or maybe [22:25.610 --> 22:28.630] you just specify the family. I need to be Windows and every [22:28.630 --> 22:31.830] packet that you are sending will be in a loop and you will be [22:31.830 --> 22:35.010] changing your ID inside Windows. For example, the first one will [22:35.010 --> 22:39.390] be XP, second one will be 98, the third one will be 2000, that [22:39.390 --> 22:44.690] kind of things randomly. There are not so much signatures for [22:44.690 --> 22:53.090] Poth. There are like 250 and there is a special flag that if [22:53.090 --> 22:56.890] you just want to search, for example, give me all the [22:56.890 --> 22:59.850] information that you have. Not for Windows but let's see if [22:59.850 --> 23:04.950] you have something that is smaller. For PlayStation, Nmap [23:04.950 --> 23:08.170] has like 1, 2, 3, 4, 5 signatures available for [23:08.170 --> 23:16.120] PlayStation and you have one available for Poth. In this [23:16.120 --> 23:22.960] case there are two queues for the traffic. One will go to Poth [23:22.960 --> 23:26.900] to basic fingerprinting. The other one will go only to Nmap. [23:26.900 --> 23:31.140] So when you are running OSFiller you get those different queues [23:31.140 --> 23:37.300] and in this case the program is running in multithreading. So I [23:37.300 --> 23:41.400] have made some tests, not some stress tests but because last [23:41.400 --> 23:45.580] day in the demo labs people asked me about the performance. [23:45.660 --> 23:52.600] So when using in a web server without a lot of connection you [23:52.600 --> 23:58.600] have to understand that you have 1,024 packets per queue. But [23:58.600 --> 24:03.540] in case of Nmap, Nmap sends like 20 packets. So to get the queue [24:03.540 --> 24:09.600] full you will need maybe like 200 attackers scanning at the [24:09.600 --> 24:15.280] same time and yourself running a Celeron or something like that. [24:15.400 --> 24:27.960] So if you just wanted to, let's search if we can do Nmap. Let's [24:27.960 --> 24:40.690] search for Windows Poth Nmap. For example this one. Now I have [24:40.690 --> 24:48.230] the information so let's emulate to be Microsoft Windows 2000. [24:48.230 --> 24:55.490] And you get this info. You are mutating to Nmap. You get in the [24:55.490 --> 24:58.390] database the signature. You can see that there are some proofs [24:58.390 --> 25:03.550] that we shouldn't respond. For example for UDP, for example for [25:03.550 --> 25:12.430] ICMP. And if you open a new window, let's repeat the same [25:12.430 --> 25:25.290] test. Do you see? Nmap thinks that we are running Microsoft [25:25.290 --> 25:29.590] Windows 2000 or maybe XP. That's because the signatures are very [25:29.590 --> 25:33.650] similar and Nmap doesn't have all the information it needs to [25:33.650 --> 25:40.270] complete the profiling of my operating system. If you use the [25:40.270 --> 25:52.550] verbose option and you launch the same scan, you will get [25:52.550 --> 25:57.790] information for every packet that you receive from Nmap. So [25:57.790 --> 26:03.350] for example you remember I told you that UDP test in Nmap has a [26:03.350 --> 26:09.450] payload of 300 C's. You can see it here. So this is not only [26:09.450 --> 26:16.530] useful to try to defeat Nmap but you can also let it run in the [26:16.530 --> 26:19.910] background and write directly all this information to a log [26:19.910 --> 26:24.910] and try to get information when you are getting a scan. The same [26:24.910 --> 26:32.910] thing we can do with for example Puff. We search Windows for [26:33.470 --> 26:52.460] example. Let's work with 2002. So family is Windows, details are [26:53.550 --> 27:00.680] this and interface would be localhost. The same. You get here [27:00.680 --> 27:08.200] the signature for Windows 2000 and let's get in Puff. Let's get [27:15.160 --> 27:22.380] in Puff. Just let me launch some localhost connections. If you [27:22.380 --> 27:27.660] see I have started a secure cell connection and Puff thinks that [27:27.660 --> 27:33.340] we are running Microsoft Windows XP. If you stop always [27:33.340 --> 27:38.280] filler and do the same thing, in this case it doesn't have [27:38.280 --> 27:42.420] information because it's a newer kernel and all that base of Puff [27:42.420 --> 27:46.600] doesn't have it but it's not the same signature. And you remember [27:46.600 --> 27:54.500] I told you that you can just specify the family. I'm telling [27:54.500 --> 27:59.260] filler to try to emulate almost every version of Windows it has [27:59.260 --> 28:09.870] on every new packet. So if you launch Puff, Windows CE, Windows [28:09.870 --> 28:16.850] 98, Windows 2000, Windows NT, Windows 98. So on every [28:16.850 --> 28:23.490] connection you will be changing inside the same family your [28:24.090 --> 28:33.720] fingerprint. You can go to random. In this case it's a sound [28:33.720 --> 28:51.070] receiver. Linux 2.6.39. Search for playstation. Now let's see if [28:51.070 --> 29:28.650] we can get something cooler. Sony Ericsson mobile phone. And you [29:28.650 --> 29:39.150] see. Same thing for this. So it's very easy for the tool to [29:39.150 --> 29:43.910] get all this information to read the Nmap database, to read Puff [29:43.910 --> 29:49.770] databases. Nmap database is working like 95% because there [29:49.770 --> 29:52.410] are some signatures that doesn't have all the fields and I have [29:52.410 --> 29:56.620] to change the inner working of filler to change that. But in [29:56.620 --> 30:00.580] this case Puff is running with almost every operating system. [30:00.760 --> 30:05.420] And I think that's all. You can get those fillers using github [30:05.420 --> 30:09.740] or using pip and feel free to collaborate on certain issues [30:09.740 --> 30:25.040] that you find. So if there is any question? Yes? I can hear [30:25.040 --> 30:31.180] you. No. In this case we are only dealing with active [30:33.600 --> 30:42.620] fingerprint. This is not valid proof. This is only a proof of [30:42.620 --> 30:46.120] concept for Nmap and for Puff. If you make some modifications [30:46.120 --> 30:50.020] in Nmap for example and you deal with some small changes you can [30:50.020 --> 30:53.780] get information about the remote host. So this is not a valid [30:53.780 --> 30:57.540] proof but only proof of concept for those specific tools. You [30:57.540 --> 31:01.680] can still use like DHCP, you can use the MAC address, you can [31:01.680 --> 31:06.740] use timing attacks to identify the operating system. So this is [31:06.740 --> 31:10.700] not working for every technique. Just should be working fine for [31:10.700 --> 31:31.350] this kind of tools. Yes? Excuse me? That's what I told you [31:31.350 --> 31:37.530] before. I haven't made any stress test but think of that in [31:37.530 --> 31:42.410] the case of FACIF you are only modifying the SIM packets and in [31:42.410 --> 31:47.450] the case of Nmap you are only dealing with almost 20 packets [31:47.450 --> 31:54.230] per scan. So that shouldn't be a problem. You should maybe have a [31:54.230 --> 31:58.390] slow machine and have like 200 or 400 attackers scanning you at [31:58.390 --> 32:02.490] the same time to get the queue full and the program works with [32:02.490 --> 32:07.750] multithreading. So I haven't made a lot of tests but it should [32:07.750 --> 32:11.610] be working fine. I'm using like on my pen test when I'm trying [32:11.610 --> 32:15.750] to do research and it's working fine. With some servers I have on [32:15.750 --> 32:21.430] internet and it's working okay. But if any of you can get those [32:22.190 --> 32:24.630] information, that information about the performance, it should [32:24.630 --> 32:34.240] be great to have it inside the GitHub. Thank you.