1 00:00:00,000 --> 00:00:05,220 My name is Alberto, like he told you. I'm from Spain. My accent is not the best. 2 00:00:06,760 --> 00:00:11,620 I'm here to speak about how to hack all the transport networks of a country, 3 00:00:12,140 --> 00:00:17,060 how to make black hacking, how to hack critical infrastructures. 4 00:00:18,360 --> 00:00:19,680 So, let's begin. 5 00:00:21,400 --> 00:00:28,500 This is the index of the main topics I'm going to speak about in this speech. 6 00:00:29,680 --> 00:00:31,940 First of all, I want to introduce myself. 7 00:00:33,460 --> 00:00:37,960 This is me when I was pretty, and this thing is handsome, handsome for men. 8 00:00:40,080 --> 00:00:45,280 I'm from Valladolid. Valladolid is a city 200 kilometers from the north of Madrid. 9 00:00:47,560 --> 00:00:50,240 I'm 24 years old. I'm single. 10 00:00:50,640 --> 00:00:52,480 If anyone wants to... 11 00:00:53,440 --> 00:00:57,240 No, I'm not like girls. Sorry. 12 00:01:02,860 --> 00:01:07,420 Okay, I study maths and IT, system IT. 13 00:01:07,560 --> 00:01:11,520 I don't know how to say in English. Maybe it's the same, the career, system IT. 14 00:01:12,060 --> 00:01:17,240 In Salamanca. Salamanca is another beautiful city in Spain. 15 00:01:17,700 --> 00:01:20,040 It's near Madrid, two hours. 16 00:01:21,620 --> 00:01:24,700 This is Salamanca. This is Salamanca. It's so cool. 17 00:01:25,020 --> 00:01:27,280 And I want to introduce myself. 18 00:01:27,860 --> 00:01:28,480 Thank you. 19 00:01:28,500 --> 00:01:32,100 And I'm going to tell you how I learned English, because this is very important to me. 20 00:01:33,240 --> 00:01:37,340 I was in a university city. Salamanca is a university city. 21 00:01:37,600 --> 00:01:41,100 In Salamanca, there are a lot of young people. 22 00:01:41,740 --> 00:01:43,720 But not only Spanish people. 23 00:01:44,460 --> 00:01:46,620 There are a lot of parties. 24 00:01:47,000 --> 00:01:50,700 This is the main square in Salamanca on Christmas. 25 00:01:51,180 --> 00:01:56,580 Okay, all the students go to the main squares and drink a little bit. 26 00:01:58,500 --> 00:02:03,680 I, in this parties, I met a lot of foreign girls, foreign people. 27 00:02:05,320 --> 00:02:09,200 So, I want to appreciate you, appreciate the American girls. 28 00:02:10,240 --> 00:02:12,040 I want to appreciate the Irish girls. 29 00:02:12,320 --> 00:02:17,580 I want to appreciate the Ibiza people who is going there to learn English with me. 30 00:02:18,100 --> 00:02:25,520 I want to say thank you to all of you, all of your girls, because they really helped me to improve my English. 31 00:02:25,760 --> 00:02:26,660 Okay, so... 32 00:02:29,400 --> 00:02:30,760 Where did I get this material? 33 00:02:31,040 --> 00:02:37,180 I'm going to talk about some material that I'm going to be clear in this. 34 00:02:37,340 --> 00:02:38,680 I want to be clear in this. 35 00:02:38,920 --> 00:02:40,120 I did not do it. 36 00:02:43,420 --> 00:02:44,580 No, it's not a joke. 37 00:02:45,780 --> 00:02:46,260 Really. 38 00:02:47,220 --> 00:02:47,700 Okay? 39 00:02:47,860 --> 00:02:50,620 I just don't know the torrent that I found around. 40 00:02:51,400 --> 00:02:51,880 Okay? 41 00:02:52,820 --> 00:02:55,660 I don't have the knowledge to do those things. 42 00:02:57,340 --> 00:02:58,180 I just... 43 00:02:58,500 --> 00:02:59,900 I was looking for porn. 44 00:03:00,020 --> 00:03:00,760 That's all. 45 00:03:03,340 --> 00:03:04,520 Okay, that's all. 46 00:03:05,920 --> 00:03:06,520 Perfect. 47 00:03:07,680 --> 00:03:08,280 Clear. 48 00:03:08,580 --> 00:03:09,980 This thing must to be clear. 49 00:03:10,880 --> 00:03:11,480 Okay. 50 00:03:11,760 --> 00:03:18,400 Who I think that are the really guys who did it, who did this research? 51 00:03:20,280 --> 00:03:22,320 I imagine that something like that. 52 00:03:25,020 --> 00:03:27,060 Someone like this guy. 53 00:03:27,240 --> 00:03:28,480 I get something. 54 00:03:28,500 --> 00:03:29,340 Some pictures in the torrent. 55 00:03:29,540 --> 00:03:31,040 This picture was around. 56 00:03:31,300 --> 00:03:34,460 And I thought this was the really guys who did all this stuff. 57 00:03:35,440 --> 00:03:36,040 Okay. 58 00:03:36,800 --> 00:03:37,700 Related research. 59 00:03:39,100 --> 00:03:47,020 There was a similar talk about the same topic that I'm going to talk this evening. 60 00:03:47,560 --> 00:03:48,160 Now. 61 00:03:49,200 --> 00:03:52,740 This is anatomy of a subway hack on DEFCON 16. 62 00:03:54,140 --> 00:03:56,220 It was a special... 63 00:03:56,220 --> 00:03:57,100 My name is Alberto. 64 00:03:58,500 --> 00:03:58,580 I told you. 65 00:03:58,700 --> 00:03:59,420 I'm from Spain. 66 00:03:59,660 --> 00:04:01,580 My accent is not the best. 67 00:04:03,040 --> 00:04:07,960 I'm here to speak about how to hack all the transport network of a country. 68 00:04:08,180 --> 00:04:10,640 How to make black hacking. 69 00:04:10,840 --> 00:04:13,120 How to hack critical infrastructure. 70 00:04:13,700 --> 00:04:14,200 Okay? 71 00:04:14,400 --> 00:04:16,020 So, let's begin. 72 00:04:17,700 --> 00:04:24,820 This is the index of the main topics I'm going to speak about in this speech. 73 00:04:25,200 --> 00:04:25,820 Okay? 74 00:04:25,820 --> 00:04:28,300 First of all, I want to introduce myself. 75 00:04:29,740 --> 00:04:31,780 This is me when I was pretty. 76 00:04:32,160 --> 00:04:33,040 And these things. 77 00:04:33,140 --> 00:04:33,560 Handsome. 78 00:04:33,560 --> 00:04:34,300 Handsome for men. 79 00:04:34,500 --> 00:04:34,820 Okay? 80 00:04:36,360 --> 00:04:38,020 I'm from Valladolid. 81 00:04:38,160 --> 00:04:41,600 Valladolid is a city 200 kilometers on the north of Madrid. 82 00:04:42,020 --> 00:04:45,500 And I'm 24 years old. 83 00:04:45,620 --> 00:04:46,560 I'm single. 84 00:04:46,880 --> 00:04:48,780 If anyone wants to... 85 00:04:48,780 --> 00:04:49,380 Okay? 86 00:04:50,700 --> 00:04:51,340 No. 87 00:04:51,340 --> 00:04:52,980 I'm only like girls. 88 00:04:53,220 --> 00:04:53,600 Sorry. 89 00:04:58,620 --> 00:04:59,220 Okay. 90 00:04:59,740 --> 00:05:02,760 I study math and IT. 91 00:05:02,940 --> 00:05:03,760 System IT. 92 00:05:03,920 --> 00:05:05,500 I don't know how to say in English. 93 00:05:05,700 --> 00:05:06,780 Maybe it's the same, the career. 94 00:05:07,020 --> 00:05:07,880 System IT. 95 00:05:08,320 --> 00:05:09,440 In Salamanca. 96 00:05:09,720 --> 00:05:13,580 Salamanca is another beautiful city in Spain. 97 00:05:14,020 --> 00:05:15,220 It's near Madrid. 98 00:05:15,440 --> 00:05:16,380 Two hours. 99 00:05:17,920 --> 00:05:19,100 This is Salamanca. 100 00:05:21,360 --> 00:05:23,600 And I want to introduce myself. 101 00:05:24,340 --> 00:05:26,340 Telling to you how I learned English. 102 00:05:26,580 --> 00:05:28,440 Because this is very important to me. 103 00:05:29,640 --> 00:05:31,820 I was in a university city. 104 00:05:32,020 --> 00:05:33,680 Salamanca is a university city. 105 00:05:33,960 --> 00:05:37,340 In Salamanca there are a lot of young people. 106 00:05:38,160 --> 00:05:40,060 But not only Spanish people. 107 00:05:40,880 --> 00:05:42,960 There are a lot of parties. 108 00:05:43,220 --> 00:05:45,540 This is the main square in Salamanca. 109 00:05:45,640 --> 00:05:47,100 In the Christmas. 110 00:05:47,500 --> 00:05:48,060 Okay? 111 00:05:48,100 --> 00:05:48,940 All the study... 112 00:05:48,940 --> 00:05:49,680 All the students. 113 00:05:49,900 --> 00:05:51,160 Go to the main square. 114 00:05:51,280 --> 00:05:51,320 Okay? 115 00:05:51,340 --> 00:05:52,940 And drink a little bit. 116 00:05:54,540 --> 00:05:55,100 I... 117 00:05:55,100 --> 00:05:57,520 In these parties I met a lot of 118 00:05:57,520 --> 00:05:58,640 foreign girls. 119 00:05:59,200 --> 00:06:00,100 Foreign people. 120 00:06:01,720 --> 00:06:02,280 From... 121 00:06:02,280 --> 00:06:04,000 So I want to appreciate you. 122 00:06:04,100 --> 00:06:05,540 I appreciate the American girls. 123 00:06:06,320 --> 00:06:08,380 I want to appreciate the Irish girls. 124 00:06:08,680 --> 00:06:10,900 I want to appreciate the Ibiza people 125 00:06:10,900 --> 00:06:12,540 who are going there to learn 126 00:06:13,240 --> 00:06:13,920 English with me. 127 00:06:14,500 --> 00:06:16,980 I want to say thank you 128 00:06:16,980 --> 00:06:17,660 to all of you. 129 00:06:17,720 --> 00:06:18,820 All of your girls. 130 00:06:21,340 --> 00:06:21,880 To improve my English. 131 00:06:22,200 --> 00:06:23,020 Okay, so... 132 00:06:25,640 --> 00:06:27,100 Where did I get this material? 133 00:06:27,400 --> 00:06:28,600 I'm going to talk about 134 00:06:29,380 --> 00:06:30,720 some material that 135 00:06:31,400 --> 00:06:33,540 I'm going to be clear in this. 136 00:06:33,700 --> 00:06:35,040 I want to be clear in this. 137 00:06:35,320 --> 00:06:36,480 I did not do it. 138 00:06:39,820 --> 00:06:40,920 No, it's not a joke. 139 00:06:42,180 --> 00:06:42,620 Really. 140 00:06:43,620 --> 00:06:44,060 Okay? 141 00:06:44,220 --> 00:06:46,980 I just downloaded a torrent that I found around. 142 00:06:47,800 --> 00:06:48,240 Okay? 143 00:06:49,260 --> 00:06:50,720 I don't have the knowledge 144 00:06:51,340 --> 00:06:52,000 to do those things. 145 00:06:53,560 --> 00:06:54,540 I just... 146 00:06:54,540 --> 00:06:56,240 I was looking for porn. 147 00:06:56,380 --> 00:06:57,100 That's all. 148 00:06:59,660 --> 00:07:00,860 Okay, that's all. 149 00:07:02,240 --> 00:07:02,860 Perfect. 150 00:07:04,000 --> 00:07:04,620 Clear. 151 00:07:04,940 --> 00:07:06,320 This thing must to be clear. 152 00:07:07,220 --> 00:07:07,840 Okay. 153 00:07:08,100 --> 00:07:10,440 Who I think that are the 154 00:07:11,460 --> 00:07:13,640 really guys who did it. 155 00:07:13,660 --> 00:07:14,760 Who did this research. 156 00:07:16,300 --> 00:07:17,520 I imagine 157 00:07:17,520 --> 00:07:18,680 that something like that. 158 00:07:20,700 --> 00:07:21,320 And... 159 00:07:21,340 --> 00:07:22,520 Someone like 160 00:07:22,520 --> 00:07:23,400 this guy. 161 00:07:23,600 --> 00:07:25,680 I get some pictures in the torrent 162 00:07:25,680 --> 00:07:27,360 and this picture was around 163 00:07:27,360 --> 00:07:29,360 and I thought this was the really guys 164 00:07:29,360 --> 00:07:30,780 who did all this stuff. 165 00:07:31,800 --> 00:07:32,400 Okay. 166 00:07:33,160 --> 00:07:34,040 Related research. 167 00:07:35,400 --> 00:07:37,540 There was a similar talk 168 00:07:37,540 --> 00:07:39,440 about the same 169 00:07:39,440 --> 00:07:41,840 topic that I'm going to talk 170 00:07:41,840 --> 00:07:43,340 this evening. 171 00:07:43,920 --> 00:07:44,520 Now. 172 00:07:45,560 --> 00:07:47,640 This is anatomy of a subway hack 173 00:07:47,640 --> 00:07:49,100 on DEFCON 16. 174 00:07:51,340 --> 00:07:53,000 This was a special talk 175 00:07:53,000 --> 00:07:54,340 because there was 176 00:07:55,280 --> 00:07:56,480 so many conflicts. 177 00:07:57,300 --> 00:07:59,040 You can see here 178 00:08:00,020 --> 00:08:00,740 I... 179 00:08:00,740 --> 00:08:01,760 Can I read? 180 00:08:02,620 --> 00:08:04,680 Court blocks MIT 181 00:08:05,120 --> 00:08:07,300 students from sewing subway hack. 182 00:08:08,140 --> 00:08:08,860 Dude 183 00:08:08,860 --> 00:08:11,100 to DEFCON speech on subway 184 00:08:11,100 --> 00:08:11,840 car hacking. 185 00:08:12,400 --> 00:08:13,980 So on. Okay? 186 00:08:14,280 --> 00:08:16,620 So this is the related research. 187 00:08:17,080 --> 00:08:18,860 I'm going to speak about something 188 00:08:18,860 --> 00:08:20,520 like that that I found in the torrent. 189 00:08:21,340 --> 00:08:21,760 Okay. 190 00:08:23,240 --> 00:08:23,860 Whoops. 191 00:08:27,070 --> 00:08:27,380 Wait. 192 00:08:28,600 --> 00:08:30,640 First of all, the first target is 193 00:08:30,640 --> 00:08:32,740 a kind of machine 194 00:08:33,190 --> 00:08:34,960 who is in the subway stations. 195 00:08:35,360 --> 00:08:37,120 Okay? It's just an informative machine. 196 00:08:37,560 --> 00:08:38,620 Only to see 197 00:08:38,620 --> 00:08:41,020 the best route 198 00:08:41,020 --> 00:08:42,740 to going from this station 199 00:08:42,740 --> 00:08:43,680 to this other station. 200 00:08:44,060 --> 00:08:45,700 The best route to... 201 00:08:46,500 --> 00:08:48,360 Anyway. The information. 202 00:08:48,560 --> 00:08:50,160 Information stuff. Only information. 203 00:08:52,480 --> 00:08:53,700 This kind of shit. 204 00:08:54,240 --> 00:08:54,380 Okay. 205 00:08:54,580 --> 00:08:56,380 So this machine 206 00:08:57,160 --> 00:08:58,940 I call them 207 00:09:00,140 --> 00:09:00,880 Pinger machines. 208 00:09:01,320 --> 00:09:02,380 They say try me. 209 00:09:02,660 --> 00:09:04,320 This is not a real machine. Okay? 210 00:09:04,460 --> 00:09:06,460 This is just another machine that 211 00:09:06,460 --> 00:09:07,740 say try me. 212 00:09:09,320 --> 00:09:10,940 All of you, did you see a machine 213 00:09:10,940 --> 00:09:11,840 that say try me? 214 00:09:12,880 --> 00:09:14,280 You try, of course. 215 00:09:14,540 --> 00:09:16,140 So the Pinger machine. 216 00:09:18,620 --> 00:09:20,500 There were a lot of informative machines 217 00:09:21,340 --> 00:09:21,580 in the subway station. 218 00:09:21,820 --> 00:09:22,580 Like I told you before. 219 00:09:22,800 --> 00:09:25,760 The machine has informative function 220 00:09:25,760 --> 00:09:28,120 to search the fastest route 221 00:09:28,120 --> 00:09:29,220 or tourist info. 222 00:09:29,420 --> 00:09:29,940 That's all. 223 00:09:30,520 --> 00:09:31,440 That's all. 224 00:09:31,680 --> 00:09:33,720 This is a stupid machine at first. 225 00:09:34,140 --> 00:09:35,180 But then... 226 00:09:36,740 --> 00:09:37,300 Okay. 227 00:09:38,240 --> 00:09:41,140 There are many ways to touch in. 228 00:09:41,200 --> 00:09:42,220 It's a touch screen machine. 229 00:09:43,000 --> 00:09:44,840 You touch the screen 230 00:09:44,840 --> 00:09:46,360 and there are so many ways 231 00:09:46,360 --> 00:09:48,400 to go to get some free 232 00:09:48,400 --> 00:09:50,160 internet time. 233 00:09:50,460 --> 00:09:51,920 To surf on the internet. 234 00:09:52,160 --> 00:09:53,600 To check your Facebook. 235 00:09:53,880 --> 00:09:55,300 To check your emails. 236 00:09:55,660 --> 00:09:56,680 It's very easy. 237 00:09:57,060 --> 00:09:59,940 So you have to 238 00:09:59,940 --> 00:10:01,500 touch this 239 00:10:02,900 --> 00:10:03,500 icon. 240 00:10:03,840 --> 00:10:04,780 Then you have to touch 241 00:10:04,780 --> 00:10:05,980 this hyperbuncle. 242 00:10:06,280 --> 00:10:07,120 Then you have to 243 00:10:08,980 --> 00:10:11,560 touch this thing. 244 00:10:11,840 --> 00:10:13,560 And then you have the Google for you. 245 00:10:13,660 --> 00:10:15,320 This is so easy. 246 00:10:16,360 --> 00:10:17,040 So important here. 247 00:10:18,260 --> 00:10:19,920 And there are some protections 248 00:10:19,920 --> 00:10:22,000 because they try to 249 00:10:22,000 --> 00:10:23,820 download executable 250 00:10:23,820 --> 00:10:24,780 X file. 251 00:10:25,240 --> 00:10:27,740 But there are so many restrictions. 252 00:10:28,300 --> 00:10:29,000 Canine. 253 00:10:29,380 --> 00:10:30,420 This is tough. 254 00:10:31,120 --> 00:10:34,140 But is there anything better than a cell? 255 00:10:35,980 --> 00:10:36,700 Okay. 256 00:10:36,840 --> 00:10:38,540 This machine 257 00:10:40,020 --> 00:10:41,860 has a print option. 258 00:10:42,280 --> 00:10:43,740 Just say 259 00:10:43,740 --> 00:10:44,680 print to a file. 260 00:10:46,360 --> 00:10:47,320 Then you go to 261 00:10:47,320 --> 00:10:48,720 system 32. 262 00:10:49,420 --> 00:10:50,900 And you drag and drop 263 00:10:50,900 --> 00:10:52,460 to the CMD 264 00:10:52,460 --> 00:10:53,520 execution. 265 00:10:54,600 --> 00:10:55,340 That's all. 266 00:10:59,340 --> 00:11:00,020 Trivial. 267 00:11:00,500 --> 00:11:01,180 Okay. 268 00:11:01,300 --> 00:11:03,500 Then when the guys 269 00:11:03,500 --> 00:11:05,300 these pretty guys that I showed you before 270 00:11:06,340 --> 00:11:08,120 has a command cell 271 00:11:08,800 --> 00:11:09,480 CMD. 272 00:11:09,620 --> 00:11:12,140 They connect to the FTP 273 00:11:12,140 --> 00:11:12,960 and download 274 00:11:12,960 --> 00:11:15,160 a server of a rat. 275 00:11:16,420 --> 00:11:16,980 Okay. 276 00:11:17,200 --> 00:11:17,840 That was all. 277 00:11:18,160 --> 00:11:19,380 And here you have 278 00:11:19,380 --> 00:11:20,260 the rat 279 00:11:21,540 --> 00:11:22,560 application tool 280 00:11:22,560 --> 00:11:25,680 to look at the files 281 00:11:25,680 --> 00:11:26,680 and all the stuff. 282 00:11:27,060 --> 00:11:27,620 Perfect. 283 00:11:28,200 --> 00:11:29,700 But I want to be clear. 284 00:11:29,940 --> 00:11:31,220 This is a stupid machine. 285 00:11:31,560 --> 00:11:31,740 Okay. 286 00:11:31,800 --> 00:11:32,340 At first. 287 00:11:32,740 --> 00:11:34,520 It's just for informative function. 288 00:11:36,340 --> 00:11:39,100 The boys who did all this stuff 289 00:11:39,100 --> 00:11:40,540 thought that 290 00:11:40,540 --> 00:11:41,960 it's not important. 291 00:11:42,180 --> 00:11:43,240 There is no juicy files. 292 00:11:43,480 --> 00:11:44,560 There is no juicy application 293 00:11:44,560 --> 00:11:45,960 into these machines. 294 00:11:46,300 --> 00:11:49,020 But looking for juicy files. 295 00:11:49,300 --> 00:11:49,720 Okay. 296 00:11:52,380 --> 00:11:54,380 The machine just see the router. 297 00:11:54,600 --> 00:11:55,580 First of all 298 00:11:55,580 --> 00:11:58,120 the typical network scan 299 00:11:58,120 --> 00:11:59,840 to see if there are a lot of 300 00:11:59,840 --> 00:12:01,860 other hosts 301 00:12:02,860 --> 00:12:03,620 in the same 302 00:12:05,200 --> 00:12:05,800 network. 303 00:12:05,800 --> 00:12:06,980 And this stuff. 304 00:12:07,220 --> 00:12:09,020 But there is only the router. 305 00:12:09,240 --> 00:12:10,420 The router was the only one 306 00:12:10,420 --> 00:12:11,980 who we can see. 307 00:12:12,300 --> 00:12:14,520 But the router has not the default 308 00:12:14,520 --> 00:12:15,480 password. 309 00:12:15,960 --> 00:12:16,900 But it's okay. 310 00:12:18,480 --> 00:12:19,040 But 311 00:12:19,660 --> 00:12:20,220 we 312 00:12:20,220 --> 00:12:21,160 they 313 00:12:22,240 --> 00:12:24,060 look at the application 314 00:12:24,060 --> 00:12:25,100 who was installed 315 00:12:25,780 --> 00:12:27,180 in this machine. 316 00:12:27,440 --> 00:12:28,940 And they found this application. 317 00:12:29,420 --> 00:12:30,220 They said 318 00:12:35,880 --> 00:12:36,640 ping. 319 00:12:37,580 --> 00:12:38,680 Pinger machine. 320 00:12:40,220 --> 00:12:41,620 I don't know what's that. 321 00:12:41,900 --> 00:12:41,920 So 322 00:12:41,920 --> 00:12:44,900 I look around. 323 00:12:45,080 --> 00:12:45,700 They look around. 324 00:12:47,620 --> 00:12:48,780 There was 325 00:12:48,780 --> 00:12:51,280 there was an interesting 326 00:12:51,520 --> 00:12:52,480 application called 327 00:12:52,480 --> 00:12:54,940 There was a config file 328 00:12:54,940 --> 00:12:57,260 with the SQL server connection 329 00:12:57,260 --> 00:12:57,660 string. 330 00:12:59,420 --> 00:13:00,180 Perfect. 331 00:13:00,540 --> 00:13:01,080 The IP 332 00:13:02,680 --> 00:13:05,500 There was a public IP. 333 00:13:05,800 --> 00:13:06,780 Not internal IP. 334 00:13:07,440 --> 00:13:08,120 Perfect. 335 00:13:09,500 --> 00:13:10,180 Okay. 336 00:13:10,760 --> 00:13:12,080 But anyway. 337 00:13:12,460 --> 00:13:15,200 This is a stupid machine 338 00:13:15,200 --> 00:13:16,760 in the middle of the station. 339 00:13:17,860 --> 00:13:19,620 I'm pretty sure that this application 340 00:13:19,620 --> 00:13:20,280 is not 341 00:13:21,600 --> 00:13:22,280 bad. 342 00:13:24,000 --> 00:13:24,420 Okay. 343 00:13:24,720 --> 00:13:26,060 It's harmless. 344 00:13:26,240 --> 00:13:27,100 A harmless application. 345 00:13:27,680 --> 00:13:28,240 But 346 00:13:30,960 --> 00:13:32,900 how it works is 347 00:13:33,640 --> 00:13:34,780 he makes a ping 348 00:13:35,800 --> 00:13:37,820 to the IP 349 00:13:37,820 --> 00:13:38,480 of the server. 350 00:13:38,780 --> 00:13:39,960 And so on. 351 00:13:40,200 --> 00:13:42,560 And this stuff. 352 00:13:42,780 --> 00:13:44,860 But here you have 353 00:13:45,660 --> 00:13:46,320 all the 354 00:13:47,600 --> 00:13:47,920 tables. 355 00:13:48,440 --> 00:13:49,600 I make a string. 356 00:13:49,860 --> 00:13:51,640 Just strings to get the strings 357 00:13:51,640 --> 00:13:53,520 of the application. 358 00:13:54,040 --> 00:13:55,740 And I get the tables. 359 00:13:55,880 --> 00:13:56,480 The columns. 360 00:13:57,000 --> 00:14:00,020 I get some info about the people 361 00:14:00,020 --> 00:14:01,320 who developed this application. 362 00:14:01,900 --> 00:14:04,340 And finally I realized that this application 363 00:14:06,260 --> 00:14:07,320 is used 364 00:14:07,320 --> 00:14:09,380 to control all the stats 365 00:14:09,380 --> 00:14:11,040 of all the country. 366 00:14:11,540 --> 00:14:13,480 Of all the trains of all the country. 367 00:14:13,740 --> 00:14:14,900 Okay. It was the 368 00:14:15,500 --> 00:14:17,460 stats of the 369 00:14:17,460 --> 00:14:19,140 time of arrive, the history 370 00:14:19,700 --> 00:14:20,340 and this shit. 371 00:14:21,060 --> 00:14:23,780 This is a stupid machine. 372 00:14:23,980 --> 00:14:25,180 A machine just to 373 00:14:25,940 --> 00:14:27,800 look the faster road 374 00:14:27,800 --> 00:14:29,240 to go somewhere. 375 00:14:30,500 --> 00:14:31,580 But there is 376 00:14:31,580 --> 00:14:32,940 installed this kind of application. 377 00:14:33,260 --> 00:14:35,220 Why? Why? 378 00:14:35,840 --> 00:14:36,920 Stupid. Really stupid. 379 00:14:37,240 --> 00:14:38,260 I have the connection string. 380 00:14:38,840 --> 00:14:40,180 They have the connection string. 381 00:14:40,400 --> 00:14:42,340 User password and all of this. 382 00:14:42,500 --> 00:14:42,600 Okay? 383 00:14:45,840 --> 00:14:46,620 Whoa, whoa. 384 00:14:47,340 --> 00:14:48,220 Ah. Okay. 385 00:14:49,800 --> 00:14:51,100 I don't see here. 386 00:14:51,280 --> 00:14:53,000 I'm gonna stay here. 387 00:14:53,220 --> 00:14:54,900 Okay. Possible bugs. 388 00:14:55,160 --> 00:14:56,000 Possible bugs. 389 00:14:56,500 --> 00:14:58,680 Some parameters are sent to the application. 390 00:14:59,180 --> 00:15:01,120 One of them called 391 00:15:01,120 --> 00:15:03,260 ID terminal is extracted 392 00:15:03,260 --> 00:15:05,140 from a TXT file. 393 00:15:06,120 --> 00:15:07,040 Okay? 394 00:15:08,480 --> 00:15:09,400 So... 395 00:15:15,000 --> 00:15:15,920 Okay. 396 00:15:22,420 --> 00:15:23,680 Just to remember 397 00:15:23,680 --> 00:15:25,300 this is a SQL server. 398 00:15:25,760 --> 00:15:27,120 If we have the 399 00:15:27,620 --> 00:15:28,440 enough privilege 400 00:15:28,440 --> 00:15:31,080 we are able to 401 00:15:31,500 --> 00:15:33,120 drop database 402 00:15:33,800 --> 00:15:34,620 exec 403 00:15:35,800 --> 00:15:37,080 to the 404 00:15:37,080 --> 00:15:38,580 user and connect 405 00:15:38,580 --> 00:15:39,840 remotely to this system. 406 00:15:40,360 --> 00:15:42,420 Just select all the statics 407 00:15:42,420 --> 00:15:44,540 of the subway or 408 00:15:44,540 --> 00:15:47,200 just to get some info, 409 00:15:47,340 --> 00:15:48,740 some juicy info about the 410 00:15:48,740 --> 00:15:49,480 frequency, status, 411 00:15:49,780 --> 00:15:51,860 all this stuff. Okay? 412 00:15:52,420 --> 00:15:54,680 I have funny story because someday 413 00:15:54,680 --> 00:15:56,200 all these machines disappear. 414 00:15:57,040 --> 00:15:58,320 So these guys 415 00:15:59,440 --> 00:16:00,800 went to 416 00:16:00,800 --> 00:16:02,580 some station 417 00:16:02,580 --> 00:16:04,940 to ask to security man 418 00:16:05,800 --> 00:16:07,620 why this machine was not in his place. 419 00:16:07,700 --> 00:16:09,700 In his place that the machine used to be. 420 00:16:10,540 --> 00:16:11,520 And this guy 421 00:16:11,520 --> 00:16:12,460 said to me... 422 00:16:12,460 --> 00:16:14,800 Okay, okay. Okay. 423 00:16:15,000 --> 00:16:16,920 I want to be clear. If I say me, 424 00:16:17,020 --> 00:16:18,600 it's because it's so personal for me. 425 00:16:18,800 --> 00:16:19,860 I found this story... 426 00:16:26,180 --> 00:16:26,580 Okay. 427 00:16:28,340 --> 00:16:28,740 Yeah. 428 00:16:29,600 --> 00:16:31,520 It's true. My English is the worst. I'm sorry. 429 00:16:31,660 --> 00:16:32,340 I was to say. 430 00:16:34,400 --> 00:16:35,320 Okay. Let's go. 431 00:16:36,000 --> 00:16:37,480 So I go there 432 00:16:37,480 --> 00:16:39,520 and the man told to me 433 00:16:39,520 --> 00:16:41,060 that okay, this machine was removed 434 00:16:41,060 --> 00:16:42,580 like two weeks ago. 435 00:16:42,980 --> 00:16:45,400 But do you know 436 00:16:45,400 --> 00:16:46,380 I am a hacker. 437 00:16:47,440 --> 00:16:48,260 Oh yeah? 438 00:16:48,480 --> 00:16:51,940 Your job is security man. 439 00:16:52,280 --> 00:16:53,560 You don't like like... 440 00:16:53,560 --> 00:16:54,920 You don't look like a hacker. 441 00:16:55,120 --> 00:16:57,360 You don't have this cool hair dress. 442 00:16:58,840 --> 00:16:59,400 And 443 00:16:59,400 --> 00:17:01,380 he says yeah. 444 00:17:01,600 --> 00:17:03,480 I know a way 445 00:17:03,480 --> 00:17:05,740 to go to check my 446 00:17:05,800 --> 00:17:06,060 email. 447 00:17:06,920 --> 00:17:08,600 Your password is mine. 448 00:17:09,000 --> 00:17:09,440 Okay. 449 00:17:12,160 --> 00:17:13,540 More or less 450 00:17:13,540 --> 00:17:14,260 he was this guy. 451 00:17:16,340 --> 00:17:17,020 Okay. 452 00:17:17,820 --> 00:17:18,500 Let's 453 00:17:19,580 --> 00:17:21,060 continue. Getting cheapest subway 454 00:17:21,060 --> 00:17:21,560 tickets. 455 00:17:22,880 --> 00:17:24,600 This is the kind of tickets 456 00:17:24,600 --> 00:17:26,820 used in this city 457 00:17:26,820 --> 00:17:28,840 that I don't want to say the name. 458 00:17:31,540 --> 00:17:33,500 They try to read 459 00:17:33,500 --> 00:17:34,740 a row. 460 00:17:35,800 --> 00:17:35,880 The tickets. 461 00:17:36,220 --> 00:17:38,320 The magnetic strip. 462 00:17:38,580 --> 00:17:39,880 They try to read 463 00:17:39,880 --> 00:17:41,680 it in 464 00:17:42,900 --> 00:17:44,220 this thing. 465 00:17:44,340 --> 00:17:46,280 The credit card reader. 466 00:17:46,760 --> 00:17:46,920 Okay. 467 00:17:47,800 --> 00:17:50,340 But it doesn't work 468 00:17:50,340 --> 00:17:51,560 because if you 469 00:17:51,560 --> 00:17:54,180 strip faster 470 00:17:54,180 --> 00:17:55,840 or not faster 471 00:17:55,840 --> 00:17:57,840 the dump is different. 472 00:17:58,160 --> 00:17:58,740 Okay. 473 00:17:58,940 --> 00:18:00,580 It doesn't work. 474 00:18:00,580 --> 00:18:02,640 This is the sectors and prices. 475 00:18:02,880 --> 00:18:03,780 This is very important. 476 00:18:04,100 --> 00:18:06,400 Okay. In these cities there are a lot of sectors. 477 00:18:06,620 --> 00:18:08,040 You can see A, B1, 478 00:18:08,320 --> 00:18:10,460 B2. You can see it. 479 00:18:11,380 --> 00:18:12,160 Down in the 480 00:18:12,160 --> 00:18:13,360 left and the right. 481 00:18:14,640 --> 00:18:16,580 Okay. If you want to travel 482 00:18:17,640 --> 00:18:18,080 further 483 00:18:18,080 --> 00:18:19,680 you have to pay more. 484 00:18:20,980 --> 00:18:21,800 Typical. Okay. 485 00:18:23,360 --> 00:18:24,120 This is the 486 00:18:24,120 --> 00:18:25,600 those are the prices 487 00:18:25,600 --> 00:18:27,240 to travel. Okay. 488 00:18:27,820 --> 00:18:29,740 If you go to the A zone 489 00:18:30,580 --> 00:18:30,760 you pay like 490 00:18:30,760 --> 00:18:32,380 51 euros 491 00:18:32,380 --> 00:18:33,220 I thought. 492 00:18:34,320 --> 00:18:35,260 51. Yeah. 493 00:18:35,400 --> 00:18:37,500 If you go further 494 00:18:37,500 --> 00:18:39,380 you pay 123. 495 00:18:40,240 --> 00:18:41,360 There is a lot of 496 00:18:41,360 --> 00:18:44,260 prices and sectors. 497 00:18:44,760 --> 00:18:46,180 But you can read 498 00:18:46,180 --> 00:18:47,320 Tercera Edad. 499 00:18:47,640 --> 00:18:49,560 It's like retired people. 500 00:18:49,820 --> 00:18:51,820 Old people. Okay. 501 00:18:51,940 --> 00:18:53,700 The old people. The people who is older than 502 00:18:53,700 --> 00:18:55,000 65 years old. 503 00:18:55,860 --> 00:18:58,860 They just pay 11 euros 504 00:19:01,320 --> 00:19:01,880 Cool. 505 00:19:02,440 --> 00:19:03,180 For them. 506 00:19:05,080 --> 00:19:06,400 This is the monthly pass. 507 00:19:06,620 --> 00:19:08,340 Okay. There are two important 508 00:19:08,340 --> 00:19:09,460 things in this 509 00:19:10,860 --> 00:19:11,420 pass 510 00:19:12,300 --> 00:19:12,860 that 511 00:19:14,360 --> 00:19:14,920 Okay. 512 00:19:15,640 --> 00:19:17,620 This is important thing. This number. 513 00:19:17,960 --> 00:19:20,180 It's not a number. These letters and numbers. 514 00:19:20,440 --> 00:19:22,340 Q. This thing. 515 00:19:22,760 --> 00:19:24,740 And the barcode. 516 00:19:24,980 --> 00:19:25,800 Do you see the barcode? 517 00:19:26,380 --> 00:19:28,520 The barcode and this 518 00:19:29,140 --> 00:19:29,700 pass. 519 00:19:30,580 --> 00:19:32,540 Okay. There are two important things. 520 00:19:35,460 --> 00:19:36,100 Okay. 521 00:19:36,180 --> 00:19:37,900 When I want to 522 00:19:38,580 --> 00:19:40,000 Oh. Another thing. 523 00:19:40,120 --> 00:19:41,020 It's important too. 524 00:19:41,380 --> 00:19:42,660 Do you see B2? 525 00:19:43,520 --> 00:19:45,840 In the middle. In the head of Lisa Simpson. 526 00:19:46,220 --> 00:19:46,860 B2. 527 00:19:47,300 --> 00:19:49,780 It's the sector. Okay. 528 00:19:49,840 --> 00:19:51,900 Three things. The sector. 529 00:19:52,420 --> 00:19:54,020 This number. This 530 00:19:54,360 --> 00:19:55,860 string. And the barcode. 531 00:19:56,100 --> 00:19:56,460 Okay. 532 00:19:57,740 --> 00:19:59,400 The barcode in the pass 533 00:20:00,580 --> 00:20:02,300 is used to renew the monthly ticket. 534 00:20:02,580 --> 00:20:04,160 Okay. So I have the barcode. 535 00:20:04,340 --> 00:20:06,380 I introduce the barcode into the machines. 536 00:20:06,700 --> 00:20:08,180 And then I pay 537 00:20:08,180 --> 00:20:10,380 and I get the new ticket of this month. 538 00:20:10,580 --> 00:20:10,960 Okay. 539 00:20:11,560 --> 00:20:14,440 The barcode has this format. 540 00:20:15,820 --> 00:20:17,080 But they realize 541 00:20:17,820 --> 00:20:19,840 that the barcode is 542 00:20:19,840 --> 00:20:21,900 a character and the pass number. 543 00:20:22,120 --> 00:20:24,080 I showed you before. Okay. 544 00:20:24,200 --> 00:20:25,320 This is the barcode. 545 00:20:26,320 --> 00:20:27,940 So if we change 546 00:20:27,940 --> 00:20:30,360 this character, we can get 547 00:20:30,580 --> 00:20:32,180 the older 548 00:20:32,180 --> 00:20:32,820 older 549 00:20:32,820 --> 00:20:35,360 older people 550 00:20:36,440 --> 00:20:38,480 ticket. So it's so cheap. 551 00:20:38,620 --> 00:20:39,760 We can travel 552 00:20:39,760 --> 00:20:42,120 with the older people ticket. 553 00:20:42,480 --> 00:20:44,600 And we can generate in the machines 554 00:20:44,600 --> 00:20:46,420 is not to clone. This is not. 555 00:20:46,960 --> 00:20:47,860 They are 556 00:20:47,860 --> 00:20:49,420 they was paying for the 557 00:20:49,420 --> 00:20:52,080 tickets. Okay. But 558 00:20:52,080 --> 00:20:53,480 they has not 559 00:20:53,480 --> 00:20:55,340 65 years old. 560 00:20:56,240 --> 00:20:57,380 So everybody knows 561 00:20:57,380 --> 00:20:58,860 that will do fast 562 00:21:00,580 --> 00:21:01,180 in tool. 563 00:21:02,280 --> 00:21:03,720 Contest application tool. 564 00:21:05,460 --> 00:21:06,600 The bar 565 00:21:06,600 --> 00:21:07,820 intruder or 566 00:21:08,360 --> 00:21:09,020 I don't know. 567 00:21:09,120 --> 00:21:12,380 To make fast in things. 568 00:21:12,700 --> 00:21:14,160 But the new fast in techniques 569 00:21:14,160 --> 00:21:15,960 for them was 570 00:21:15,960 --> 00:21:18,080 was a guy 571 00:21:18,080 --> 00:21:20,480 with barcode trying every barcode 572 00:21:20,480 --> 00:21:21,920 in the machines to get was the 573 00:21:21,920 --> 00:21:24,240 real character that he has to use to get 574 00:21:24,240 --> 00:21:25,660 the older ticket. 575 00:21:26,440 --> 00:21:27,540 Okay. So finally 576 00:21:29,260 --> 00:21:30,020 a 577 00:21:30,580 --> 00:21:32,040 lot of barcodes. 578 00:21:32,660 --> 00:21:34,380 Introducing the barcodes in the machines. 579 00:21:35,340 --> 00:21:35,920 Okay. 580 00:21:36,440 --> 00:21:37,020 Finally 581 00:21:39,280 --> 00:21:40,440 we got 582 00:21:40,440 --> 00:21:41,840 this ticket. This is a 583 00:21:42,470 --> 00:21:44,360 65 years old ticket that 584 00:21:44,360 --> 00:21:46,300 they generate in the machines. 585 00:21:46,640 --> 00:21:47,180 Okay. 586 00:21:47,280 --> 00:21:49,800 They can generate any 587 00:21:50,660 --> 00:21:52,060 number. This is the pass. 588 00:21:52,620 --> 00:21:53,840 It's hacker. Oh. 589 00:21:54,420 --> 00:21:56,560 Nice. I did not 590 00:21:56,560 --> 00:21:57,760 realize until now. 591 00:22:00,580 --> 00:22:02,520 Okay. So thank you. 592 00:22:02,600 --> 00:22:03,940 They can travel 593 00:22:03,940 --> 00:22:06,460 in all the sectors 594 00:22:06,460 --> 00:22:08,000 only paying the 595 00:22:08,580 --> 00:22:10,160 11 euros. 596 00:22:10,420 --> 00:22:12,320 Okay. So nice. 597 00:22:14,540 --> 00:22:15,300 Okay. 598 00:22:16,340 --> 00:22:17,100 Casualties. 599 00:22:18,320 --> 00:22:19,840 The ticket is yellow. 600 00:22:19,960 --> 00:22:22,220 Yellow ticket. The usual 601 00:22:22,220 --> 00:22:24,480 ticket is orange or 602 00:22:24,480 --> 00:22:25,540 white. 603 00:22:26,440 --> 00:22:27,380 So if 604 00:22:28,240 --> 00:22:30,400 someone of the staff look 605 00:22:30,580 --> 00:22:32,260 at you when you are introducing 606 00:22:32,260 --> 00:22:34,280 the ticket in the machine to 607 00:22:34,280 --> 00:22:35,100 enter in the subway, 608 00:22:36,140 --> 00:22:38,500 this ticket works with the subway, 609 00:22:38,800 --> 00:22:39,660 with the buses, 610 00:22:40,040 --> 00:22:41,440 with the local trains, 611 00:22:41,860 --> 00:22:43,600 with all this stuff. So 612 00:22:43,600 --> 00:22:45,760 if someone of the staff 613 00:22:46,470 --> 00:22:47,740 is looking at you when you are 614 00:22:48,530 --> 00:22:50,100 introducing your ticket in the machine 615 00:22:50,100 --> 00:22:51,800 to go to the subway, 616 00:22:52,780 --> 00:22:54,020 they say 617 00:22:54,290 --> 00:22:54,600 no. 618 00:22:56,340 --> 00:22:57,240 Come here. 619 00:22:57,600 --> 00:23:00,200 So our friends 620 00:23:00,580 --> 00:23:00,960 as I told you before 621 00:23:00,960 --> 00:23:02,640 had some casualties. 622 00:23:03,480 --> 00:23:05,620 93 euros because 623 00:23:05,620 --> 00:23:06,600 this guy 624 00:23:06,600 --> 00:23:09,800 look at him when he was introducing the tickets. 625 00:23:10,370 --> 00:23:12,020 So but our friends 626 00:23:12,580 --> 00:23:13,900 that were so 627 00:23:14,290 --> 00:23:15,000 so smart 628 00:23:16,100 --> 00:23:17,560 make some improvements 629 00:23:17,560 --> 00:23:18,680 in the tickets. 630 00:23:20,840 --> 00:23:22,080 Okay. They just 631 00:23:22,080 --> 00:23:22,980 put the 632 00:23:22,980 --> 00:23:25,140 magnetic strip 633 00:23:25,140 --> 00:23:26,100 strip 634 00:23:26,100 --> 00:23:28,760 the magnetic strip 635 00:23:30,580 --> 00:23:31,140 paste it 636 00:23:31,140 --> 00:23:32,540 in a usual 637 00:23:32,540 --> 00:23:34,760 in a usual ticket. 638 00:23:35,000 --> 00:23:37,100 So finally 639 00:23:52,420 --> 00:23:53,100 RFID. 640 00:23:53,380 --> 00:23:54,400 Next target. 641 00:23:55,400 --> 00:23:57,920 Okay. There is a new RFID system 642 00:23:57,920 --> 00:23:59,400 in the subway. It works with a 643 00:23:59,400 --> 00:24:00,160 zone only. 644 00:24:01,900 --> 00:24:03,500 A sector. Okay. 645 00:24:03,580 --> 00:24:05,280 In the middle of the town only. 646 00:24:05,680 --> 00:24:07,940 Okay. But RFID 647 00:24:07,940 --> 00:24:08,880 is used by the staff. 648 00:24:10,040 --> 00:24:10,520 Aha. 649 00:24:11,780 --> 00:24:13,300 Okay. The staff holds 650 00:24:13,300 --> 00:24:15,560 his RFID in the neck. 651 00:24:15,900 --> 00:24:16,940 Like you with the 652 00:24:16,940 --> 00:24:17,880 badge. 653 00:24:19,820 --> 00:24:21,080 So it's easy 654 00:24:21,080 --> 00:24:23,440 to get close to them to ask a question. 655 00:24:30,580 --> 00:24:31,800 They are so kind. 656 00:24:32,100 --> 00:24:32,920 They are so kind. 657 00:24:33,140 --> 00:24:35,520 Yep. So if we mix 658 00:24:35,520 --> 00:24:37,720 an ultrabook or any other 659 00:24:37,720 --> 00:24:39,580 computer and a touch tag 660 00:24:39,580 --> 00:24:41,880 this is a reader of RFID 661 00:24:41,880 --> 00:24:43,300 tags. Just a reader. 662 00:24:44,200 --> 00:24:45,640 And you're going for a visit. 663 00:24:48,080 --> 00:24:48,880 This is a 664 00:24:48,880 --> 00:24:51,800 I think. I don't know because 665 00:24:51,800 --> 00:24:53,500 I'm not the guy. But I think 666 00:24:53,500 --> 00:24:55,880 that this is a cigarette box. 667 00:24:56,720 --> 00:24:57,540 And you can 668 00:24:58,160 --> 00:24:59,020 put the 669 00:24:59,600 --> 00:25:01,640 touch tag inside the cigarette box 670 00:25:01,640 --> 00:25:03,860 and going with the cigarette box asking for a question. 671 00:25:04,120 --> 00:25:05,660 Oh, sorry. Where is the 672 00:25:05,660 --> 00:25:06,660 faster way to go? 673 00:25:07,180 --> 00:25:07,660 Okay. 674 00:25:11,360 --> 00:25:13,220 And then you have the 675 00:25:13,220 --> 00:25:15,360 dump of the RFID and you just 676 00:25:16,600 --> 00:25:17,720 RFID hacking. Okay. 677 00:25:18,140 --> 00:25:19,840 To process information. To get 678 00:25:19,840 --> 00:25:21,540 the password of it. 679 00:25:22,740 --> 00:25:23,780 Okay. To get the 680 00:25:23,780 --> 00:25:25,120 password and clone it. 681 00:25:25,400 --> 00:25:27,180 And finally you have a 682 00:25:27,920 --> 00:25:29,820 RFID keychain. 683 00:25:30,120 --> 00:25:31,140 And you can access 684 00:25:31,140 --> 00:25:33,660 to all the sectors with this shit. 685 00:25:33,880 --> 00:25:34,100 Okay. 686 00:25:35,500 --> 00:25:37,660 I love the word shit in English. 687 00:25:37,760 --> 00:25:38,200 So shit. 688 00:25:39,960 --> 00:25:41,600 Okay. Thank you. 689 00:25:43,780 --> 00:25:44,740 Security cameras. 690 00:25:46,000 --> 00:25:46,860 Next target. 691 00:25:47,780 --> 00:25:48,940 There is a big camera 692 00:25:48,940 --> 00:25:50,960 in all the transport network. Okay. 693 00:25:51,020 --> 00:25:53,120 All the transport network is recorded 694 00:25:53,120 --> 00:25:55,480 all the time. There are several 695 00:25:55,480 --> 00:25:57,100 control centers like this. 696 00:25:57,920 --> 00:25:59,540 You can see that was the operating 697 00:25:59,540 --> 00:26:01,800 system used by the staff. 698 00:26:02,260 --> 00:26:02,980 Okay. 699 00:26:03,140 --> 00:26:03,780 XP. 700 00:26:04,360 --> 00:26:07,380 And there is a wireless network. 701 00:26:07,740 --> 00:26:08,640 There is wireless network. 702 00:26:09,060 --> 00:26:11,380 So many APs in all the transport network. 703 00:26:15,440 --> 00:26:16,160 Okay. 704 00:26:19,800 --> 00:26:21,240 What? Nice. 705 00:26:23,640 --> 00:26:24,760 But. But. 706 00:26:25,660 --> 00:26:26,020 Wait. 707 00:26:27,920 --> 00:26:29,100 SSID are hidden. 708 00:26:29,880 --> 00:26:30,680 . 709 00:26:31,500 --> 00:26:32,300 . 710 00:26:34,640 --> 00:26:35,440 Okay. 711 00:26:35,580 --> 00:26:36,300 Let's go. 712 00:26:38,940 --> 00:26:39,740 Okay. 713 00:26:40,700 --> 00:26:41,940 There are a lot of 714 00:26:41,940 --> 00:26:42,840 antennas. So many. 715 00:26:42,940 --> 00:26:44,360 So many antennas. 716 00:26:45,420 --> 00:26:46,220 Omnidirectional. 717 00:26:46,680 --> 00:26:47,220 Okay. 718 00:26:47,680 --> 00:26:51,300 And there are APs that are 719 00:26:51,300 --> 00:26:52,800 accessible from everywhere. 720 00:26:54,940 --> 00:26:55,740 Why? 721 00:26:56,480 --> 00:26:57,280 . 722 00:26:59,100 --> 00:26:59,740 . 723 00:27:03,680 --> 00:27:05,180 Man in the middle. 724 00:27:06,540 --> 00:27:07,540 So easy. 725 00:27:07,940 --> 00:27:09,820 Okay. But our guys 726 00:27:09,820 --> 00:27:11,160 was nice guys. 727 00:27:11,420 --> 00:27:13,220 The guys I saw you before. 728 00:27:13,380 --> 00:27:14,780 So they did not 729 00:27:14,780 --> 00:27:17,740 do anything with these things. 730 00:27:18,920 --> 00:27:19,900 They used 731 00:27:19,900 --> 00:27:20,900 another AP. 732 00:27:21,920 --> 00:27:22,560 . 733 00:27:25,220 --> 00:27:25,860 . 734 00:27:28,320 --> 00:27:29,280 . 735 00:27:29,780 --> 00:27:30,260 . 736 00:27:37,420 --> 00:27:38,380 . 737 00:27:38,660 --> 00:27:39,240 What's inside? 738 00:27:39,800 --> 00:27:41,580 There was not 739 00:27:41,580 --> 00:27:43,180 DHCP. 740 00:27:43,720 --> 00:27:44,680 But, 741 00:27:45,160 --> 00:27:47,440 Wireshark is our friend. 742 00:27:47,880 --> 00:27:49,100 ARP 2. 743 00:27:49,320 --> 00:27:49,960 Of course. 744 00:27:50,580 --> 00:27:55,060 So the guys just had to wait 745 00:27:55,860 --> 00:28:04,700 an ARP packet to know what's the range of the IPs to manually put themselves this IP, this 746 00:28:04,700 --> 00:28:18,360 subway, this, yeah. Okay. First of all, ARP scan. They found three hosts. There was our friend, 747 00:28:18,500 --> 00:28:25,840 our AP friend. The router and some other host. Port scanner of the host. Typical IP 748 00:28:25,860 --> 00:28:34,360 network pen testing. Typical. I'm not a magician. They was not a magician. So, a router. The 749 00:28:34,360 --> 00:28:46,360 router was, I don't know, do you see the ports open? Yeah? No? Okay. Wait. 21, 23, 80, and 750 00:28:47,800 --> 00:28:55,220 1998. Nice. Okay. This is the router. But this is the other host. This is my favorite. 751 00:28:59,080 --> 00:29:14,000 23 and 443. Oh, nice. And 50,000. Strange. Okay. They saw 443, this is HTTPS, so they accessed to 752 00:29:14,000 --> 00:29:25,420 this host by throw through HTTPS. And that's what they found. Oh. Invalid certificate. Okay. 753 00:29:25,860 --> 00:29:35,600 sign certificate. This is the way. SPC, SPC. What's that? Okay. 754 00:29:35,780 --> 00:29:46,000 I'm continuous. And I arrive here. SPC 5300. I have no idea. 755 00:29:46,240 --> 00:29:53,840 They have no idea what was that. I don't have idea. I just look 756 00:29:53,840 --> 00:29:57,060 at the torrent and I find this information. Wait, wait, wait. 757 00:29:57,260 --> 00:30:02,680 And I found about this hardware. Because it's a hardware. Okay? 758 00:30:02,780 --> 00:30:09,800 And I look what it is used for. And there is a web server. This 759 00:30:09,800 --> 00:30:15,440 is the web server. The slide before. And you can see. This is 760 00:30:16,300 --> 00:30:22,080 okay. You can control through Internet, GMS, wireless detectors, 761 00:30:22,560 --> 00:30:23,400 wireless detectors. 762 00:30:23,840 --> 00:30:28,980 Fire warnings. IP cameras. Audio gate pass. Door control. 763 00:30:43,520 --> 00:30:48,140 So, like in append testing. I have no knowledge to do that. 764 00:30:48,280 --> 00:30:51,760 But some friend told me that append testing is doing like 765 00:30:51,760 --> 00:30:51,960 this. 766 00:30:52,880 --> 00:30:53,780 Man in the middle. 767 00:30:53,840 --> 00:30:58,980 And invalid certificate was used. So, it's too easy to use 768 00:30:58,980 --> 00:31:05,660 our signature certificate in the middle of the client. And we have 769 00:31:05,660 --> 00:31:10,420 the credentials in clear. And this is cool. Because there is 770 00:31:10,420 --> 00:31:15,660 an invalid certificate. So, the admin is used to accept the 771 00:31:15,660 --> 00:31:19,860 invalid certificate. Who looks at the fingerprint of the 772 00:31:20,650 --> 00:31:23,820 certificate? Okay. I know you are so great. So, I'm going to 773 00:31:23,820 --> 00:31:27,600 show you how to do it. And maybe you are. Do it. Do it. But we 774 00:31:27,600 --> 00:31:37,060 can go deeper. More funny. Do you remember the port 5000? No. 775 00:31:37,140 --> 00:31:43,940 50,000? You remember in the port scan? Okay. There is an IP 776 00:31:44,660 --> 00:31:51,800 from another net mask. Net mask. Okay. So, we can take our range 777 00:31:51,800 --> 00:31:57,700 and we can start another append testing on this network. This 778 00:31:58,460 --> 00:32:12,080 network. Okay. But there is oh, wait. There is other IP who is 779 00:32:12,080 --> 00:32:19,280 sending the same. The same UDP. The same length. And all the same 780 00:32:19,280 --> 00:32:21,780 by other IP. I don't know. I don't know. I don't know. I don't 781 00:32:21,780 --> 00:32:25,660 know. Maybe my friends know. But they didn't write nothing in 782 00:32:25,660 --> 00:32:29,540 the in the in the torrent. So, I don't know. But we can go 783 00:32:29,540 --> 00:32:32,960 deeper. Because we can use an invalid certificate, send it by 784 00:32:32,960 --> 00:32:39,640 us and so on. And finally, our last last target. Train 785 00:32:39,640 --> 00:32:45,620 machines. Used to print tickets from a paid trip. Change tickets. 786 00:32:45,760 --> 00:32:50,400 Upgrade ticket. Cancel tickets. Buy tickets with credit cards. 787 00:32:51,860 --> 00:32:56,640 Nice. There was an update. Recently there was an update. 788 00:32:58,300 --> 00:33:02,340 Before that, anyone was able to get a login panel. Okay. I want 789 00:33:02,340 --> 00:33:10,060 to clearize this. The machines were touch. Touch screen machines. 790 00:33:10,540 --> 00:33:18,840 Like our first friend. Okay? Touch screen machines. So, there was a 791 00:33:18,840 --> 00:33:21,760 place in the screen. To print, print. And after that, you have this 792 00:33:21,760 --> 00:33:30,920 press in this zone and you get a login panel. Four digits. Four numbers only to get into 793 00:33:30,920 --> 00:33:38,200 the admin panel. Social engineering, do you know about that? So, we say, oh, what happened 794 00:33:38,200 --> 00:33:44,160 with my ticket? I don't know. I introduced my credit card and it's into the machine. 795 00:33:44,420 --> 00:33:51,740 What happened? Wait, wait, wait. Four numbers. Okay. But not number one. Number two. Number 796 00:33:51,760 --> 00:34:00,300 three. Now, just a couple weeks ago, this function disappeared. But we can get full 797 00:34:00,300 --> 00:34:07,840 access of all of these machines. These machines are present in all the country. All the stations 798 00:34:07,840 --> 00:34:18,760 of all the country. Okay? I have a video. Here. This is the way to access to the CMD. 799 00:34:19,860 --> 00:34:20,740 In a video. 800 00:34:25,280 --> 00:34:39,200 Going. One going. Select the destiny. Next. Change the date of the travel. And what's 801 00:34:39,200 --> 00:34:50,720 that? Internet Explorer. Thanks, Microsoft. Okay. And I'm going to show you how to do 802 00:34:50,740 --> 00:34:57,840 this. And do you know here? Do you know this staff who is here, these things? Okay. 803 00:35:05,460 --> 00:35:17,300 Look. Okay. Complements administration. Internet Explorer function. That's all. Complements 804 00:35:17,300 --> 00:35:20,720 administration. Internet Explorer has this option. You can call it what you want. Then, 805 00:35:20,740 --> 00:35:26,560 And click here, down, okay, it's a little geek, here, okay. 806 00:35:26,760 --> 00:35:36,580 But to get this Windows, and then you push, you press a lot of time, there. 807 00:35:36,580 --> 00:35:42,400 And there, there, there, there, there, and not responding. 808 00:35:51,760 --> 00:35:55,660 So thank you Microsoft, not responding. 809 00:35:56,040 --> 00:35:56,660 Close. 810 00:35:56,920 --> 00:35:57,200 Oh. 811 00:35:58,100 --> 00:35:59,020 . 812 00:36:03,680 --> 00:36:04,600 Okay. 813 00:36:19,260 --> 00:36:29,540 But, it's a touch screen, they fail sometimes, okay, but, finally, okay. 814 00:36:33,860 --> 00:36:35,760 Do you know, this is small. 815 00:36:35,960 --> 00:36:36,200 . 816 00:36:36,200 --> 00:36:36,560 . 817 00:36:36,580 --> 00:36:41,520 The keyboard on the screen is small. 818 00:36:41,880 --> 00:36:44,120 And this is a touch screen, this is a shit. 819 00:36:44,760 --> 00:36:45,160 . 820 00:36:46,040 --> 00:36:46,560 Okay. 821 00:36:46,720 --> 00:36:51,760 You want to press A, and you press S. You want to press W, and you press M. 822 00:36:52,880 --> 00:36:53,400 . 823 00:36:54,760 --> 00:36:55,280 . 824 00:36:55,420 --> 00:36:57,500 But we have our cell, our CMD. 825 00:36:59,840 --> 00:37:00,880 GZ applications. 826 00:37:02,100 --> 00:37:02,860 We are there. 827 00:37:03,700 --> 00:37:06,060 There's an internal application who has several functions. 828 00:37:07,200 --> 00:37:14,220 Accept any serious card to know the alarm temperature you can control the machine. 829 00:37:14,860 --> 00:37:15,440 . 830 00:37:16,840 --> 00:37:17,420 Good. 831 00:37:18,770 --> 00:37:20,140 You can open the door. 832 00:37:21,380 --> 00:37:24,200 So, so many stuff so many parameters with the machine. 833 00:37:24,380 --> 00:37:25,900 This is the application. 834 00:37:27,360 --> 00:37:27,940 Okay. 835 00:37:28,880 --> 00:37:32,180 There are so many, so many options. 836 00:37:32,640 --> 00:37:34,820 You can do a lot of things with the machines. 837 00:37:35,460 --> 00:37:36,040 . 838 00:37:36,040 --> 00:37:44,020 Remote control, all the time they were in front of the machine with the security cameras here, 839 00:37:44,640 --> 00:37:54,500 with the security hacking boys around there, okay? So, this is important. So, the guys that 840 00:37:55,300 --> 00:38:03,020 did all of it want remote control, like every one of you. So, there is an application for the 841 00:38:03,020 --> 00:38:07,700 remote control, but it can be only used if you are in the internal network. So, this is not useful. 842 00:38:08,500 --> 00:38:13,620 So, they want to remote control the machine, of course. They tried to install a Trojan, 843 00:38:13,900 --> 00:38:22,420 downloading the server of the Trojan by through HTTP or HTTPS, but all the records were forbidden. 844 00:38:22,800 --> 00:38:32,280 Only internal webpages were allowed. Tried to use FTP, it didn't work. Oh, shit. Losing hope. 845 00:38:33,020 --> 00:38:41,240 The machine resolves DNS request. Nice. So, they thought UDP traffic was allowed. 846 00:38:41,860 --> 00:38:53,720 Okay? Easy. They tried using FTP through UDP. TFTP. Okay? Do you know old-fashioned TFTP? 847 00:38:56,120 --> 00:39:02,400 Okay. TFTP is installed in all Windows versions. The machines run XP professional. 848 00:39:03,020 --> 00:39:13,720 So, there was TFTP client was installed in this machine. So, perfect. But timeout. It didn't work. 849 00:39:14,560 --> 00:39:26,940 But they still thought UDP traffic were allowed, but only using 53 port DNS. So, TFT used 69 850 00:39:26,940 --> 00:39:31,400 by default. So, they changed the TFTP 851 00:39:33,020 --> 00:39:35,560 control settings to change the TFTP destination 852 00:39:36,580 --> 00:39:42,020 port to the 53. And then in his house, they make an Sorry. 853 00:39:42,780 --> 00:39:59,320 oil. But finally, they realized that this is the network map. The machines, router, DNS, 854 00:40:00,300 --> 00:40:03,000 firewall and the server, and little kin 855 00:40:03,020 --> 00:40:12,640 internet. Okay. All the traffic sent from router to internet is dropped. It's not allowed. 856 00:40:13,180 --> 00:40:20,700 But the DNS has a rule in the firewall that allow all the traffic. Only if the traffic 857 00:40:21,860 --> 00:40:30,640 come from this DNS. If you make an NS lookup directly to Google, it doesn't work. You have 858 00:40:30,640 --> 00:40:36,900 to use this DNS. And use the implementation of the DNS protocol. Okay? If I have no information, 859 00:40:37,260 --> 00:40:52,660 I ask to another DNS and these things. So, this is the saying I told you. So, to remotely 860 00:40:52,660 --> 00:41:00,080 control the machine, they have to use a RAT, remote application tool, through DNS. And 861 00:41:00,640 --> 00:41:08,100 now, right? There is an interesting project called DNScat who makes something like that. 862 00:41:08,880 --> 00:41:19,620 But our friends were a bunch of geeks. You know. This friend. I think it's maybe more 863 00:41:19,620 --> 00:41:28,740 than the first one. The real guy. I think so. So, these guys developed modular RAT using 864 00:41:28,740 --> 00:41:30,020 Python. Yeah. 865 00:41:30,020 --> 00:41:36,580 Python. It's heavy. Because you have to use to convert. To load all the libraries. 866 00:41:36,900 --> 00:41:43,360 It's heavy. But it's so easy to develop. It's too easy. Okay? The RAT server, okay, the 867 00:41:43,360 --> 00:41:51,620 server who was in the machine, in the machine, just asked to DNS server for A register. Okay? 868 00:41:51,920 --> 00:41:59,140 The DNS response. And if some of the response has some pattern, the infected system did 869 00:41:59,140 --> 00:42:11,160 did some action, okay? If you resolve my domain, it's one, two, three, 52. The DNS tool take 870 00:42:11,160 --> 00:42:22,020 the 52 and say, oh, 52 is there. Directory listing, maybe. Or is, whatever. It did not 871 00:42:22,020 --> 00:42:31,820 establish a connection. Okay? Nice. Finally, the executable file was downloaded using TXT records 872 00:42:31,820 --> 00:42:38,920 of a controlled DNS server. Okay? We have to install the server. The server of this Python tool. 873 00:42:40,740 --> 00:42:50,140 So, perfect. They use that to make the DNS request. The machine was remotely under their control. 874 00:42:52,200 --> 00:43:02,740 Perfect. Pivoting. The operating system using the machine was XP service pack two. Somebody 875 00:43:02,740 --> 00:43:22,000 knows NetApi. This is the final slide. Once the machine and all the other NetApi machines was under a control, the system 876 00:43:22,000 --> 00:43:25,480 So, it's time to look for UEC application and files. 877 00:43:26,460 --> 00:43:32,580 All the machines stored without encryption, the CC dumps of the clients. 878 00:43:32,900 --> 00:43:35,000 The credit card of all the clients. 879 00:43:35,420 --> 00:43:38,280 It's not necessary to make a hooking of the application. 880 00:43:38,740 --> 00:43:39,700 It's not necessary. 881 00:43:40,580 --> 00:43:41,780 Is there? 882 00:43:42,260 --> 00:43:51,560 It means that the bad guys, if those guys I told you before, if they were bad guys, 883 00:43:51,560 --> 00:43:57,360 bad guys, they are able to get all the CC dumps of all the customers of the entire transport 884 00:43:57,360 --> 00:43:58,260 network of the country. 885 00:43:58,420 --> 00:43:59,580 Of all the country. 886 00:44:00,100 --> 00:44:00,660 Okay? 887 00:44:00,800 --> 00:44:04,360 So, epic fail. 888 00:44:06,360 --> 00:44:08,220 Okay, that's all. 889 00:44:09,720 --> 00:44:11,940 I want to thank you for listening here today. 890 00:44:24,540 --> 00:44:31,820 I want to, wait, I want to appreciate the real guys that did all I have told you. 891 00:44:32,300 --> 00:44:37,360 To all of you for listening to me today, of course, this is, I'm so proud to be here, 892 00:44:37,400 --> 00:44:38,460 to be with you. 893 00:44:39,120 --> 00:44:42,780 To my family and friends, this is, yeah, I appreciate that. 894 00:44:42,980 --> 00:44:47,000 All those who want to understand how and why things work. 895 00:44:47,560 --> 00:44:48,040 Okay? 896 00:44:48,140 --> 00:44:49,040 Continues in this way. 897 00:44:49,540 --> 00:44:50,180 Thank you. 898 00:44:50,260 --> 00:44:50,940 Thank you. 899 00:44:50,940 --> 00:44:51,140 Thank you all. 900 00:44:56,600 --> 00:44:59,300 Have a good day. 901 00:44:59,300 --> 00:45:00,380 Bye-bye. 902 00:45:00,460 --> 00:45:00,780 Thank you. 903 00:45:00,780 --> 00:45:10,800 We are going to be doing Q&A in Q&A room one if you want to follow us. 904 00:45:12,160 --> 00:45:15,060 And, yeah, that's it for this room. 905 00:45:17,560 --> 00:45:18,220 Talk? 906 00:45:18,540 --> 00:45:19,960 Because there was... 907 00:45:19,960 --> 00:45:20,360 Yeah. 908 00:45:20,940 --> 00:45:21,800 So many conflicts. 909 00:45:22,680 --> 00:45:27,080 You can see here, can I read? 910 00:45:28,340 --> 00:45:32,680 Court blocks MIT students from sewing subway hack. 911 00:45:33,840 --> 00:45:37,220 Dude orders help to DEFCON speech on subway car hacking. 912 00:45:38,120 --> 00:45:39,320 So on, OK? 913 00:45:39,900 --> 00:45:41,960 So this is the related research. 914 00:45:42,440 --> 00:45:44,800 I'm going to speak about something like that 915 00:45:44,800 --> 00:45:45,900 that I found in the torrent. 916 00:45:46,720 --> 00:45:47,080 OK. 917 00:45:48,460 --> 00:45:49,020 Oops. 918 00:45:52,180 --> 00:45:52,740 Wait. 919 00:45:54,080 --> 00:45:58,120 First of all, the first target is a kind of machine 920 00:45:58,580 --> 00:46:00,940 who is in the subway stations, OK? 921 00:46:01,080 --> 00:46:02,480 It's just an informative machine, 922 00:46:03,260 --> 00:46:08,100 only to see the best route to going from this station 923 00:46:08,100 --> 00:46:12,620 to this other station, the best route to any way. 924 00:46:12,800 --> 00:46:14,620 The information, information stuff, 925 00:46:14,820 --> 00:46:16,980 all information that politics, information 926 00:46:16,980 --> 00:46:19,060 is kind of shit. 927 00:46:19,280 --> 00:46:19,720 OK. 928 00:46:20,020 --> 00:46:26,280 So this machine, I call them Bingham machines, 929 00:46:26,760 --> 00:46:27,740 they say, try me. 930 00:46:28,100 --> 00:46:29,680 This is not the real machine, OK? 931 00:46:29,820 --> 00:46:33,120 This is just another machine that say try me. 932 00:46:34,760 --> 00:46:37,220 All of you, do you see a machine that say, try me? 933 00:46:38,340 --> 00:46:39,660 You try, of course. 934 00:46:39,920 --> 00:46:41,500 So the Bingham machine. 935 00:46:43,820 --> 00:46:45,860 But there were a lot of information machines 936 00:46:45,860 --> 00:46:46,900 in the subway station. 937 00:46:46,900 --> 00:46:49,400 Like I told you before. Okay, the machine has 938 00:46:50,040 --> 00:46:55,280 Informative function to search the fastest route or tourist info. That's all 939 00:46:55,940 --> 00:46:59,100 That's all this is a stupid machine at first 940 00:46:59,620 --> 00:47:00,320 but then 941 00:47:02,100 --> 00:47:02,660 Okay 942 00:47:03,300 --> 00:47:07,560 There are many many ways to touch in. It's a touch screen machine 943 00:47:07,560 --> 00:47:13,780 Okay, you touch the screen and there are so many ways to go to get some free 944 00:47:13,780 --> 00:47:20,680 Internet time to surf on the internet to check your Facebook to check your emails 945 00:47:20,680 --> 00:47:22,440 It's very easy. This is 946 00:47:23,060 --> 00:47:26,860 So you have to touch this 947 00:47:27,500 --> 00:47:32,440 This this icon then you have to do that in this hyperbuncle then you have to 948 00:47:33,130 --> 00:47:35,500 check to touch this 949 00:47:36,140 --> 00:47:42,420 This thing and then you have the Google for you. Okay, this is so easy. This is not important here 950 00:47:43,780 --> 00:47:47,700 And there are some protection because I they try to download 951 00:47:48,400 --> 00:47:55,780 Executable X file. Okay, but there are so many restriction canine. Okay, this stuff 952 00:47:56,780 --> 00:47:59,520 But is there anything better than a cell? 953 00:48:01,300 --> 00:48:07,260 Okay, this this this web this this machine has a print option 954 00:48:07,840 --> 00:48:10,060 Just to say print to a file 955 00:48:11,460 --> 00:48:13,040 Then you go to system 956 00:48:13,780 --> 00:48:20,700 32 and you drag and drop to the CMD exit execution. That's all 957 00:48:24,780 --> 00:48:30,620 Trivial trivial, okay, then when the guys this pretty guys that I saw you before 958 00:48:31,840 --> 00:48:33,480 Has a command cell 959 00:48:34,380 --> 00:48:41,800 CMD they connect to the FTP and download on a server of a rat remote application tool 960 00:48:41,800 --> 00:48:43,180 Okay, that was all 961 00:48:43,740 --> 00:48:50,940 Here you have the black sage, so the right remote application tool with the to look there the file 962 00:48:50,940 --> 00:48:57,740 I know the stuff this perfect. But I want to be clear. This is a stupid machine. Okay at first 963 00:48:57,740 --> 00:49:01,340 is just for informative function they I 964 00:49:01,880 --> 00:49:07,280 They get the boys who did all this this stuff thought that is not important 965 00:49:07,280 --> 00:49:12,020 There is no juicify. There is not juicy application into these machines, but 966 00:49:12,640 --> 00:49:15,100 But looking for juice files, okay. 967 00:49:17,820 --> 00:49:20,220 The machine just see the router, okay. 968 00:49:20,300 --> 00:49:23,500 First of all, the typical network scan 969 00:49:23,500 --> 00:49:27,180 to see if there are a lot of other hosts 970 00:49:28,020 --> 00:49:32,300 in the same network and this stuff, 971 00:49:32,580 --> 00:49:34,400 but there is only the router. 972 00:49:34,600 --> 00:49:37,380 The router was the only one who we can see. 973 00:49:37,720 --> 00:49:40,900 But the router has not the default password, 974 00:49:40,900 --> 00:49:42,280 but it's okay. 975 00:49:44,600 --> 00:49:49,440 But we, they, look at the application 976 00:49:49,440 --> 00:49:52,540 who was installed in this machine 977 00:49:52,540 --> 00:49:54,360 and they found this application. 978 00:49:54,800 --> 00:49:57,520 They said pingeador, okay. 979 00:49:57,660 --> 00:50:01,140 It's like pinger, ping, to make a ping, 980 00:50:01,280 --> 00:50:05,000 I-C-N-P, ping, okay, pingeador, pinger machine. 981 00:50:05,840 --> 00:50:07,280 I don't know what's that, so. 982 00:50:09,360 --> 00:50:10,280 I look around. 983 00:50:10,280 --> 00:50:10,360 I look around. 984 00:50:10,480 --> 00:50:11,060 They look around. 985 00:50:13,100 --> 00:50:14,220 There was, 986 00:50:15,700 --> 00:50:18,520 there was an interesting application called pingeador. 987 00:50:18,940 --> 00:50:20,300 There was a config file 988 00:50:20,800 --> 00:50:23,040 with the SQL server connection string. 989 00:50:24,880 --> 00:50:25,520 Perfect. 990 00:50:25,920 --> 00:50:26,440 The IP, 991 00:50:28,640 --> 00:50:32,160 there was public IP, not internal IP. 992 00:50:32,860 --> 00:50:33,500 Perfect. 993 00:50:35,220 --> 00:50:35,540 Okay. 994 00:50:36,460 --> 00:50:38,860 But anyway, I say, what was that? 995 00:50:38,860 --> 00:50:40,560 This is, this is a stupid machine 996 00:50:40,560 --> 00:50:42,160 in the middle of the station. 997 00:50:42,640 --> 00:50:45,780 This, I'm pretty sure that this application is not, 998 00:50:46,580 --> 00:50:49,780 it's not bad, okay. 999 00:50:49,920 --> 00:50:52,500 It's, it's harmless, a harmless application. 1000 00:50:53,260 --> 00:51:00,120 But I am, how it works is he makes a ping 1001 00:51:00,640 --> 00:51:05,320 to the, to the IP of the server and so on. 1002 00:51:05,540 --> 00:51:07,920 The three-way handset to connect and this stuff. 1003 00:51:07,920 --> 00:51:13,420 But here you have all the connect, all the tables. 1004 00:51:13,820 --> 00:51:14,960 I make a string. 1005 00:51:15,200 --> 00:51:18,540 Just strings to get the strings of the application. 1006 00:51:19,680 --> 00:51:21,840 And I get the tables, the columns. 1007 00:51:22,380 --> 00:51:25,400 I get some info about the people 1008 00:51:25,400 --> 00:51:26,700 who developed this application. 1009 00:51:27,280 --> 00:51:29,720 And finally, I realized that this application 1010 00:51:31,720 --> 00:51:36,420 is used to control all the stats of all the country, 1011 00:51:36,620 --> 00:51:37,800 of all the trains. 1012 00:51:37,800 --> 00:51:38,800 Of all the country. 1013 00:51:39,140 --> 00:51:39,660 Okay. 1014 00:51:39,760 --> 00:51:43,760 It was the stats of the time of arrive, 1015 00:51:44,080 --> 00:51:45,720 the history and this shit. 1016 00:51:46,460 --> 00:51:49,140 This is a, this is a stupid machine. 1017 00:51:49,400 --> 00:51:53,180 A machine just to, to, to, to look the faster road 1018 00:51:53,180 --> 00:51:55,200 to go some, some, somewhere. 1019 00:51:55,920 --> 00:51:58,320 But there is installed this kind of application. 1020 00:51:58,660 --> 00:51:58,840 Why? 1021 00:52:00,060 --> 00:52:00,580 Why? 1022 00:52:01,140 --> 00:52:02,300 Stupid, really stupid. 1023 00:52:02,640 --> 00:52:03,600 I had the connection string. 1024 00:52:03,860 --> 00:52:05,580 Use, they have the connection string. 1025 00:52:05,740 --> 00:52:07,740 User, password and all of this. 1026 00:52:07,780 --> 00:52:07,960 Okay. 1027 00:52:11,300 --> 00:52:11,980 Whoa, whoa. 1028 00:52:12,520 --> 00:52:13,560 Ah, okay. 1029 00:52:14,980 --> 00:52:16,440 I don't see here. 1030 00:52:16,640 --> 00:52:18,360 I'm gonna stay here. 1031 00:52:18,600 --> 00:52:18,800 Okay. 1032 00:52:19,440 --> 00:52:21,380 Possible bugs, possible bugs. 1033 00:52:22,020 --> 00:52:24,040 Some parameters are sent to the application. 1034 00:52:24,420 --> 00:52:27,400 But one of them called ID terminal 1035 00:52:27,900 --> 00:52:30,480 is extracted from a TXT file. 1036 00:52:30,700 --> 00:52:31,760 TXT file. 1037 00:52:32,460 --> 00:52:32,820 Okay. 1038 00:52:33,440 --> 00:52:33,800 So. 1039 00:52:43,960 --> 00:52:44,620 Okay. 1040 00:52:45,880 --> 00:52:46,540 Okay. 1041 00:52:48,000 --> 00:52:50,660 Just remember this is a SQL server. 1042 00:52:51,630 --> 00:52:53,840 If we have the, enough privileges. 1043 00:52:54,080 --> 00:52:57,300 We have, we, we are able to draw, 1044 00:52:57,710 --> 00:52:58,500 drop database. 1045 00:52:59,880 --> 00:53:03,460 Exec XP, CMD sale and user to other user 1046 00:53:03,460 --> 00:53:05,200 and connect remotely to this system. 1047 00:53:05,740 --> 00:53:07,660 Just select all the studies. 1048 00:53:07,660 --> 00:53:15,680 of the subway, or just to get some info, some juicy info about the frequency status, historial, 1049 00:53:15,900 --> 00:53:16,780 all this stuff. 1050 00:53:17,060 --> 00:53:17,240 Okay? 1051 00:53:18,160 --> 00:53:21,540 I have a funny story because someday all these machines disappear. 1052 00:53:22,420 --> 00:53:32,260 So these guys went to some station to ask to a security man why this machine was not 1053 00:53:32,260 --> 00:53:35,080 in his place, in his place that the machine used to be. 1054 00:53:35,960 --> 00:53:41,340 And this guy said to me, said to them, okay, okay, okay, okay, I want to be clear. 1055 00:53:41,500 --> 00:53:43,980 If I say me, it's because it's so personal for me. 1056 00:53:44,100 --> 00:53:45,000 I found this story. 1057 00:53:51,600 --> 00:53:51,960 Okay. 1058 00:53:53,740 --> 00:53:55,480 Yeah, oh, it's true. 1059 00:53:55,640 --> 00:53:56,500 My English is the worst. 1060 00:53:56,580 --> 00:53:56,920 I'm sorry. 1061 00:53:57,020 --> 00:53:57,680 I was to say. 1062 00:53:59,220 --> 00:53:59,580 Okay. 1063 00:54:00,200 --> 00:54:00,700 Let's go. 1064 00:54:01,780 --> 00:54:02,840 So I go there. 1065 00:54:02,940 --> 00:54:05,060 And the man told to me that, oh, I'm sorry. 1066 00:54:05,080 --> 00:54:05,200 Okay. 1067 00:54:05,340 --> 00:54:11,760 This machine was removed like two weeks ago, but do you know, I am a hacker. 1068 00:54:12,900 --> 00:54:13,640 Oh, yeah? 1069 00:54:13,880 --> 00:54:17,300 You look like, your job is security man. 1070 00:54:17,640 --> 00:54:20,280 You don't like like, you don't look like a hacker. 1071 00:54:20,640 --> 00:54:22,740 You don't have this cool hair dress. 1072 00:54:24,820 --> 00:54:31,560 And he says, yeah, I know a way to go to check my e-mail. 1073 00:54:32,160 --> 00:54:33,980 And I say, oh, your password is mine. 1074 00:54:37,340 --> 00:54:39,660 It's more or less he was this guy. 1075 00:54:41,760 --> 00:54:42,380 Okay. 1076 00:54:42,480 --> 00:54:42,940 Okay. 1077 00:54:43,300 --> 00:54:45,240 Let's continue. 1078 00:54:45,560 --> 00:54:46,920 Getting cheapest subway tickets. 1079 00:54:48,300 --> 00:54:54,200 This is the kind of ticket used in this city that I don't want to say the name. 1080 00:54:56,920 --> 00:55:00,120 They try to read a row. 1081 00:55:00,280 --> 00:55:00,800 Okay. 1082 00:55:00,860 --> 00:55:01,340 The tickets. 1083 00:55:01,580 --> 00:55:03,720 The magnetic strip. 1084 00:55:03,940 --> 00:55:05,060 They try to read. 1085 00:55:05,060 --> 00:55:18,560 read it in this thing, the credit card reader. Okay? But it doesn't work because if you strip 1086 00:55:19,220 --> 00:55:27,480 faster or not faster, the dump is different. Okay. It doesn't work. This is the sectors 1087 00:55:27,480 --> 00:55:31,800 and prices. This is very important. Okay? In these cities there are a lot of sectors. 1088 00:55:31,800 --> 00:55:41,440 You can see A, B1, B2. You can see it. Down in the left and the right. Okay? If you want 1089 00:55:41,440 --> 00:55:51,820 to travel farther, you have to pay more. Typical. Okay? This is the those are the prices to 1090 00:55:51,820 --> 00:56:00,620 travel. Okay? If you go to the A zone, you just pay like 51 euros, I thought. 51, yeah. 1091 00:56:00,620 --> 00:56:11,580 If you go farther, you pay 123. There is a lot of prices and sectors. But you can read 1092 00:56:11,580 --> 00:56:18,520 tercera edad. It's like retired people, old people. Okay? The old people, the people who 1093 00:56:18,520 --> 00:56:28,560 is older than 65 years old, they just pay 11 euros in all sectors. Cool. For them. 1094 00:56:30,620 --> 00:56:32,840 So, math questions for you. Okay. This is the monthly pass. Okay? This is the monthly 1095 00:56:32,840 --> 00:56:41,940 pass. Okay? There are two important things in this pass that okay. This is the important 1096 00:56:41,940 --> 00:56:50,040 thing. This number, it's not a number. Leathers and numbers. Queue. This thing. rad顯 1097 00:56:50,040 --> 00:56:57,860 doors. You see the barcode? The barcode and the pass. Okay? Two important things. 1098 00:57:00,840 --> 00:57:09,620 Okay. When I want to... Oh, another thing is important too. Do you see B2 in the 1099 00:57:09,620 --> 00:57:16,960 middle, in the head of Lisa Simpson? B2 is the sector. Okay? Three things. The 1100 00:57:16,960 --> 00:57:24,540 sector, this number, this string, and the barcode. Okay? The barcode in the 1101 00:57:24,540 --> 00:57:30,040 past is used to renew the monthly ticket. Okay? So I have the barcode, I 1102 00:57:30,040 --> 00:57:34,940 introduce the barcode into the machines, and then I pay and I get the new ticket 1103 00:57:34,940 --> 00:57:43,920 of this month. Okay? The barcode has this format. But they realize that the 1104 00:57:43,920 --> 00:57:50,220 barcode is a character and the past number I showed you before. Okay? This is 1105 00:57:50,220 --> 00:57:58,160 the barcode. So, if we change this character, we can get the all their, all 1106 00:57:58,160 --> 00:57:58,720 other... 1107 00:58:00,040 --> 00:58:06,020 All their people, all their people ticket. So it's so cheap. We can travel with the 1108 00:58:06,330 --> 00:58:11,800 all their people ticket and we got generate in the machines is not to clone. This is not. 1109 00:58:11,980 --> 00:58:19,940 I'm... They are... They was playing for the for the tickets. Okay? But they has not 65 1110 00:58:19,940 --> 00:58:29,120 years old. So everybody knows that will do fast, a fuzzing, fuzzing tool, contest application tool, 1111 00:58:30,780 --> 00:58:39,040 the bar intruder, or I don't know, Hydra, to make fuzzing, fuzzing things. But the new fuzzing 1112 00:58:39,040 --> 00:58:46,080 techniques for them was fuzzing man, was a guy with barcode trying every barcode in 1113 00:58:46,080 --> 00:58:51,060 the machines to get what's the real character that he has to use to get the all their ticket. 1114 00:58:51,540 --> 00:58:59,780 Okay? So finally, after try a lot of barcodes, introducing the barcodes in the machines, 1115 00:59:01,260 --> 00:59:11,340 okay, finally, we got this ticket. This is a 65 years old ticket that we, that they generate in 1116 00:59:11,340 --> 00:59:18,580 the machines. Okay? We can... They can generate any, any, any number. This is the pass. It's 1117 00:59:18,580 --> 00:59:29,720 hacker. Oh, nice. I did not realize until now. Okay. So, they... Thank you. They can travel a 1118 00:59:30,040 --> 00:59:37,700 lot. The rest of the... In all the sectors only paying the 11 euros. Okay? So... Nice. 1119 00:59:40,040 --> 00:59:45,180 Okay. Casualties. The ticket is yellow. 1120 00:59:45,340 --> 00:59:56,620 Yellow ticket, the usual ticket is orange or white. So if some launch a staff look at you when you 1121 00:59:56,620 --> 00:59:59,960 are introducing the ticket in the machine, to enter 1122 00:59:59,960 --> 01:00:00,020 our price. 1123 01:00:00,020 --> 01:00:06,800 in the subway. This ticket works with the subway, with the buses, with the local trains, 1124 01:00:07,200 --> 01:00:14,200 with all this stuff. So, if someone of the staff is looking at you when you are introducing 1125 01:00:14,200 --> 01:00:25,560 your ticket in the machines to go to the subway, they say, no, come here. So, our friends, 1126 01:00:25,560 --> 01:00:33,980 I told you before, had some casualties. 93 euros because this guy looked at him when 1127 01:00:33,980 --> 01:00:42,920 he was introducing the tickets. So, but our friends that were so smart make some improvements 1128 01:00:43,280 --> 01:00:54,660 in the tickets. Okay. They just cut the magnetic strip. And 1129 01:00:55,560 --> 01:01:22,960 then, paste it in a usual ticket. So, finally, RFID. Next target. Okay. There is a new RFID 1130 01:01:22,960 --> 01:01:25,480 system in the subway. It works with a phone only. 1131 01:01:25,480 --> 01:01:36,080 A sector. Okay. In the middle of the town only. But RFID is used by the staff. Okay. 1132 01:01:37,300 --> 01:01:47,720 The staff holds his RFID in the neck. Like you with the badge. So, it's easy to get close 1133 01:01:47,720 --> 01:01:48,800 to them to ask a question. 1134 01:01:56,060 --> 01:02:02,920 They are so kind. They are so kind. Yep. So, if we mix an Ultrabook or any 1135 01:02:02,920 --> 01:02:10,280 other computer, and a touch that is a reader of RFID tags. That's a reader. And you're 1136 01:02:10,280 --> 01:02:18,420 going for a visit. This is a this, I think, I don't know because I'm not the guy. But 1137 01:02:18,420 --> 01:02:25,460 I think that this is a cigarette box. And you can put the touch around it. And you can 1138 01:02:25,480 --> 01:02:29,020 stack inside the cigarette box and going with the cigarette box asking for a 1139 01:02:29,020 --> 01:02:38,600 quest. Oh sorry where is the faster way to go to Bob? Bye. And then you have the 1140 01:02:38,600 --> 01:02:44,560 dump of the RFID and do just this RFID hacking, okay? To process the information, 1141 01:02:44,880 --> 01:02:51,140 to get the the password of it, okay, to get the password and clone it and 1142 01:02:51,140 --> 01:02:58,280 finally, you have a RFID keychain and you can access to all the sectors with 1143 01:02:58,280 --> 01:03:06,980 these shit, okay? I love the word shit, in English, so shit. Okay thank you. 1144 01:03:09,160 --> 01:03:15,340 Security cameras. Next target. There is a big camera circuit in all the transport 1145 01:03:15,340 --> 01:03:20,560 network, okay? All the transportation network is is recorded all the time. There are 1146 01:03:20,560 --> 01:03:21,120 several consequences. I'm going to put a link to the comments or something here. 1147 01:03:21,120 --> 01:03:27,180 Control centers like this. You can see that was the operating system used by the by the staff 1148 01:03:27,960 --> 01:03:29,160 Okay XP 1149 01:03:30,080 --> 01:03:36,820 And there is a wireless network. There's wireless network so many a piece in all the transport network 1150 01:03:43,740 --> 01:03:46,540 Okay, what nice 1151 01:03:46,540 --> 01:03:46,780 Nice 1152 01:03:48,960 --> 01:03:54,500 But but wait the SSID are hidden 1153 01:04:00,440 --> 01:04:01,640 Okay, let's go 1154 01:04:04,520 --> 01:04:05,120 Okay 1155 01:04:06,240 --> 01:04:11,620 There are a lot of antenna so many but so many antennas plan out of the next omnidirectional 1156 01:04:12,180 --> 01:04:15,620 Okay, that's okay. And there is there are a piece 1157 01:04:15,620 --> 01:04:18,240 That accessible from everyone 1158 01:04:20,220 --> 01:04:21,060 Why 1159 01:04:28,420 --> 01:04:30,540 Man in the middle 1160 01:04:31,740 --> 01:04:32,920 So easy 1161 01:04:33,480 --> 01:04:41,660 Okay, but our guys was nice guys the guys I saw you before so they did not did not do anything 1162 01:04:41,660 --> 01:04:43,120 with these things 1163 01:04:43,120 --> 01:05:11,800 things. They use another AP. Okay. What's inside? There was not DHCP. But Wireshark 1164 01:05:11,800 --> 01:05:23,860 is our friend. ARP2, of course. So, the guys just have to wait to get an ARP packet to know what's 1165 01:05:23,860 --> 01:05:36,360 the range of the IPs to manually put themselves this IP, this subway. Yeah. Okay. First of all, 1166 01:05:37,180 --> 01:05:47,160 ARP scan. They found three hosts. There was our friend, our AP friend. The router and some other 1167 01:05:47,160 --> 01:05:56,200 host. Port scanner of the host. Typical network pen testing. Typical. I'm not a magician. They 1168 01:05:56,200 --> 01:06:04,620 was not a magician. So, router. The router was, I don't know, do you see the ports open? Yeah? No? 1169 01:06:04,780 --> 01:06:05,120 Okay. 1170 01:06:06,320 --> 01:06:20,260 Wait. 21, 23, 80, and 1998. Nice. Okay. This is the router. But this is the other host. This is my 1171 01:06:20,260 --> 01:06:35,800 favorite. 23 and 443. Oh, nice. And 50,000. Strange. Okay. They saw 443. 1172 01:06:36,920 --> 01:06:49,260 So, they access to this host by throw through HTTPS. And that's what they found. Oh, invalid 1173 01:06:49,260 --> 01:07:03,280 certificate. Okay. Self-signed certificate. This is the way. SPC, SPC. What's that? Okay. Continuous. 1174 01:07:04,140 --> 01:07:06,240 And I arrive here. They arrive here. 1175 01:07:06,360 --> 01:07:19,360 SPC 5300. I have no idea. They have no idea what was that. I don't have idea. I just look the 1176 01:07:19,360 --> 01:07:25,180 torrent and I find this information. Wait, wait, wait, wait, wait. And I found about this 1177 01:07:25,180 --> 01:07:33,560 hardware. Because it's a hardware. Okay? And I look what it is used for. And there is a web 1178 01:07:33,560 --> 01:07:35,800 server. This is the web server. 1179 01:07:36,360 --> 01:07:47,040 The slide before. And you can see. This is, okay, you can control through internet, GMS, wireless 1180 01:07:47,040 --> 01:07:54,380 detectors, wireless detectors, fire warnings, IP cameras, audio gate path, door control. 1181 01:08:07,540 --> 01:08:10,600 Okay. Thanks to the ARC. 1182 01:08:10,840 --> 01:08:14,860 I have some questions. 1183 01:08:16,240 --> 01:08:16,920 Thanks to everyone. 1184 01:08:17,400 --> 01:08:17,600 Thank you so much, everyone. 1185 01:08:17,600 --> 01:08:18,160 Hmmmm. 1186 01:08:19,300 --> 01:08:20,420 Oh, hey. 1187 01:08:20,420 --> 01:08:21,780 Who is gorgeous. 1188 01:08:21,780 --> 01:08:24,420 Oh, too bad. 1189 01:08:24,420 --> 01:08:26,760 I could say nothing in English right there. 1190 01:08:26,860 --> 01:08:27,020 OK. 1191 01:08:30,780 --> 01:08:31,900 Guadalquivir. 1192 01:08:32,520 --> 01:08:33,220 Um. 1193 01:08:33,220 --> 01:08:36,600 And this is cool, because there is an invalid certificate, 1194 01:08:36,880 --> 01:08:41,660 so the admin is used to accept the invalid certificate. 1195 01:08:42,480 --> 01:08:46,320 Who looks at the fingerprint of the certificate? 1196 01:08:46,980 --> 01:08:49,940 OK, I know you are so Greeks, and maybe you are. 1197 01:08:50,600 --> 01:08:51,160 You do it. 1198 01:08:51,740 --> 01:08:55,580 But we can go deeper, more funny. 1199 01:08:56,720 --> 01:09:05,500 Do you remember the port 5000, no, 50,000, do you remember in the port scan? 1200 01:09:05,880 --> 01:09:06,620 OK. 1201 01:09:06,880 --> 01:09:19,320 There is an IP from another net mask, so we can take our range and we can start another 1202 01:09:20,370 --> 01:09:22,440 pen testing on this network. 1203 01:09:22,440 --> 01:09:24,460 And this network, OK. 1204 01:09:24,700 --> 01:09:41,700 But there is, wait, there is other IP who is sending the same, the same UDP, the same 1205 01:09:41,700 --> 01:09:45,800 length and all the same by other IP. 1206 01:09:46,740 --> 01:09:47,500 I don't know. 1207 01:09:47,720 --> 01:09:48,360 I don't know. 1208 01:09:48,420 --> 01:09:49,200 Maybe my friends know. 1209 01:09:49,320 --> 01:09:51,160 But they didn't write nothing in there. 1210 01:09:51,440 --> 01:09:52,240 In there. 1211 01:09:52,240 --> 01:09:53,340 In the torrent. 1212 01:09:53,420 --> 01:09:54,160 So I don't know. 1213 01:09:54,220 --> 01:09:55,220 But we can go deeper. 1214 01:09:55,900 --> 01:09:59,280 We can use an invalid certificate, send it by us and so on. 1215 01:10:00,160 --> 01:10:02,980 And finally, our last target. 1216 01:10:04,500 --> 01:10:05,340 Train machines. 1217 01:10:06,300 --> 01:10:08,620 Used to print tickets from a paid trip. 1218 01:10:09,820 --> 01:10:10,940 Change tickets. 1219 01:10:11,120 --> 01:10:12,040 Upgrade ticket. 1220 01:10:12,420 --> 01:10:13,140 Cancel tickets. 1221 01:10:13,960 --> 01:10:15,760 Buy tickets with credit cards. 1222 01:10:17,140 --> 01:10:17,700 Nice. 1223 01:10:18,960 --> 01:10:19,240 OK. 1224 01:10:19,720 --> 01:10:20,660 There was an update. 1225 01:10:20,920 --> 01:10:22,060 Recently there was an update. 1226 01:10:23,640 --> 01:10:26,960 Before that, anyone was able to get a login panel. 1227 01:10:27,160 --> 01:10:27,300 OK. 1228 01:10:27,380 --> 01:10:28,940 I want to clear this. 1229 01:10:30,080 --> 01:10:35,440 The machines were touch screen machines. 1230 01:10:35,900 --> 01:10:38,140 Like our first friend. 1231 01:10:39,360 --> 01:10:39,920 OK. 1232 01:10:40,240 --> 01:10:42,100 Touch screen machines. 1233 01:10:42,660 --> 01:10:51,260 So there was a place in the screen to press this, in this zone and to get a login panel. 1234 01:10:51,360 --> 01:10:51,780 And you get a login panel. 1235 01:10:51,780 --> 01:10:51,840 And you get a login panel. 1236 01:10:51,840 --> 01:10:52,080 And you get a login. 1237 01:10:52,240 --> 01:10:52,760 And you get a login. 1238 01:10:52,760 --> 01:10:53,860 Four digits. 1239 01:10:54,240 --> 01:10:55,140 Four numbers. 1240 01:10:55,220 --> 01:10:55,460 Only. 1241 01:10:55,540 --> 01:10:58,800 To get into the admin panel. 1242 01:10:59,680 --> 01:11:00,460 Social Engineering. 1243 01:11:00,860 --> 01:11:01,740 Do you know about that? 1244 01:11:02,000 --> 01:11:04,640 So we say, oh, what happened with my ticket? 1245 01:11:04,860 --> 01:11:05,320 I don't know. 1246 01:11:05,500 --> 01:11:07,460 I introduced my credit card. 1247 01:11:07,640 --> 01:11:09,540 Is it into the machine? 1248 01:11:09,780 --> 01:11:10,160 What happened? 1249 01:11:10,500 --> 01:11:11,360 Wait, wait, wait. 1250 01:11:11,640 --> 01:11:12,420 Four numbers. 1251 01:11:15,640 --> 01:11:16,100 OK. 1252 01:11:16,240 --> 01:11:17,220 But not now. 1253 01:11:17,480 --> 01:11:20,260 A couple of weeks ago. 1254 01:11:20,260 --> 01:11:29,260 go, this function disappears. But we can get full access of all of these machines. These 1255 01:11:29,260 --> 01:11:36,520 machines are present in all the country. All the stations of all the country. Okay? I have 1256 01:11:36,520 --> 01:11:53,740 a video. Here. This is the way to access to the CMD. In a video. Going. One going. Select the 1257 01:11:53,740 --> 01:12:04,680 destination. Next. Change the date of the travel. And what's that? 1258 01:12:08,560 --> 01:12:19,900 Internet explorer. Thanks, Microsoft! Okay. And, do you know, here, do you know this 1259 01:12:19,900 --> 01:12:24,500 stuff? Who is here, this things? Okay. Look. 1260 01:12:33,600 --> 01:12:35,400 Okay. Complements administration. 1261 01:12:36,040 --> 01:12:36,500 Let's go. 1262 01:12:38,520 --> 01:12:39,820 Internet Explorer function. 1263 01:12:40,800 --> 01:12:41,180 That's all. 1264 01:12:41,960 --> 01:12:45,440 Complement administration, Internet Explorer has this option. 1265 01:12:45,640 --> 01:12:51,920 You can click here, down, okay, it's a little geek on here, okay. 1266 01:12:51,920 --> 01:13:07,680 But to get these windows, and then you push, you press a lot of time, there, and not responding. 1267 01:13:17,480 --> 01:13:21,060 So, thank you, Microsoft, not responding. 1268 01:13:21,060 --> 01:13:22,120 Close. 1269 01:13:22,260 --> 01:13:22,580 Oh. 1270 01:13:44,640 --> 01:13:46,660 But it's a touch screen. 1271 01:13:47,240 --> 01:13:48,920 They fail sometimes. 1272 01:13:49,840 --> 01:13:50,860 They're bad. 1273 01:13:50,880 --> 01:13:51,040 They're bad. 1274 01:13:52,600 --> 01:13:53,120 Finally. 1275 01:13:55,260 --> 01:13:55,780 Okay. 1276 01:13:59,480 --> 01:14:00,240 Do you know? 1277 01:14:00,340 --> 01:14:01,100 This is small. 1278 01:14:03,700 --> 01:14:06,880 The keyboard on the screen is small. 1279 01:14:07,260 --> 01:14:08,660 And this is a touch screen. 1280 01:14:08,900 --> 01:14:09,500 This is a shit. 1281 01:14:11,480 --> 01:14:12,000 Okay. 1282 01:14:12,060 --> 01:14:20,920 You want to press A and you press S. You want to press W and you press M. Okay, but 1283 01:14:20,920 --> 01:14:21,740 we have our cell. 1284 01:14:21,940 --> 01:14:22,880 Our CMD. 1285 01:14:25,280 --> 01:14:26,320 GC applications. 1286 01:14:27,460 --> 01:14:28,240 We are there. 1287 01:14:29,080 --> 01:14:32,000 There's an internal application that has several functions. 1288 01:14:32,960 --> 01:14:38,640 Accept any credit card, turn off the alarm, temperature of the machine, you can control 1289 01:14:38,640 --> 01:14:40,000 the temperature of the machine. 1290 01:14:42,140 --> 01:14:42,660 Good. 1291 01:14:43,880 --> 01:14:46,280 You can open the door, the machine door. 1292 01:14:46,640 --> 01:14:49,560 So many stats and parameters of the machine. 1293 01:14:49,560 --> 01:14:51,320 This is the application. 1294 01:14:52,720 --> 01:14:53,280 Okay. 1295 01:14:54,180 --> 01:14:57,500 Here, there are a lot of so many options. 1296 01:14:58,040 --> 01:15:00,180 You can do a lot of things with the machines. 1297 01:15:01,200 --> 01:15:01,960 Remote control. 1298 01:15:03,260 --> 01:15:06,880 All the time, they was in front of the machine. 1299 01:15:07,560 --> 01:15:09,340 With the security cameras here. 1300 01:15:10,100 --> 01:15:14,240 With the security hacking boys around there. 1301 01:15:14,480 --> 01:15:14,920 Okay? 1302 01:15:15,400 --> 01:15:17,160 So, this is important. 1303 01:15:17,520 --> 01:15:18,980 So, the guys. 1304 01:15:18,980 --> 01:15:21,380 That did all of it. 1305 01:15:22,480 --> 01:15:23,300 Wants remote control. 1306 01:15:23,800 --> 01:15:24,900 Like every one of you. 1307 01:15:25,960 --> 01:15:28,700 So, there is an application for the remote control. 1308 01:15:29,000 --> 01:15:31,480 But it can be only used if you are in the internal network. 1309 01:15:31,800 --> 01:15:33,040 So, this is not useful. 1310 01:15:34,000 --> 01:15:35,960 So, they want to remote control the machine. 1311 01:15:36,200 --> 01:15:36,600 Of course. 1312 01:15:36,760 --> 01:15:45,020 They try to install a Trojan downloading the server of the Trojan by through HTTP or HTTPS. 1313 01:15:45,220 --> 01:15:47,800 But all the records were forbidden. 1314 01:15:47,800 --> 01:15:51,400 Only internal webpages were allowed. 1315 01:15:51,860 --> 01:15:53,640 Tried to use FTP. 1316 01:15:54,000 --> 01:15:54,940 It didn't work. 1317 01:15:55,260 --> 01:15:55,760 Oh, shit. 1318 01:15:56,560 --> 01:15:57,640 Losing hope. 1319 01:15:57,940 --> 01:16:00,580 The machine resolves DNS request. 1320 01:16:01,200 --> 01:16:02,000 Nice. 1321 01:16:02,440 --> 01:16:06,600 So, they thought UDP traffic was allowed. 1322 01:16:07,080 --> 01:16:07,820 Okay? 1323 01:16:07,940 --> 01:16:08,440 Easy. 1324 01:16:08,680 --> 01:16:12,720 They tried using FTP through UDP. 1325 01:16:14,120 --> 01:16:14,920 TFTP. 1326 01:16:16,080 --> 01:16:16,880 Okay? 1327 01:16:17,000 --> 01:16:17,420 You know. 1328 01:16:17,800 --> 01:16:18,340 Old fashion. 1329 01:16:18,620 --> 01:16:19,100 TFTP. 1330 01:16:21,140 --> 01:16:21,880 Okay. 1331 01:16:22,080 --> 01:16:25,580 TFTP is installed in all Windows versions. 1332 01:16:26,000 --> 01:16:27,780 The machines run XP professional. 1333 01:16:28,200 --> 01:16:33,180 So, there was TFTP client was installed in this machine. 1334 01:16:33,380 --> 01:16:33,880 So, perfect. 1335 01:16:34,140 --> 01:16:37,240 But time out. 1336 01:16:37,500 --> 01:16:39,100 It didn't work. 1337 01:16:39,860 --> 01:16:45,060 But they still thought UDP traffic were allowed. 1338 01:16:45,280 --> 01:16:46,640 But only using 53. 1339 01:16:46,640 --> 01:16:47,300 Port. 1340 01:16:48,160 --> 01:16:48,920 DNS. 1341 01:16:49,280 --> 01:16:52,980 So, TFT used 69 by default. 1342 01:16:53,360 --> 01:17:02,840 So, they changed the TFTP control settings to change the TFTP destination port to the 1343 01:17:02,840 --> 01:17:03,180 53. 1344 01:17:03,500 --> 01:17:08,140 And then in his house, they make an add to redirect. 1345 01:17:08,900 --> 01:17:12,500 But time out. 1346 01:17:13,480 --> 01:17:13,860 Yeah. 1347 01:17:15,020 --> 01:17:21,080 But finally, they realize that this is the network map. 1348 01:17:21,400 --> 01:17:28,440 The machines, router, DNS, a firewall, and the lovely Internet. 1349 01:17:28,880 --> 01:17:29,680 Okay. 1350 01:17:29,900 --> 01:17:36,320 All the traffic sent from router to Internet is dropped. 1351 01:17:37,080 --> 01:17:38,000 It's not allowed. 1352 01:17:38,360 --> 01:17:42,200 But the DNS has a rule in the firewall. 1353 01:17:42,200 --> 01:17:44,280 That allow all the traffic. 1354 01:17:44,460 --> 01:17:48,980 Only if the traffic come from this DNS. 1355 01:17:49,560 --> 01:17:55,480 If you make an NS lookup directly to Google, it doesn't work. 1356 01:17:55,720 --> 01:17:56,820 You have to use this DNS. 1357 01:17:57,120 --> 01:17:59,660 And use the implementation of the DNS protocol. 1358 01:18:00,180 --> 01:18:00,740 Okay. 1359 01:18:00,780 --> 01:18:05,860 If I have no information, I ask to another DNS and these things. 1360 01:18:06,260 --> 01:18:10,580 So, this is the saying I told you. 1361 01:18:12,480 --> 01:18:14,140 So, whoop, whoop, whoop, whoop. 1362 01:18:16,180 --> 01:18:16,700 Okay. 1363 01:18:16,780 --> 01:18:16,940 Okay. 1364 01:18:17,260 --> 01:18:22,960 To remotely control the machine, they had to use a RAT, remote application tool, through 1365 01:18:22,960 --> 01:18:23,460 DNS. 1366 01:18:25,560 --> 01:18:26,080 No? 1367 01:18:26,220 --> 01:18:26,420 Right? 1368 01:18:28,040 --> 01:18:33,460 There is an interesting project called DNS cut who makes something like that. 1369 01:18:34,380 --> 01:18:37,580 But our friends were a bunch of geeks. 1370 01:18:39,020 --> 01:18:39,680 You know. 1371 01:18:39,680 --> 01:18:41,440 This friend. 1372 01:18:41,800 --> 01:18:45,760 I think it's maybe more than the first one. 1373 01:18:45,880 --> 01:18:46,540 The real guy. 1374 01:18:47,680 --> 01:18:48,600 I think so. 1375 01:18:49,800 --> 01:18:54,660 So, these guys developed modular RAT using Python. 1376 01:18:55,060 --> 01:18:55,440 Yeah. 1377 01:18:56,000 --> 01:18:56,560 Python. 1378 01:18:56,740 --> 01:18:57,280 It's heavy. 1379 01:18:57,460 --> 01:19:01,960 Because you have to use Py2X to convert, to load all the libraries. 1380 01:19:02,220 --> 01:19:02,780 It's heavy. 1381 01:19:02,900 --> 01:19:04,840 But it's so easy to develop. 1382 01:19:05,200 --> 01:19:06,140 It's too easy. 1383 01:19:06,400 --> 01:19:06,700 Okay. 1384 01:19:06,740 --> 01:19:07,600 The RAT server. 1385 01:19:07,880 --> 01:19:08,320 Okay. 1386 01:19:08,320 --> 01:19:10,640 The server who was installed in the machine. 1387 01:19:10,860 --> 01:19:12,100 In the hacked machine. 1388 01:19:12,920 --> 01:19:15,980 Just ask to a DNS server for a register. 1389 01:19:16,460 --> 01:19:16,980 Okay? 1390 01:19:17,160 --> 01:19:19,840 The DNS response. 1391 01:19:20,220 --> 01:19:25,180 And if some of the response has some pattern, the infected system did some action. 1392 01:19:26,020 --> 01:19:26,360 Okay? 1393 01:19:26,420 --> 01:19:32,820 If you resolve my domain, it's one, two, three, 52. 1394 01:19:33,380 --> 01:19:35,560 The DNS tool. 1395 01:19:35,880 --> 01:19:37,540 Take the 52. 1396 01:19:37,540 --> 01:19:39,260 And say, oh, 52 is there. 1397 01:19:40,260 --> 01:19:41,060 Directory listing. 1398 01:19:41,220 --> 01:19:41,620 Maybe. 1399 01:19:41,760 --> 01:19:42,360 Or is. 1400 01:19:42,520 --> 01:19:42,960 Whatever. 1401 01:19:46,040 --> 01:19:49,980 It did not establish a connection. 1402 01:19:50,360 --> 01:19:50,680 Okay? 1403 01:19:51,660 --> 01:19:52,340 Nice. 1404 01:19:52,620 --> 01:19:59,180 Finally, the executable file was downloaded using TXT records of a controlled DNS server. 1405 01:19:59,760 --> 01:20:00,440 Okay? 1406 01:20:00,480 --> 01:20:02,300 We have to install the server. 1407 01:20:02,440 --> 01:20:04,300 The server of this Python tool. 1408 01:20:05,360 --> 01:20:06,040 So... 1409 01:20:07,900 --> 01:20:08,620 Perfect. 1410 01:20:09,920 --> 01:20:12,960 They used batch to make the DNS request. 1411 01:20:13,420 --> 01:20:15,500 The machine was remotely under their control. 1412 01:20:17,580 --> 01:20:18,300 Perfect. 1413 01:20:20,280 --> 01:20:21,000 Pivoting. 1414 01:20:21,220 --> 01:20:26,600 The operating system using the machine was XP service pack 2. 1415 01:20:27,740 --> 01:20:31,180 Somebody knows NetApi? 1416 01:20:32,180 --> 01:20:32,900 NetApi? 1417 01:20:32,980 --> 01:20:33,340 NetApi? 1418 01:20:33,760 --> 01:20:34,840 NetApi in Spanish? 1419 01:20:36,140 --> 01:20:38,440 And this is the final slide. 1420 01:20:38,660 --> 01:20:39,360 You can hold. 1421 01:20:40,920 --> 01:20:49,360 Once the machine and all the other NetApi machines was under control, it's time to look 1422 01:20:49,360 --> 01:20:50,820 for UEC application and files. 1423 01:20:51,880 --> 01:20:57,920 All the machines stored without encryption, the CC dumps of the clients. 1424 01:20:58,020 --> 01:21:00,360 The credit card of all the clients. 1425 01:21:00,780 --> 01:21:03,620 It's not necessary to make a hooking of the application. 1426 01:21:03,620 --> 01:21:05,140 It's not necessary. 1427 01:21:05,960 --> 01:21:06,920 Is there? 1428 01:21:09,060 --> 01:21:16,900 It means that the bad guys, if those guys I told you before, if they were bad guys, 1429 01:21:17,320 --> 01:21:23,040 they are able to get all the CC dumps of all the customers of the entire transport network 1430 01:21:23,040 --> 01:21:23,600 of the country. 1431 01:21:23,760 --> 01:21:24,940 Of all the country. 1432 01:21:25,440 --> 01:21:26,080 Okay? 1433 01:21:26,100 --> 01:21:26,640 So... 1434 01:21:28,560 --> 01:21:29,680 Epic fail. 1435 01:21:31,600 --> 01:21:32,240 Okay. 1436 01:21:32,320 --> 01:21:33,580 That's all. 1437 01:21:33,600 --> 01:21:37,380 I want to thank you for listening to me here today. 1438 01:21:49,940 --> 01:21:57,180 I want to appreciate the real guys that did all I have told you. 1439 01:21:57,680 --> 01:21:59,960 To all of you for listening to me today, of course. 1440 01:22:00,260 --> 01:22:01,080 This is... 1441 01:22:01,520 --> 01:22:02,680 I'm so proud to be here. 1442 01:22:02,680 --> 01:22:03,840 To be with you. 1443 01:22:04,520 --> 01:22:05,820 To my family and friends. 1444 01:22:06,180 --> 01:22:06,580 This is... 1445 01:22:06,580 --> 01:22:07,280 Yeah. 1446 01:22:07,360 --> 01:22:08,140 I appreciate that. 1447 01:22:08,300 --> 01:22:12,400 And all those who want to understand how and why things work. 1448 01:22:12,940 --> 01:22:13,400 Okay? 1449 01:22:13,540 --> 01:22:14,420 Continues in this way. 1450 01:22:14,920 --> 01:22:15,540 Thank you.