1 00:00:00,000 --> 00:00:00,400 There we go. 2 00:00:00,660 --> 00:00:02,700 So my name is Josh Brashears. 3 00:00:02,840 --> 00:00:04,460 I am also known as Savant. 4 00:00:04,560 --> 00:00:08,940 I am part of one of, I think, the baddest hacker collectives in the whole fucking world, 5 00:00:09,440 --> 00:00:09,920 DC949. 6 00:00:10,280 --> 00:00:11,040 My boys. 7 00:00:11,380 --> 00:00:11,860 Boo! 8 00:00:12,140 --> 00:00:12,420 Boo! 9 00:00:12,420 --> 00:00:12,800 That's right. 10 00:00:13,060 --> 00:00:13,500 Okay. 11 00:00:13,740 --> 00:00:19,180 So this talk is called Exploit Archaeology, and this is Raiders of the Lost Payphone. 12 00:00:19,500 --> 00:00:22,320 And goddamn, I hope it can get technical. 13 00:00:22,520 --> 00:00:23,760 Still need the payphone. 14 00:00:24,340 --> 00:00:28,340 If not, I need some black bag operatives who make somebody disappear. 15 00:00:28,340 --> 00:00:29,620 All right. 16 00:00:29,680 --> 00:00:30,420 So moving on. 17 00:00:31,840 --> 00:00:33,300 You're probably thinking payphones. 18 00:00:33,520 --> 00:00:34,620 How the fuck is this relevant? 19 00:00:34,960 --> 00:00:36,780 It will get technical, okay? 20 00:00:36,980 --> 00:00:38,760 But there's first a couple things you need to know. 21 00:00:39,020 --> 00:00:44,960 I professionally am a penetration tester by, that's how I get my paycheck, I'm a geek dad 22 00:00:44,960 --> 00:00:48,420 of a one-year-old and a five-year-old, it's the greatest thing in my life. 23 00:00:49,340 --> 00:00:51,900 I like to consider myself a phone freak. 24 00:00:52,200 --> 00:00:55,520 I'm probably one of the worst phone freaks to ever walk the earth. 25 00:00:56,580 --> 00:00:58,320 I'm certain that there are a lot of people out there who are like that. 26 00:00:58,320 --> 00:01:00,040 There are a lot of people in here that are way better at it than me. 27 00:01:00,160 --> 00:01:01,880 And if so, I will buy you a drink. 28 00:01:02,040 --> 00:01:02,980 Let's talk about shit. 29 00:01:03,120 --> 00:01:07,460 Because really, I'm not the best at the world, but I still think it's a super cool technology 30 00:01:07,860 --> 00:01:12,020 that people assume is dead, that it's not coming back, that it is no longer relevant 31 00:01:12,020 --> 00:01:12,360 anymore. 32 00:01:12,680 --> 00:01:14,240 And I disagree with you. 33 00:01:14,380 --> 00:01:15,420 So let's fight over drinks. 34 00:01:16,080 --> 00:01:21,520 If you want to follow me on Twitter, Sivan42, I'm sure I'm going to feel my phone ringing 35 00:01:21,520 --> 00:01:24,620 right now as people are really disappointed. 36 00:01:25,040 --> 00:01:25,340 Anyway. 37 00:01:26,200 --> 00:01:27,320 But now that you know who I am. 38 00:01:27,360 --> 00:01:27,840 Who I am not. 39 00:01:28,920 --> 00:01:30,080 I'm not that gangster. 40 00:01:30,320 --> 00:01:33,600 I'm not H.D. Moore or any of the other people that I seriously look up to. 41 00:01:33,760 --> 00:01:35,620 And I am a shit programmer. 42 00:01:35,940 --> 00:01:38,300 So you'll see why this becomes relevant. 43 00:01:38,520 --> 00:01:42,340 Because the fact that I was able to do anything at all is I'm pretty happy, actually. 44 00:01:42,760 --> 00:01:44,860 I'm not a reverse engineer, first of all. 45 00:01:44,920 --> 00:01:46,960 And I can't spell for a damn. 46 00:01:47,280 --> 00:01:54,560 So the reason that I'm giving this talk now in 2012 about pay phones that have ostensibly 47 00:01:54,560 --> 00:01:56,880 been dead for 20 years is. 48 00:02:02,560 --> 00:02:05,060 Somebody tell 303 to cancel the body bag. 49 00:02:05,900 --> 00:02:06,260 Okay. 50 00:02:07,460 --> 00:02:07,980 Thank you. 51 00:02:08,720 --> 00:02:09,500 So the reason. 52 00:02:09,620 --> 00:02:15,340 The reason we're doing this talk is that a couple buddies of mine, one of them is here, 53 00:02:16,600 --> 00:02:18,120 was going to be a former buddy of mine. 54 00:02:18,200 --> 00:02:18,580 I'm just kidding. 55 00:02:18,720 --> 00:02:19,400 I'm just kidding, Rick. 56 00:02:20,420 --> 00:02:21,780 I got a pay phone as a gift. 57 00:02:22,020 --> 00:02:24,080 And I've always wanted one, right? 58 00:02:24,440 --> 00:02:27,440 Except I didn't have anything else for it. 59 00:02:27,540 --> 00:02:28,300 It's fucking too expensive. 60 00:02:28,320 --> 00:02:29,080 It's 25 years old. 61 00:02:29,620 --> 00:02:31,360 So basically it was ostensibly an anvil. 62 00:02:31,520 --> 00:02:32,800 It was a 50-pound paperweight. 63 00:02:33,000 --> 00:02:36,400 And my whole goal in life was to get this piece of shit working again. 64 00:02:36,580 --> 00:02:37,420 But not only that. 65 00:02:37,620 --> 00:02:42,660 I wanted to see how can I make this relevant to what I do professionally as a penetration 66 00:02:42,660 --> 00:02:43,240 tester. 67 00:02:43,480 --> 00:02:45,360 And I know you're thinking, nothing. 68 00:02:45,820 --> 00:02:46,920 But that's not true. 69 00:02:47,100 --> 00:02:47,620 And we'll get there. 70 00:02:48,180 --> 00:02:52,900 In this case, I truly believe that this is about the methodology. 71 00:02:53,480 --> 00:02:57,820 It's basically what I'm saying is if you take a complex enough problem that seems to be 72 00:02:58,320 --> 00:03:01,400 unaccountable, you know, just break it down into small pieces. 73 00:03:01,740 --> 00:03:04,640 If I can do it, I have no doubt that every one of you can do it. 74 00:03:04,740 --> 00:03:06,880 So hopefully you take at least that much away. 75 00:03:07,220 --> 00:03:11,560 The other thing you're going to have to take away is that voice over IP over the DEF CON 76 00:03:11,560 --> 00:03:15,660 network is probably one of the stupidest decisions you can make if you want your demos 77 00:03:15,660 --> 00:03:16,040 to work. 78 00:03:17,340 --> 00:03:17,960 Moving on. 79 00:03:18,120 --> 00:03:22,440 And like I said, this is more about the journey and not the destination. 80 00:03:24,460 --> 00:03:27,340 And basically to see if I could do it. 81 00:03:27,340 --> 00:03:30,160 But you might notice a theme in exploit archaeology. 82 00:03:31,180 --> 00:03:33,100 No Shia LaBeouf, though. 83 00:03:33,180 --> 00:03:34,280 We don't talk about that. 84 00:03:35,240 --> 00:03:40,640 So as I'm sure you are aware right fucking now, traveling with a pay phone to Vegas 85 00:03:40,640 --> 00:03:45,040 or anywhere else in the world, especially without receipts, is a huge fucking pain in 86 00:03:45,040 --> 00:03:45,340 the ass. 87 00:03:45,560 --> 00:03:46,460 I've done this before. 88 00:03:46,760 --> 00:03:47,960 I went with FedEx. 89 00:03:48,140 --> 00:03:50,080 And basically this ended up happening. 90 00:03:52,320 --> 00:03:54,120 And so I was like, this guy. 91 00:03:56,820 --> 00:03:58,700 That's pretty much how I was in the speaker room. 92 00:03:58,780 --> 00:04:00,080 I now ask any of the proctors. 93 00:04:00,160 --> 00:04:00,940 These guys are amazing. 94 00:04:01,060 --> 00:04:01,220 Wait. 95 00:04:01,260 --> 00:04:01,720 Give it a half. 96 00:04:02,040 --> 00:04:03,540 Fucking the goons and the proctors. 97 00:04:06,840 --> 00:04:07,200 Seriously. 98 00:04:07,480 --> 00:04:07,840 Okay. 99 00:04:08,500 --> 00:04:09,620 So now that's done. 100 00:04:11,220 --> 00:04:12,880 So a little bit of back history. 101 00:04:13,040 --> 00:04:14,720 Has anybody never used a pay phone? 102 00:04:16,080 --> 00:04:16,440 Yeah? 103 00:04:16,540 --> 00:04:17,700 A couple people, right? 104 00:04:17,840 --> 00:04:19,660 Has anybody ever even seen a pay phone? 105 00:04:20,480 --> 00:04:21,360 Because they are there. 106 00:04:21,440 --> 00:04:22,320 They're everywhere, right? 107 00:04:22,440 --> 00:04:24,000 But they're kind of like homeless people. 108 00:04:24,120 --> 00:04:25,380 You don't know them. 109 00:04:25,540 --> 00:04:30,080 They're so quiet that you kind of just step over them and look right past them. 110 00:04:30,140 --> 00:04:31,880 And they beg for your change. 111 00:04:34,160 --> 00:04:38,740 So pay phones kind of be used like this picture, Grand Central Station, et cetera, et cetera. 112 00:04:38,900 --> 00:04:42,980 Like this was before cell phones, pagers started to become a thing, and if you wanted 113 00:04:42,980 --> 00:04:45,800 to call somebody on the road, you used a pay phone, right? 114 00:04:47,860 --> 00:04:51,100 Nowadays, they're a little more like this, and I don't know if the chain link fence shows 115 00:04:51,100 --> 00:04:54,040 up in this picture, but it is immediately in front of the pay phone. 116 00:04:54,040 --> 00:04:55,900 They didn't bother tearing it down. 117 00:04:55,980 --> 00:04:57,440 They're like, fuck it, chain link fence. 118 00:04:58,840 --> 00:04:59,860 And they're like this. 119 00:05:01,580 --> 00:05:02,400 And that guy. 120 00:05:04,060 --> 00:05:05,580 And this is really useful. 121 00:05:08,760 --> 00:05:13,480 So nowadays, if you see a pay phone in your life, you're like, hey, you remember pay 122 00:05:13,480 --> 00:05:13,840 phones? 123 00:05:14,080 --> 00:05:15,280 Wasn't that shit cute? 124 00:05:15,780 --> 00:05:16,220 Hello? 125 00:05:16,980 --> 00:05:21,900 And now if you see somebody using a pay phone in a neighborhood you're driving through, 126 00:05:21,900 --> 00:05:27,120 you lock your fucking doors, you roll up the windows, and you drive as fast as possible. 127 00:05:28,640 --> 00:05:31,020 Even Indiana Jones is fucking done with it. 128 00:05:32,340 --> 00:05:36,660 So basically, ever since I was a kid, and I kind of alluded to this before, I have always 129 00:05:36,660 --> 00:05:38,140 wanted my very own pay phone. 130 00:05:38,580 --> 00:05:40,300 It didn't happen until later in life. 131 00:05:40,500 --> 00:05:46,000 And some of you people born after the early 80s might not recognize this. 132 00:05:46,060 --> 00:05:47,720 This is from the young Indiana Jones Chronicles. 133 00:05:47,960 --> 00:05:50,020 So anyway, again, going with that theme. 134 00:05:50,320 --> 00:05:50,760 Okay. 135 00:05:50,760 --> 00:05:56,560 So basically, having wanted this all my life and having been a huge nerd, I've been looking 136 00:05:56,560 --> 00:05:57,960 for this rare and precious artifact. 137 00:05:59,640 --> 00:06:01,320 One day I got one. 138 00:06:01,660 --> 00:06:03,360 Thanks in large part to this guy. 139 00:06:03,500 --> 00:06:04,120 This is generic. 140 00:06:04,340 --> 00:06:04,820 Say hello. 141 00:06:05,260 --> 00:06:05,740 Hello. 142 00:06:06,280 --> 00:06:07,060 Thank you. 143 00:06:07,600 --> 00:06:09,340 And a very good friend of mine, Tiffany. 144 00:06:09,920 --> 00:06:15,200 Rick was actually holding on to this pay phone for a while while I needed some help doing 145 00:06:15,200 --> 00:06:15,560 things. 146 00:06:16,600 --> 00:06:19,960 So a little background about where you see them anymore. 147 00:06:19,960 --> 00:06:25,200 I'm sure you've noticed that there's a few in the casino, and they're not really relevant 148 00:06:25,200 --> 00:06:28,320 to this talk, or I would have ripped one straight out of the fucking wall and brought it up 149 00:06:28,320 --> 00:06:31,260 on stage, because those are typically pro-tels and nor-tels. 150 00:06:31,380 --> 00:06:33,660 They're a completely different beast, but we'll get into that. 151 00:06:33,820 --> 00:06:39,880 But where pay phones are still really relevant and popular right now is in correctional facilities, 152 00:06:40,200 --> 00:06:41,180 is in prisons. 153 00:06:41,220 --> 00:06:42,900 It's still kind of a big deal to them. 154 00:06:43,320 --> 00:06:48,100 And yeah, this one, or at least that one, is actually from a prison. 155 00:06:48,220 --> 00:06:48,740 And yeah. 156 00:06:48,740 --> 00:06:50,400 I clean the ever-loving shit out of that. 157 00:06:50,560 --> 00:06:53,720 I really don't want herpagonosipylase or any of that business. 158 00:06:54,100 --> 00:06:59,280 So hopefully being in Vegas for a week didn't set me back any. 159 00:06:59,740 --> 00:07:04,060 But let's talk a brief bit about the different types of pay phones, right? 160 00:07:04,220 --> 00:07:08,680 So if you think about phone-freaking lore traditionally, you're probably thinking of 161 00:07:09,040 --> 00:07:11,700 what is known as a Bocot, colloquially. 162 00:07:11,700 --> 00:07:14,220 That is a bell-owned, coin-operated telephone. 163 00:07:14,600 --> 00:07:18,540 Those are the ones that more often than not you see people phone-freaking or trying. 164 00:07:19,180 --> 00:07:24,320 The difference being these guys right here are Cocots, customer-owned, coin-operated 165 00:07:24,320 --> 00:07:24,640 telephone. 166 00:07:25,120 --> 00:07:26,360 This is an example. 167 00:07:26,500 --> 00:07:28,140 Pacific Bell representing California. 168 00:07:29,680 --> 00:07:36,720 So basically the Bocots could be Redbox because all of the shit, all of the coin management 169 00:07:36,720 --> 00:07:41,340 was basically done by tones back to the central office that had a special line classification 170 00:07:41,340 --> 00:07:43,320 that said this is a pay phone. 171 00:07:43,540 --> 00:07:48,480 If I'm not hearing this tone, and I believe it's 1700 megahertz plus 2200 megahertz and 172 00:07:48,480 --> 00:07:52,160 15 millisecond burst, feel free to correct me or throw shit at me if I'm wrong. 173 00:07:52,240 --> 00:07:52,780 It's from memory. 174 00:07:54,280 --> 00:07:55,520 Probably still possible. 175 00:07:55,800 --> 00:08:00,100 I know it was possible at least in 2006 in TourCon San Diego. 176 00:08:02,160 --> 00:08:06,140 It's probably still possible somewhere in the U.S., but I haven't seen them in a while. 177 00:08:06,340 --> 00:08:09,160 If you know of any recently, I'd love to hear about it. 178 00:08:09,180 --> 00:08:09,780 I'll buy you a drink. 179 00:08:10,720 --> 00:08:14,460 But most of the regional bell operating companies have basically outsourced all of that to 180 00:08:14,460 --> 00:08:15,140 private companies. 181 00:08:15,300 --> 00:08:17,980 So it's not really a lot of things you can do right now. 182 00:08:17,980 --> 00:08:23,580 Now, co-cop pay phones like this one cannot be Redboxed, and the reason is they don't 183 00:08:23,580 --> 00:08:26,380 rely on the central office to handle all the call management shit. 184 00:08:26,560 --> 00:08:31,560 They basically have computers inside, albeit computers from the early 80s, but computers 185 00:08:31,560 --> 00:08:34,140 nonetheless because they do not use ACTS. 186 00:08:34,460 --> 00:08:37,760 And I'm too tired to remember what ACTS stands for, but that's Redbox tones. 187 00:08:38,540 --> 00:08:44,300 So with smart pay phones such as these, all the shit that happens actually happens right 188 00:08:44,300 --> 00:08:45,180 on the pay phone. 189 00:08:45,340 --> 00:08:47,400 So all the good stuff, right? 190 00:08:47,400 --> 00:08:49,720 Whereas telco pay phones happen at the central office. 191 00:08:50,140 --> 00:08:52,080 So there's a couple of ways to tell the difference. 192 00:08:52,440 --> 00:08:55,040 The most obvious one is the style of housing. 193 00:08:55,380 --> 00:09:02,040 Most, although not all, bell-operated coin-owned telephones use a Western electric-style housing, 194 00:09:02,200 --> 00:09:07,320 whereas in this case, and again, this is not a rule. 195 00:09:07,460 --> 00:09:08,960 This is just kind of a guideline. 196 00:09:09,340 --> 00:09:13,580 You'll notice that the armored cable goes into the front and the coin returns on the 197 00:09:13,580 --> 00:09:13,820 left. 198 00:09:14,000 --> 00:09:16,240 That's not to say that co-cots aren't like this. 199 00:09:16,320 --> 00:09:17,380 In fact, many, many, many, many, many, many, many, many, many, many, many, many, many, many, 200 00:09:17,400 --> 00:09:19,400 many, many of them are, even the Alcatel ones. 201 00:09:19,720 --> 00:09:23,360 But off the top of your head, if you see these, you're starting to build a profile in your 202 00:09:23,360 --> 00:09:23,620 mind. 203 00:09:24,180 --> 00:09:28,960 Conversely, the co-cots use the GTE-style housing, which I believe these both are. 204 00:09:29,040 --> 00:09:29,320 They are. 205 00:09:30,000 --> 00:09:33,700 The difference being right away that the armored cable is on the side and the coin slot is 206 00:09:33,700 --> 00:09:34,120 on the left. 207 00:09:34,340 --> 00:09:40,260 You're going to notice that all the pay phones, like both of them, at the Rio, are using GTE-style 208 00:09:40,260 --> 00:09:40,720 housing. 209 00:09:40,940 --> 00:09:45,300 And if you do try to hack them, I will disavow telling you about any of this. 210 00:09:45,420 --> 00:09:46,440 But I don't even think it will work. 211 00:09:46,980 --> 00:09:47,380 So, yeah. 212 00:09:47,400 --> 00:09:51,820 So anyway, Generic brought his own, which I believe is relatively the same. 213 00:09:52,000 --> 00:09:55,760 This pay phone is an Alcatel Series 5 line-powered pay phone. 214 00:09:55,980 --> 00:10:00,200 And what's cool about this is Alcatel had a patent, giant six-volt lead acid battery 215 00:10:00,200 --> 00:10:05,500 that basically trickle charged off the late electricity in most analog phone systems. 216 00:10:05,820 --> 00:10:10,360 And because it's a smart phone, all of the rate management shit, the long distance handling 217 00:10:10,360 --> 00:10:13,820 and all the special features, that all happens inside the pay phone. 218 00:10:13,940 --> 00:10:14,660 It's kind of cool stuff. 219 00:10:16,340 --> 00:10:18,480 So Alcatel is the company that made this. 220 00:10:18,680 --> 00:10:20,100 They are long since gone. 221 00:10:20,220 --> 00:10:22,680 They are gone like the fucking dinosaurs, okay? 222 00:10:22,840 --> 00:10:28,240 So trying to accomplish my mission ended up being far more of a pain in the ass than 223 00:10:28,240 --> 00:10:28,560 I thought. 224 00:10:29,660 --> 00:10:35,440 But I got the pay phone, so now I, too, could dial the 1-900-295-cents-a-minute Indiana 225 00:10:35,440 --> 00:10:38,620 Jones text tone adventure that used to be in the back of comic books. 226 00:10:39,020 --> 00:10:39,460 Anyway. 227 00:10:40,600 --> 00:10:42,340 So we have a couple problems. 228 00:10:42,720 --> 00:10:43,520 Number one. 229 00:10:43,840 --> 00:10:44,640 At the time. 230 00:10:44,660 --> 00:10:46,000 I didn't have keys. 231 00:10:46,640 --> 00:10:48,320 I didn't have a working battery. 232 00:10:48,600 --> 00:10:50,120 I had fuck all for documentation. 233 00:10:50,720 --> 00:10:54,800 Not only that, but the phone was from a different area code, which meant if I wanted to call 234 00:10:54,800 --> 00:10:57,480 my wife, like, hey, how you doing, it was like $8.25. 235 00:10:57,900 --> 00:10:59,580 So then you have to go to the laundromat. 236 00:11:00,440 --> 00:11:00,840 Okay. 237 00:11:01,300 --> 00:11:02,480 That's not a good solution. 238 00:11:03,480 --> 00:11:05,240 So there's a couple things we need to do. 239 00:11:05,300 --> 00:11:06,140 The methodology, right? 240 00:11:06,260 --> 00:11:07,780 First, get the phone open. 241 00:11:08,120 --> 00:11:09,900 Second, replace the battery. 242 00:11:10,100 --> 00:11:12,260 And third, reprogram for free calls. 243 00:11:12,480 --> 00:11:13,200 And then afterwards. 244 00:11:13,200 --> 00:11:15,600 Then we can start to do some interesting shit with it. 245 00:11:16,520 --> 00:11:20,440 So the first goal that I had was I wanted to open the pay phone. 246 00:11:20,640 --> 00:11:23,480 But I didn't want to drill it. 247 00:11:24,700 --> 00:11:26,280 I didn't want to use a crowbar. 248 00:11:28,080 --> 00:11:31,600 And I mean, I wanted to blow something up, but not my pay phone. 249 00:11:31,760 --> 00:11:32,540 So that was out. 250 00:11:34,040 --> 00:11:38,440 So the goal here was nondestructive entry and keep the phone as intact as possible. 251 00:11:38,740 --> 00:11:41,300 So we had to come up with some cool solutions. 252 00:11:41,700 --> 00:11:42,940 I had to pick these locks. 253 00:11:42,940 --> 00:11:44,900 Now, at the time, I was really lousy at it. 254 00:11:45,240 --> 00:11:46,560 But I've since gotten better. 255 00:11:48,100 --> 00:11:50,020 Then there's three types of keys that you need. 256 00:11:50,260 --> 00:11:52,160 So there's the upper housing lock. 257 00:11:52,520 --> 00:11:56,180 This is a bit lower security, which is weird, but we'll get into that later. 258 00:11:56,260 --> 00:11:57,840 Because really, the important shit's in here. 259 00:11:58,200 --> 00:12:01,660 What you're going to find in here in the coin vault, which uses a completely separate 260 00:12:01,660 --> 00:12:04,220 higher security pin, is the money. 261 00:12:04,400 --> 00:12:07,080 And on average, they hold about $120 and quarters. 262 00:12:07,380 --> 00:12:12,400 If you're a penetration tester, you're probably going to make that money back before you'll 263 00:12:12,400 --> 00:12:13,500 get the pay phone open. 264 00:12:13,660 --> 00:12:15,460 So it's not necessarily worth your time. 265 00:12:15,620 --> 00:12:16,860 But we'll get into that in a second. 266 00:12:17,160 --> 00:12:18,660 Finally, there's a T-Wrench. 267 00:12:18,900 --> 00:12:21,260 And I believe I have it in my pocket. 268 00:12:21,520 --> 00:12:22,660 Dear God, I hope so. 269 00:12:22,820 --> 00:12:24,480 If not, not terribly relevant. 270 00:12:24,740 --> 00:12:26,480 But basically, this is a torque wrench. 271 00:12:27,840 --> 00:12:32,320 I don't know if you can see this right away, but underneath, on top of the coin vault, 272 00:12:32,860 --> 00:12:35,160 there is this little weird looking ratchet thing. 273 00:12:35,340 --> 00:12:37,120 And there's usually another one on the side right here. 274 00:12:37,280 --> 00:12:39,300 And find me later and we can actually take a difference. 275 00:12:39,520 --> 00:12:40,400 You need all three. 276 00:12:40,500 --> 00:12:42,380 If you want to open the phone and get it to do what you want, you need all three. 277 00:12:42,400 --> 00:12:43,300 You need all of them. 278 00:12:43,460 --> 00:12:44,480 And I had shit. 279 00:12:44,600 --> 00:12:45,400 I had nothing. 280 00:12:45,640 --> 00:12:50,180 So interestingly enough, the upper housing lock only had three pins. 281 00:12:50,380 --> 00:12:51,380 They weren't security pins. 282 00:12:51,620 --> 00:12:54,980 They weren't mushroom or spool or anything ninja like that. 283 00:12:55,060 --> 00:12:58,640 Because they really didn't think when they designed pay phones that this would be where 284 00:12:58,640 --> 00:12:59,580 people would want to go. 285 00:12:59,660 --> 00:13:01,400 They figured everybody would want to go here. 286 00:13:02,160 --> 00:13:08,100 One interesting fact about these is that they did have anti-impressioning divots, which 287 00:13:08,100 --> 00:13:12,160 I didn't even understand until Scorch from 949 helped explain that to me. 288 00:13:12,400 --> 00:13:12,840 Scorch, are you here? 289 00:13:14,420 --> 00:13:15,100 Fucking lazy. 290 00:13:15,440 --> 00:13:15,880 I'm just kidding. 291 00:13:17,440 --> 00:13:18,520 So that was neat. 292 00:13:18,660 --> 00:13:20,560 And I was able to pick that pretty quickly. 293 00:13:20,700 --> 00:13:24,340 And if you find yourself with a pay phone, especially one of these in the GTE style housings, 294 00:13:24,420 --> 00:13:26,180 the first thing you want to do is pick this lock. 295 00:13:26,420 --> 00:13:29,900 The lesson I learned is it's only going to rotate about 45 degrees. 296 00:13:30,220 --> 00:13:32,920 If you got it to do that, you've probably already opened it. 297 00:13:33,160 --> 00:13:34,140 So cool tip. 298 00:13:34,340 --> 00:13:37,220 It took me about 20 minutes to figure that out after I actually already picked the lock. 299 00:13:38,320 --> 00:13:39,260 So pro tip. 300 00:13:40,100 --> 00:13:42,200 Coin vault lock, not so much. 301 00:13:42,400 --> 00:13:45,860 For some reason, they decided that this should actually be a slightly higher lock. 302 00:13:45,980 --> 00:13:46,380 Go figure. 303 00:13:46,740 --> 00:13:48,580 So there were four pins in this. 304 00:13:48,740 --> 00:13:50,200 There were a couple security pins. 305 00:13:50,380 --> 00:13:51,540 These are created by Medeco. 306 00:13:51,720 --> 00:13:56,140 You can still buy them today, although it's not the ultra high security Medeco biaxial 307 00:13:56,140 --> 00:13:56,400 locks. 308 00:13:56,540 --> 00:14:01,560 But at that time, I hadn't practiced enough, and I was personally not able to pick it. 309 00:14:02,920 --> 00:14:06,700 So I brought it to a hacker con because fuck yeah, someone there is going to have the 310 00:14:06,700 --> 00:14:07,140 skill set. 311 00:14:07,320 --> 00:14:12,240 I took it to a really awesome hacker con in Mountain View called Baythread. 312 00:14:12,240 --> 00:14:13,540 And I highly recommend it. 313 00:14:13,600 --> 00:14:14,360 But I digress. 314 00:14:14,700 --> 00:14:15,960 So I brought it. 315 00:14:16,440 --> 00:14:19,720 Everybody's like, whoa, I haven't seen one of those in like decades. 316 00:14:20,180 --> 00:14:21,160 Where did you get it? 317 00:14:21,220 --> 00:14:22,280 And I'm like, I don't want to talk about it. 318 00:14:23,660 --> 00:14:24,700 So it was cool. 319 00:14:24,820 --> 00:14:27,740 There was a long line of people that were trying to pick this. 320 00:14:27,820 --> 00:14:29,960 Because everyone's like, nah, I got this shit. 321 00:14:30,160 --> 00:14:30,600 Four pins. 322 00:14:31,080 --> 00:14:31,820 Let's do this. 323 00:14:32,460 --> 00:14:34,580 30 people tried and failed. 324 00:14:35,540 --> 00:14:39,740 And then a guy came up to me and he's like, did you try raking it? 325 00:14:40,340 --> 00:14:43,700 And I'm like, fuck yeah, I tried raking it. 326 00:14:43,720 --> 00:14:45,460 I've been trying to pick this thing for several days. 327 00:14:45,640 --> 00:14:47,060 He's like, do you mind if I give it a try? 328 00:14:47,180 --> 00:14:48,700 And I'm like, please, why not? 329 00:14:49,780 --> 00:14:51,400 Fucking open in 10 seconds. 330 00:14:53,720 --> 00:14:55,440 So I'm going to be honest with you here. 331 00:14:55,660 --> 00:14:59,440 I didn't even field strip that lock because I didn't want to know what was inside. 332 00:14:59,760 --> 00:15:01,600 I handed it to him right then and there. 333 00:15:01,680 --> 00:15:03,080 And I said, this is for you. 334 00:15:03,300 --> 00:15:05,700 I took it out of the payphone and he kept it. 335 00:15:05,820 --> 00:15:07,660 And I never want to see the damn thing again. 336 00:15:09,180 --> 00:15:11,080 So we've got the vault lock open. 337 00:15:11,260 --> 00:15:12,960 We've got the upper housing lock open. 338 00:15:13,120 --> 00:15:17,400 We still need a torque wrench, which at the time, I've since received one, I did not have. 339 00:15:17,640 --> 00:15:19,920 So we had to do a little harder hacking. 340 00:15:21,040 --> 00:15:21,920 Virus, are you here? 341 00:15:22,000 --> 00:15:22,600 You still sleeping? 342 00:15:23,660 --> 00:15:24,280 Fucking virus. 343 00:15:25,080 --> 00:15:26,960 949, you'd think that we're alcoholics. 344 00:15:33,040 --> 00:15:36,960 So we took one of the old DEFCON badges and we're actually able to kind of hack something 345 00:15:36,960 --> 00:15:40,580 together with a badge clip, a nice wrench, and some faith. 346 00:15:40,920 --> 00:15:43,880 And what we came up with was a little bit something like this. 347 00:15:44,100 --> 00:15:45,260 You get the general idea. 348 00:15:45,440 --> 00:15:49,220 It looks a bit like a legitimate payphone torque wrench, but it worked. 349 00:15:49,820 --> 00:15:51,420 Now we got the damn thing open. 350 00:15:52,240 --> 00:15:52,680 Yes! 351 00:15:53,340 --> 00:15:53,780 Okay. 352 00:15:54,160 --> 00:15:54,780 Step 2. 353 00:15:55,940 --> 00:15:56,820 Dead battery. 354 00:15:57,200 --> 00:16:02,420 So because these are line powered and all the computer shit on the inside needs enough 355 00:16:02,420 --> 00:16:06,880 juice to sort of make the calls once you take the phone off the hook, you need to have a 356 00:16:06,880 --> 00:16:08,500 battery that actually retains a charge. 357 00:16:08,760 --> 00:16:11,520 And these are a lot harder to get, or at least I thought at the time. 358 00:16:11,640 --> 00:16:18,800 So I went to payphone.com, which did have the battery for a great price, $5. 359 00:16:19,920 --> 00:16:22,140 Oh, and it's only $35 to ship it. 360 00:16:22,300 --> 00:16:24,020 Or more if you want it expedited. 361 00:16:25,700 --> 00:16:26,520 So I paid it. 362 00:16:27,160 --> 00:16:27,820 What are you going to do? 363 00:16:28,740 --> 00:16:30,080 And yeah, I was a mad bro. 364 00:16:31,820 --> 00:16:32,180 Okay. 365 00:16:32,240 --> 00:16:35,820 So now that the phone is sort of alive, we can get a dial tone theoretically. 366 00:16:36,500 --> 00:16:36,860 Okay. 367 00:16:36,880 --> 00:16:39,180 So we can move on from that to the next step, okay? 368 00:16:40,580 --> 00:16:46,020 So the problem we're still dealing with is the payphone is from, I don't know, some Nigerian 369 00:16:46,020 --> 00:16:47,700 or some such PSTN extension. 370 00:16:48,080 --> 00:16:50,900 So actually using it was kind of out of the question at this point. 371 00:16:51,820 --> 00:16:55,120 So basically we needed a means to reprogram it. 372 00:16:55,440 --> 00:16:59,200 So we got a zero at the rates table, which basically determines how much money they're 373 00:16:59,200 --> 00:17:00,460 going to charge per call. 374 00:17:00,700 --> 00:17:05,440 Then I wanted to find some vulnerabilities in the software, which would have been awesome, 375 00:17:05,440 --> 00:17:07,420 except we'll get into that later. 376 00:17:07,600 --> 00:17:09,120 And somehow maybe turn a profit. 377 00:17:09,620 --> 00:17:10,300 Step four. 378 00:17:11,780 --> 00:17:15,720 So the first hack I was able to do before I was able to actually get any sort of software 379 00:17:15,720 --> 00:17:21,560 was by law all telephones that actually have a dial tone are required to make 911 a free 380 00:17:21,560 --> 00:17:21,760 call. 381 00:17:22,120 --> 00:17:27,000 So with an analog telephone adapter and a little asterisk Linux PBX magic, you dial 382 00:17:27,000 --> 00:17:29,860 911 on my phone and it gives you a secondary dial tone. 383 00:17:30,080 --> 00:17:30,800 Sweet, right? 384 00:17:30,900 --> 00:17:31,180 Cool. 385 00:17:31,440 --> 00:17:32,100 It's funny. 386 00:17:32,180 --> 00:17:34,020 People come over to my house like, oh, no way. 387 00:17:34,080 --> 00:17:34,560 A payphone. 388 00:17:35,440 --> 00:17:35,840 How do I call? 389 00:17:36,020 --> 00:17:36,620 And I'm like, dial 911. 390 00:17:37,140 --> 00:17:40,060 And they're like, fuck you, buddy. 391 00:17:40,300 --> 00:17:41,340 And I'm like, no, seriously. 392 00:17:42,120 --> 00:17:42,840 Dial 911. 393 00:17:42,980 --> 00:17:43,960 It's from my house. 394 00:17:43,980 --> 00:17:45,840 If the cops show up, I'll fucking deal with it. 395 00:17:45,980 --> 00:17:46,680 So they did. 396 00:17:46,820 --> 00:17:47,740 And they're like, oh, okay. 397 00:17:48,260 --> 00:17:49,460 So that was cool. 398 00:17:49,540 --> 00:17:50,020 And it worked. 399 00:17:50,220 --> 00:17:51,500 But it was super sloppy. 400 00:17:51,580 --> 00:17:52,920 And it was not really what I wanted. 401 00:17:53,000 --> 00:17:56,200 I wanted a working payphone that worked for free. 402 00:17:57,380 --> 00:18:00,500 So the documentation was basically nonexistent. 403 00:18:00,660 --> 00:18:05,220 And for several months I put in the phrase Alcatel and eBay with a hope and a pray and 404 00:18:05,220 --> 00:18:07,060 eventually I started to get some hits. 405 00:18:07,340 --> 00:18:09,420 And it was cool to some extent. 406 00:18:09,680 --> 00:18:12,060 It didn't talk about how to actually install the payphone. 407 00:18:12,300 --> 00:18:15,760 It was part two of a three‑part manual. 408 00:18:16,180 --> 00:18:18,020 So kind of helpful. 409 00:18:18,400 --> 00:18:20,100 In the long run, not so much. 410 00:18:21,900 --> 00:18:22,360 Okay. 411 00:18:22,560 --> 00:18:24,240 So maybe I could contact Alcatel, right? 412 00:18:24,320 --> 00:18:25,580 Maybe some of the engineers are around. 413 00:18:26,440 --> 00:18:26,900 Nope. 414 00:18:28,480 --> 00:18:29,160 Long gone. 415 00:18:30,840 --> 00:18:34,740 So I went to eBay and paid way too much money. 416 00:18:35,220 --> 00:18:40,760 For a photocopy from a guy, and I'm probably the only one who's ever bought one, but you 417 00:18:40,760 --> 00:18:41,020 know what? 418 00:18:41,040 --> 00:18:45,360 The very next week he had another one listed because they're fucking photocopies. 419 00:18:47,540 --> 00:18:50,820 So if anybody wants a copy, contact me after the talk. 420 00:18:51,420 --> 00:18:52,160 For free. 421 00:18:52,480 --> 00:18:55,920 So basically I had part two of a three‑part manual. 422 00:18:56,240 --> 00:19:00,340 And it's ostensibly like looking at the rose at a stone because only having one piece of 423 00:19:00,340 --> 00:19:02,280 it didn't mean a whole hell of a lot to me. 424 00:19:02,320 --> 00:19:03,600 But it was something, right? 425 00:19:03,700 --> 00:19:04,020 Okay. 426 00:19:04,020 --> 00:19:04,840 We're getting there. 427 00:19:05,060 --> 00:19:06,020 This is Hackajarth. 428 00:19:06,340 --> 00:19:10,500 I'm sure he's not here because we're hackers and we sleep in and 11 is early for us. 429 00:19:11,340 --> 00:19:11,820 Okay. 430 00:19:11,880 --> 00:19:15,980 So it was useful, but only to some extent because I didn't actually have the software 431 00:19:15,980 --> 00:19:16,900 to reprogram it. 432 00:19:17,780 --> 00:19:21,800 So I found out from the manual that there are actually three ways to reprogram Alcatel 433 00:19:21,800 --> 00:19:22,180 payphones. 434 00:19:22,460 --> 00:19:26,420 One, software, which I don't have because it's fucking old and they're gone. 435 00:19:26,800 --> 00:19:28,660 Two, local telemetry. 436 00:19:28,880 --> 00:19:30,180 We'll get into that in a second. 437 00:19:30,340 --> 00:19:32,200 And three, remote telemetry. 438 00:19:32,420 --> 00:19:33,760 So software is gangster. 439 00:19:33,760 --> 00:19:37,100 If you manage to find a copy, though, this is not freeware software. 440 00:19:37,480 --> 00:19:42,760 You have to then have a serial number from a company that has been dead in the ground 441 00:19:42,760 --> 00:19:43,640 for 20 years. 442 00:19:45,840 --> 00:19:47,960 So local telemetry is another option. 443 00:19:48,240 --> 00:19:53,360 And if you've got the keys or some lockpick skills and you own the phone, I have to emphasize 444 00:19:53,360 --> 00:20:00,000 that or EFF will probably not take my cause, then you can open this up and you can do it 445 00:20:00,000 --> 00:20:00,540 from the field. 446 00:20:00,600 --> 00:20:01,800 And I'm sorry I'm losing this guy. 447 00:20:01,960 --> 00:20:03,740 I'm going to try and make this a little more interesting for you. 448 00:20:03,740 --> 00:20:07,440 So basically you push the button, you flash the hook, there's voice prompts, whatever. 449 00:20:07,640 --> 00:20:08,500 You can reprogram it. 450 00:20:08,640 --> 00:20:12,940 And remote telemetry is where it gets badass and that's where I teach all of you guys how 451 00:20:12,940 --> 00:20:13,820 to own all the payphones. 452 00:20:14,660 --> 00:20:16,720 So software-based programming is cool. 453 00:20:16,980 --> 00:20:21,480 And the cool thing about most phone freaks is that they keep everything. 454 00:20:22,560 --> 00:20:26,540 I believe that there's a closet somewhere that they all share space in that just has 455 00:20:26,540 --> 00:20:28,960 every type of hard disk from the beginning of time. 456 00:20:29,220 --> 00:20:30,440 So we got it, right? 457 00:20:30,620 --> 00:20:32,060 So it's time to crack the software. 458 00:20:32,200 --> 00:20:33,720 Because that was pretty much our only option. 459 00:20:35,340 --> 00:20:40,000 But cracking 10‑year‑old software, especially if you're not an RE, is actually pretty damn 460 00:20:40,000 --> 00:20:40,400 hard. 461 00:20:40,920 --> 00:20:46,600 I had a lot of help, especially from the 949 guys, but as it turns out, 16‑bit NE binaries, 462 00:20:46,640 --> 00:20:50,520 new executables, not PE files, which you may be familiar now if you do any sort of 463 00:20:50,520 --> 00:20:50,800 RE. 464 00:20:51,100 --> 00:20:52,980 Even IdaPro was like, WTF, mate? 465 00:20:53,040 --> 00:20:53,480 No idea. 466 00:20:54,260 --> 00:20:56,100 At least not within the time frame that we needed. 467 00:20:56,340 --> 00:20:57,540 So I had a lot of help. 468 00:20:57,660 --> 00:21:00,800 And by help, I mean people way smarter than me did this for me. 469 00:21:00,900 --> 00:21:01,440 Thank you, guys. 470 00:21:01,620 --> 00:21:02,320 You know who you are. 471 00:21:03,720 --> 00:21:05,460 The Virus001, N80 and Frank 2. 472 00:21:07,020 --> 00:21:11,780 Eventually we're able to run the installer program, hook into it, jump the actual serial 473 00:21:11,780 --> 00:21:15,580 number check, then uncompress the installer archives, and now we're talking. 474 00:21:16,000 --> 00:21:18,480 Now I don't expect you guys to be able to have this software. 475 00:21:18,680 --> 00:21:19,440 Talk to me later. 476 00:21:20,900 --> 00:21:22,800 But now it's starting to make some sense, right? 477 00:21:22,940 --> 00:21:24,420 So now we're getting somewhere. 478 00:21:24,560 --> 00:21:26,960 Even with only part two of the manual, we're able to do some shit. 479 00:21:27,320 --> 00:21:31,200 So built in to these pay phones is really interesting fact, is they have a modem. 480 00:21:31,200 --> 00:21:36,340 modem. So if you call the pay phone, it will eventually answer with a modem on the El 481 00:21:36,340 --> 00:21:41,280 Quetel series. Sometimes they're configured to pick up after one ring, sometimes they're 482 00:21:41,280 --> 00:21:45,980 configured to pick up after eight rings. So that way if local ordinance requires that phone 483 00:21:45,980 --> 00:21:50,840 calls are able to have inbound calls, then they're legit, right? So basically it is a 484 00:21:50,840 --> 00:21:57,920 requirement on El Quetel pay phones. I got a confession. I didn't even have a landline at 485 00:21:57,920 --> 00:22:03,560 the time. Worst phone freak ever. So I had a solution. It's this guy right here. It's an 486 00:22:03,560 --> 00:22:08,580 unlocked Linksys analog telephone adapter and a little USB modem which, yeah, you can still 487 00:22:08,580 --> 00:22:15,340 buy at Fry's for too much money. But basically voice over IP for doing anything other than 488 00:22:15,340 --> 00:22:19,820 making cheap calls to grandma is a giant fucking pain in the ass. If you're trying to do any 489 00:22:19,820 --> 00:22:23,740 sort of actual data connection type stuff, there's a lot of things you're going to have to 490 00:22:23,740 --> 00:22:27,840 know. And the Telefreak boys, I hope some of you are here because you saved my ass. I 491 00:22:27,840 --> 00:22:33,660 have some things. First of all, disallow all codecs except for ULAW and ALAW. Disable noise 492 00:22:33,660 --> 00:22:38,380 cancellation or you're going to have a bad time. Echo suppression, you want to get rid of 493 00:22:38,380 --> 00:22:44,140 that. And 9600 baud is about the fastest you can reasonably expect. And I'm sure there's at 494 00:22:44,140 --> 00:22:50,020 least a handful of you who don't even know what 9600 baud means. Realistically, though, I 495 00:22:50,020 --> 00:22:57,720 was getting 1200. But that's all that I needed. Okay? So a huge thanks to the Telefreak guys. Hi 496 00:22:57,840 --> 00:23:03,540 B. I know you're not here but maybe you'll see this someday. Oldschoolfreak.com guys, a lot of 497 00:23:03,540 --> 00:23:07,600 people along the way over the years have really helped me understand this. So real quick, let's 498 00:23:07,600 --> 00:23:11,480 briefly discuss defaulting the phone. When you open it up, in the upper right hand corner, 499 00:23:11,580 --> 00:23:14,620 there's going to be a button. If you can push the button, you can default to all the known 500 00:23:14,620 --> 00:23:20,880 values. If this is your pay phone that you own, it's a reasonably acceptable option, okay, if 501 00:23:20,880 --> 00:23:24,840 you just want to work from known values, which I had to because I knew nothing else about it 502 00:23:24,840 --> 00:23:27,820 because it came from prison. So that's called localization. I'm going to show you a little bit 503 00:23:27,840 --> 00:23:31,700 of local telemetry. Push the button, flash the hook, enter the code, and it will actually speak 504 00:23:31,700 --> 00:23:41,960 to you in text to speech. Kind of cool. All right, boss, is that a little better? Is that a 505 00:23:41,960 --> 00:23:53,540 little better? No, is that worse? Okay. Give them what? Oh. I just wanted to show some 506 00:23:53,540 --> 00:23:57,000 skin. Okay. No, no, no. If you got it, we're good, right? 507 00:23:57,000 --> 00:24:02,780 So basically, local telemetry is the way to go if you know what the options are once you're in 508 00:24:02,780 --> 00:24:09,560 there. And if you have physical access to it, not that I would ever condone hooking into a pay 509 00:24:09,560 --> 00:24:14,900 phone that you don't actually own, but it's kind of shady to be opening up pay phones in a 510 00:24:14,900 --> 00:24:20,260 casino or an airport or someplace. They might get a little dodgy about that. So this is kind of 511 00:24:20,260 --> 00:24:24,380 dubious and you don't really want to do that. Okay. For the purpose of this example, in order to 512 00:24:24,380 --> 00:24:26,420 reverse engineer the protocol, I did at that point actually need to have a pay phone with me. But, 513 00:24:26,440 --> 00:24:26,980 actually, need to have a pay phone with me. Okay. So, you don't want to have a pay phone with me. 514 00:24:26,980 --> 00:24:31,760 the software. So we were able to get it. And what's cool is often times telephone sysadmins 515 00:24:31,760 --> 00:24:36,820 like many other sysadmins, no disrespect to the sysadmins here, tend to be lazy. And 516 00:24:36,820 --> 00:24:41,000 everything in this entire world is on default for the most part. So Elkatel's the default 517 00:24:41,000 --> 00:24:48,060 phone ID, think of that as the username, is four nines. Cool. Okay. The actual password is 518 00:24:48,060 --> 00:24:52,680 typically eight nines. And then there's a secondary password if you want to do remote 519 00:24:53,180 --> 00:24:58,440 telemetry, which again we'll talk about later. It's eight eights. So this is all in the CD. 520 00:24:59,900 --> 00:25:04,180 Once you're able to connect, the rest is actually pretty damn easy. But I don't think you guys 521 00:25:04,180 --> 00:25:08,580 are here this morning to hear me talk about how to use 15‑year‑old software. It's kind of 522 00:25:08,580 --> 00:25:16,100 irrelevant. So what I needed to do at this point was some hacks, right? So the Elkatel engineers, 523 00:25:16,360 --> 00:25:21,120 as it turns around, were actually not complete idiots. There were a lot of really cool 524 00:25:21,120 --> 00:25:22,120 anti‑fraud mechanisms. 525 00:25:22,680 --> 00:25:26,240 Secondary dial tone detection, where if you call an 800 number and you wait for them to hang 526 00:25:26,240 --> 00:25:30,700 up, the polarity of the line doesn't reverse. So what happens is you get dropped into an actual 527 00:25:30,700 --> 00:25:34,740 secondary dial tone without ever having to put any coins in there. That was a really popular 528 00:25:34,740 --> 00:25:39,640 trick for a while. So they figured that out and they stopped that. And then they decided, 529 00:25:39,780 --> 00:25:44,640 what the fuck, red box detection. Even though you can't red box these phones, if you try, it's 530 00:25:44,640 --> 00:25:50,020 going to send an alarm to the central office. And if they were feeling not lazy, then maybe 531 00:25:50,020 --> 00:25:51,820 they'd send a guy over there. Probably not. 532 00:25:51,820 --> 00:25:56,200 But what is relevant is that there actually are chassis alarms. There's little contact closures 533 00:25:56,200 --> 00:26:01,980 inside the phone. So if you open it, it's going to send an alarm. So if there's some, like, 534 00:26:02,000 --> 00:26:07,120 grizzled old guy somewhere in a cave that's actually still running these things, and I assume 535 00:26:07,120 --> 00:26:10,580 that they're probably somewhere, he's going to get an alarm. And if he feels like it, he's 536 00:26:10,580 --> 00:26:14,340 probably going to check it out. And there is a modicum of brute force protection for the 537 00:26:14,340 --> 00:26:21,740 credentials, right? So how do we do this? We need a harness to fuzz the phone. And in order to do 538 00:26:21,820 --> 00:26:26,620 that, in order to analyze the protocol, right? So I'm like, all right, well, I've got a SIP 539 00:26:26,620 --> 00:26:33,740 adapter. Every tool has the ability, even Wireshark has the ability to capture SIP packets, merge 540 00:26:33,740 --> 00:26:38,700 them together, and you have call audio. Cool. I'm sure I could turn the call audio into ones or 541 00:26:38,700 --> 00:26:45,620 zeros, right? So it turns out frequency shift key demodulation is actually pretty fucking hard. At 542 00:26:45,620 --> 00:26:50,420 least for mere mortals like me. If you can do that, I'd love to hear about it. Obviously, the law 543 00:26:50,420 --> 00:26:51,800 enforcement guys were able to do it. They were able to do it. They were able to do it. They were 544 00:26:51,820 --> 00:26:57,260 back in the 90s because a lot of people went down over this stuff. But I digress. Anyway, I 545 00:26:57,260 --> 00:27:01,300 couldn't pull that off. So I decided I needed it another way. And I was still going to have to 546 00:27:01,300 --> 00:27:06,120 black box reverse engineer the protocol. So somehow, if I was able to analyze the actual 547 00:27:06,120 --> 00:27:11,820 protocol itself, then I could do it myself. But how the fuck do you hook a USB modem? I mean, 548 00:27:11,840 --> 00:27:15,720 like, you might have been able to do it monitoring the PCI drivers, but this is a little bit 549 00:27:15,720 --> 00:27:21,580 different. So my employer at the time, AppSec Consulting, were awesome. They bought me 550 00:27:21,820 --> 00:27:26,700 a tool that I needed called Advanced Serial Port Monitor Pro. And basically, it treats USB modems 551 00:27:26,700 --> 00:27:31,980 like actual serial devices and lets you hook into them with spy mode or even think of it like 552 00:27:31,980 --> 00:27:37,600 Burp Intruder for RS232, other serial port based ideas. It's very cool. So in pass-through 553 00:27:37,600 --> 00:27:42,880 proxy mode, it's called spy mode. You can see some cool shit. So now we know a couple values, 554 00:27:43,060 --> 00:27:48,520 right? We know the default password. We know the telemetry password based on the manuals. So 555 00:27:48,520 --> 00:27:51,800 using the actual software that I got, I was able to perform a number of things. I was able to 556 00:27:51,820 --> 00:27:56,940 find a known set of functions and then compare the hexadecimal output of that to what it was 557 00:27:56,940 --> 00:28:02,700 correlating to with PNM, which for me was actually kind of sweet. But anyway, I was able to figure 558 00:28:02,700 --> 00:28:06,660 out how some of it worked. A lot of it is still black magic, even to me to this day. But the 559 00:28:06,660 --> 00:28:09,760 fact of the matter is I know the important shit, at least for now, which is authentication. 560 00:28:10,360 --> 00:28:14,480 Don't expect to be doing any sort of crazy cool buffer overflows and injecting your own shell 561 00:28:14,480 --> 00:28:18,940 code because these things, I think they have like 64K, which might be big enough for 562 00:28:18,940 --> 00:28:21,580 an interpreter, but what are you going to run it on? It's not an operating system. 563 00:28:22,340 --> 00:28:29,340 So typically speaking, if you're hacking these in the field, the ‑‑ this little guy right 564 00:28:29,340 --> 00:28:32,500 here under the hook flash, that's usually where the phone number is and usually though that 565 00:28:32,500 --> 00:28:36,940 doesn't work, that's for the guy that services these to understand what the phone code is and 566 00:28:36,940 --> 00:28:42,480 it's often the last four digits of the phone number. And the passwords, again, are almost 567 00:28:42,480 --> 00:28:46,960 never changed from the default if they even bother to change the user name. So basically here's 568 00:28:46,960 --> 00:28:51,160 PNM Plus running in the background and you can see behind that is advanced serial port monitor 569 00:28:51,820 --> 00:28:56,480 system. All of the yellow is shit that we're sending. All of the red is the hardware and all 570 00:28:56,480 --> 00:29:00,500 of the white stuff is actually what the phone is sending back and you can see that I got awesome 571 00:29:00,500 --> 00:29:06,820 speeds at 1200 bits per second. 1200 baud. Okay. You can probably yell characters faster than 572 00:29:06,820 --> 00:29:15,120 that now. So I was going to do a demo, but given our shortage on time, basically the demo was me 573 00:29:15,120 --> 00:29:19,120 dialing into this shit and you seeing what the protocol looked like. So I'm just going to spare 574 00:29:19,120 --> 00:29:21,800 you some time. And basically this is kind of what it looks like. So I'm just going to spare you some 575 00:29:21,820 --> 00:29:24,400 time. And basically this is kind of what it looks like. So the ATDT is the haze command dial 576 00:29:24,400 --> 00:29:29,780 string. In this case I had it set up for seven ones. And then beyond that it sends a start and 577 00:29:29,780 --> 00:29:36,040 then a quick user ID. In this case it's 09090909, which also for some reason correlates to 578 00:29:36,040 --> 00:29:40,600 hexadecimal tab and then an in transmission. And the phone goes, bangerang, acknowledgment, 579 00:29:40,700 --> 00:29:43,840 you're there. What do you want to do now? And then you say, well, actually I'd kind of like to 580 00:29:43,840 --> 00:29:48,160 send you my password since that's what usually comes after user names. Kind of crazy, I know. 581 00:29:48,680 --> 00:29:51,800 So it sends this other code, 029003. We don't want to send you my password. We want to send you 582 00:29:51,820 --> 00:29:54,820 my password. We don't really care necessarily exactly why they implemented it at this point. 583 00:29:54,880 --> 00:29:59,580 What we care about is this next block of code. And I'm sorry, I'm sure it's too hard to read. The 584 00:29:59,580 --> 00:30:03,860 important line is at the very end of that is what it looks like when you actually send a valid 585 00:30:03,860 --> 00:30:09,760 password. There's a header. It's cancel, null, start eight times. It doesn't really matter 586 00:30:09,760 --> 00:30:14,180 necessarily. If they're using it for some proprietary means, we don't care. Then after that 587 00:30:14,180 --> 00:30:19,660 there's a time stamp. There's the minute. I wish I had a laser pointer. There's minute, hour, 588 00:30:19,840 --> 00:30:21,800 and acknowledgment checksum. Then day, month, and day after. And then after that there's the 589 00:30:21,800 --> 00:30:26,380 month, year, and another checksum. And then after that there comes the actual pin that we care 590 00:30:26,380 --> 00:30:31,960 about. And finally a last checksum. So as it turns out, other than the header, the pin is the 591 00:30:31,960 --> 00:30:36,060 only thing that matters. As long as you send those two and something for those values, you can 592 00:30:36,060 --> 00:30:41,060 actually start to interact with the phone. So it's not a direct hexadecimal to ASCII 593 00:30:41,060 --> 00:30:46,560 translation, which kind of threw me for a loop. This phone uses the extended hex table and it's 594 00:30:46,560 --> 00:30:51,780 using some sort of XOR that I'm way too tired to deal with right now. But what matters is 595 00:30:51,800 --> 00:30:56,900 basically I changed one character, I flipped one bit at the end, and what I found out was that the 596 00:30:56,900 --> 00:31:01,620 hexadecimal representation stayed the same. So it's a simple XOR. It's not any sort of like 597 00:31:01,620 --> 00:31:07,820 rotation or crazy crypto bullshit that I don't understand, thank God. So when you do it 598 00:31:07,820 --> 00:31:15,620 correctly, it sends an acknowledgment or hex 06. But when you fail, it sends a hex 15. Okay. True 599 00:31:15,620 --> 00:31:21,080 or false? Starting to sound like SQL injection. This is shit that I can relate to. Okay. Cool. The 600 00:31:21,080 --> 00:31:21,780 problem is, I'm not going to be able to do this. I'm going to be able to do this. I'm going to be 601 00:31:21,800 --> 00:31:26,240 able to do this. After three invalid log in attempts, it kicks your ass off. So brute forcing 602 00:31:26,240 --> 00:31:31,780 is kind of difficult if you have to keep dealing with this over and over again. Problem. Elkatel 603 00:31:31,780 --> 00:31:36,900 decided that the three attempts would be handled all in software. And they never thought that 604 00:31:36,900 --> 00:31:42,280 anybody would ever be able to look at the actual authentication handshake and protocol. So if we 605 00:31:42,280 --> 00:31:47,660 were able to write our own code, we were going to keep trying until we get the actual right pin 606 00:31:47,660 --> 00:31:51,780 code. Yes! Okay. Finally some hacks. We're going to do a little bit of a test. We're going to 607 00:31:51,780 --> 00:31:56,100 do a little more technical. You guys still with me? Not too tired? So basically, pseudo code. 608 00:31:58,500 --> 00:32:04,440 Nullify the pin. Send it. If it doesn't work, if it's not a 06, increment, send it again, repeat 609 00:32:04,440 --> 00:32:10,580 until you're awesome. Python's got a bad ass serial library for this. But I mentioned before 610 00:32:10,580 --> 00:32:16,060 that I'm not a programmer, kind of an idiot. So I had some help. And that's where my buddy 611 00:32:16,060 --> 00:32:21,760 generic comes in. And having smart friends is awesome. And God willing, the code will be up here. It might get me a lot of 612 00:32:21,760 --> 00:32:24,420 credit. So here's a little bit of a demo. So I think you guys will be able to see the GitHub site after the DEF CON hangover 613 00:32:24,420 --> 00:32:29,940 clears over. So if you guys can hang tight, this slide is on the CD. You should be able to get it 614 00:32:29,940 --> 00:32:36,340 later. Generic, you want to jump in and talk about the code real fast, or at least how it would 615 00:32:36,340 --> 00:32:43,660 work if, you know, it wasn't Vegas and we were trying way too hard to get this done on time? No? You 616 00:32:43,660 --> 00:32:49,360 want to skip it? All right. Case in point, check out the GitHub site. Shit will work. It's a very 617 00:32:49,360 --> 00:32:51,740 basic Python library that allows you to log in, write the code and then you're going to be able to get that all in the 618 00:32:51,760 --> 00:32:56,340 into these things, assuming you can find one, and because this library is pretty simple, 619 00:32:56,480 --> 00:33:00,000 it doesn't care about Windows, it doesn't care about Linux, what it cares about is Comports. 620 00:33:00,580 --> 00:33:08,140 So cool stuff. We have the user ID. Check. We have the PIN. Let's talk about profits. 621 00:33:09,020 --> 00:33:13,240 So here's where remote telemetry comes in. This is why you guys should care, even without 622 00:33:13,240 --> 00:33:19,000 the software, even without any of it, the manuals, et cetera. It's cool. So you'll 623 00:33:19,000 --> 00:33:23,680 know that this is a PNM specific type of pay phone. If you get the number, you call it and a 624 00:33:23,680 --> 00:33:27,780 modem picks up. The first thing that's going to happen is it's going to scream at you in modem 625 00:33:27,780 --> 00:33:33,480 sound for about 30 seconds. The key here is after that, after exactly 30 seconds, the handshake 626 00:33:33,480 --> 00:33:42,180 stops and then you have 10 seconds to enter in the password. Pound, 8888, 8888. And then it 627 00:33:42,180 --> 00:33:46,860 says, thank you, and we'll drop you into a voice menu. But it's kind of cryptic because all 628 00:33:46,860 --> 00:33:48,980 it's going to do is wait for you to enter in a three-digit password. And then it's going to 629 00:33:48,980 --> 00:33:53,120 type in a three-digit code and then it's either a yes or a no or it will read back whatever the 630 00:33:53,120 --> 00:33:58,020 string value that you're trying to input into this. So you can use DTMF and in this instance 631 00:33:58,020 --> 00:34:03,120 registers are springs basically in programming and options are binary bits that you flip. So 632 00:34:03,120 --> 00:34:08,920 the first ones you might actually care about are 421 through 434. These are the anti-fraud. Set 633 00:34:08,920 --> 00:34:14,680 those to no. We don't need that. And then these other registers, which I talked about below, 634 00:34:14,780 --> 00:34:18,960 333 through 326 and 414, 412. Remember those types of registers? They're the ones that 635 00:34:18,960 --> 00:34:21,640 are in the code. So if you want to disable those chassis alarms I talked about earlier, yeah, 636 00:34:21,760 --> 00:34:27,400 not that I would ever encourage that. But if you did want to disable those chassis alarms, this 637 00:34:27,400 --> 00:34:33,780 is how you would do it. You change these to zero. So some more cool shit. Phone number, you 638 00:34:33,780 --> 00:34:37,080 can change what the phone thinks the phone number is, although that doesn't really make a 639 00:34:37,080 --> 00:34:40,780 whole hell of a lot of difference unless you're trying to actually make money running and 640 00:34:40,780 --> 00:34:44,720 managing pay phones. The phone ID number, which we talked about earlier, that's the four-digit 641 00:34:44,720 --> 00:34:48,940 code. In this case it's 9999 by default. That's important. The phone ID number, which we talked 642 00:34:48,960 --> 00:34:52,780 about earlier, that's the actual password once you've logged in and you don't need the actual 643 00:34:52,780 --> 00:34:58,520 PNM plus password at this point. You need the bypass code, which is slightly different. Real 644 00:34:58,520 --> 00:35:03,240 quick, I forgot to put the slide in. We talked about how to brute force the actual user ID and 645 00:35:03,240 --> 00:35:08,500 password. Getting the telemetry password is a little bit different, but with some asterisk 646 00:35:08,500 --> 00:35:13,700 dial plan magic, you can actually brute force this PIN eventually. But if you think about it, 647 00:35:13,700 --> 00:35:17,020 that's two attempts a minute because you have to wait for the modem to stop screaming. You have 648 00:35:17,020 --> 00:35:18,940 to use the voice modem. Tell it not to use the voice modem. Tell it not to use the voice modem. 649 00:35:18,960 --> 00:35:22,940 Tell it not to respond to the modem. And then with asterisk, you've got to then start brute 650 00:35:22,940 --> 00:35:28,280 forcing. If you do it fast enough, you could probably do it in a couple weeks. That's the 651 00:35:28,280 --> 00:35:35,700 telemetry password. You can change that. You can disable the battery remotely. Why? But 652 00:35:35,700 --> 00:35:40,320 essentially what happens is you turn off the battery, phone no worky. I'm not sure that 653 00:35:40,320 --> 00:35:45,700 there's like an Ocean's 11 style use case for that, but it's interesting, right? And then 654 00:35:45,700 --> 00:35:48,940 there's the service desk number. So service desk is bad ass. It's a little bit of a 655 00:35:48,940 --> 00:35:53,600 mess. It's kind of like sudo or operator mode for the pay phone, right? Any time you've sworn, 656 00:35:53,740 --> 00:35:57,160 kicked and screamed because some asshole put gum in the coin return and you can't get your money 657 00:35:57,160 --> 00:36:03,000 back, usually you call them. It's like 611 or whatever. You can divert this. You can overwrite 658 00:36:03,000 --> 00:36:06,980 it. You can send it to your cell phone. So if you automate this and you own every pay phone in 659 00:36:06,980 --> 00:36:14,020 the Sarasota, Florida area or wherever and they're all running Elk Hotel, you can do some cool 660 00:36:14,020 --> 00:36:17,680 shit. You can give yourself free calls by applying credits without actually having to manipulate 661 00:36:17,680 --> 00:36:18,920 the rate tables. You can do some cool shit. You can give yourself free calls by applying credits 662 00:36:18,940 --> 00:36:21,340 without actually having to manipulate the rate tables. You can issue refunds. You can force 663 00:36:21,340 --> 00:36:27,840 numbers, force it to dial numbers for free. What's also interesting is when you put coins in a 664 00:36:27,840 --> 00:36:33,020 pay phone, it won't drop straight into the vault. What's going to happen is it's going to go 665 00:36:33,020 --> 00:36:37,700 down the hopper and it's going to chill out there in escrow for a little while. Escrow is a 666 00:36:37,700 --> 00:36:46,820 pre-configurable amount, up to $5. So if you want to get super rich, $5 at a time, this is the 667 00:36:46,820 --> 00:36:48,720 way, right? Okay. So. 668 00:36:49,220 --> 00:36:55,680 Whatever. $5. That's less than a fucking McDonald's meal. But anyway. So that's the idea. 669 00:36:55,820 --> 00:37:01,480 You put the coins in the hopper. You can call your cell phone, press a DTMF button on your phone 670 00:37:01,480 --> 00:37:06,520 and you get $5. You would make more money collecting aluminum cans, I'm pretty sure. But 671 00:37:06,520 --> 00:37:12,580 it's kind of neat, right? And that demo is not going to work because it's DEF CON, it's VOIP and 672 00:37:12,580 --> 00:37:16,860 that shit crashed and burned. But I will try to do some other cool shit using a soft phone. I 673 00:37:16,860 --> 00:37:18,920 promise you it does work on the phone. So bear with me. 674 00:37:18,940 --> 00:37:23,700 Okay. So. Cool. We've owned the phone, right? We've zeroed out the rate tables. We've got the 675 00:37:23,700 --> 00:37:29,840 software. We wrote some sweet tools to harness it. Well, fucking now what, right? Okay. Well, if 676 00:37:29,840 --> 00:37:35,880 you're feeling like getting retro, there's Project MF. Fiber optic. You in here, buddy? Yeah, 677 00:37:35,900 --> 00:37:40,020 he's probably sleeping enough, too. Anyway. Fiber optic is here. If you track him down, shake 678 00:37:40,020 --> 00:37:45,620 his hand. The dude is legendary in the 90s and still to this day. Very cool. He, at Hope 5, I 679 00:37:45,620 --> 00:37:48,920 believe it was, released a mod for Asterisk, the open source mod for Asterisk. It was a mod 680 00:37:48,940 --> 00:37:54,600 for voice PBX to actually fucking shovel in Blue Box capabilities back into an Asterisk voice 681 00:37:54,600 --> 00:37:58,940 PBX. So if you want to be old school, you can Blue Box your own pay phone even though that was 682 00:37:58,940 --> 00:38:02,740 never something that you could do with this. That was operator side. But that's out of scope 683 00:38:02,740 --> 00:38:08,440 for this. So, yeah. Project MF.org. It's still there. So check it out. And then there's red 684 00:38:08,440 --> 00:38:12,440 boxing. And this is more code that we couldn't fucking figure out because we were at the 685 00:38:12,440 --> 00:38:17,360 spider lab's party a little too late last night to get it to work. But basically, Asterisk has a 686 00:38:17,360 --> 00:38:18,920 concept of an EAGI. It's a spider lab. It's a spider lab. It's a spider lab. It's a spider lab. It's a 687 00:38:18,940 --> 00:38:22,960 scriptable language. You can use any sort of programming language to programmatically interact 688 00:38:22,960 --> 00:38:28,560 with Asterisk and various style plan functions, bash, Python, Ruby, whatever the hell you like to 689 00:38:28,560 --> 00:38:33,240 program it. And you can actually use it to interact with call audio. So this code will be up 690 00:38:33,240 --> 00:38:38,820 again after the hangover clears on the same website. But basically the idea is it records the 691 00:38:38,820 --> 00:38:43,960 audio using AGI. My 949 buddies know a couple things about socks. I don't know if you heard 692 00:38:43,960 --> 00:38:48,920 about that whole shattering Google recapture thing. Over and over and over and over and over and 693 00:38:48,920 --> 00:38:54,080 over again. There's some socks magic involved in that. So basically the idea is you record the 694 00:38:54,080 --> 00:39:04,220 wave. Here. Good thing I have this guy. You guys remember these? A lot of people won't. And 695 00:39:04,220 --> 00:39:15,680 since I mentioned blue boxes. Thank you. So the basic idea is you record the audio, you 696 00:39:15,680 --> 00:39:18,900 send it to the script. The script says, okay, low band pass filter. You're going to have a 697 00:39:18,920 --> 00:39:24,160 filter. There are or are not, there is or is not the presence of this frequency. And if it's 698 00:39:24,160 --> 00:39:29,280 above a certain threshold, bangerang, you've put in some money. And if it's beneath that, no, 699 00:39:29,400 --> 00:39:34,260 fuck you, try again. So the coin value is greater than or equal to 25 cents if you 700 00:39:34,260 --> 00:39:39,720 preprogram that. Awesome. You can now red box through Asterisk. So this code will be there 701 00:39:39,720 --> 00:39:47,980 soon. So that's cool. Novel, right? Whatever. But, you know, we're hackers. We're pen testers. At 702 00:39:47,980 --> 00:39:54,260 this point it's still just a novelty. How can we use this in super evil ways? I came up with a 703 00:39:54,260 --> 00:40:01,100 couple things with some help. So basically you take an unlocked Pap 2 ATA like this guy and a 704 00:40:01,100 --> 00:40:05,900 poem plug or something similar and an alpha wireless USB and you get what I call the pay 705 00:40:05,900 --> 00:40:10,980 pwn. Okay. So Asterisk, and I highly recommend if you're into phones at all, and I think you 706 00:40:10,980 --> 00:40:14,340 might be because you're in this room right now, check out Asterisk. It's got a lot of cool 707 00:40:14,340 --> 00:40:17,960 functionality, especially the system options. Because every time you go to the Asterisk, you'll 708 00:40:17,960 --> 00:40:21,760 see everything needs a way to pass shit to the operating system. But anyway, we're kind of 709 00:40:21,760 --> 00:40:27,720 going to use that. So the idea is to make macros, simple wrappers for the most common penetration 710 00:40:27,720 --> 00:40:32,680 testing tools. And using text to speak engines, there's Kepstra which is for pay in Linux. 711 00:40:32,880 --> 00:40:39,140 There's Festival which is free. Also pretty decent. You can use and make responses. And a very 712 00:40:39,140 --> 00:40:46,080 good friend of mine helped me write code. In his mirror. Are you in here? God damn. You think 713 00:40:46,080 --> 00:40:47,940 11 a.m. would have been late and I wouldn't have been able to do that. I'm sorry. I'm sorry. I'm 714 00:40:47,960 --> 00:40:53,480 not good enough. But I guess everybody had a good time. So again, the pay phones themselves are 715 00:40:53,480 --> 00:40:58,860 having some issues right now. So what I want to do is send this shit over. Don't read my 716 00:40:58,860 --> 00:41:17,940 e-mail. So dear God, please work. All right. Please. I'm sorry. I'm sorry. I'm sorry. 717 00:41:19,600 --> 00:41:23,500 I'm sorry. I did not drink enough booze for the demo gods apparently. I swear to God I really 718 00:41:23,500 --> 00:41:31,700 did practice this. Oh, I don't have internets. Awesome. That's not going to work. 719 00:41:35,560 --> 00:41:41,080 Distrusting. You're in my laptop hacking my stuff. Ten minutes. I'm going to haul a 720 00:41:41,080 --> 00:41:47,940 you guys. You can find me after this and I will show you Nmap by 4. Alright guys. Thank you. 721 00:41:47,960 --> 00:41:54,040 phone, it is actually quite bad ass. But the idea is you actually enter in an IP address using 722 00:41:54,040 --> 00:42:01,880 touch tone, 1, 2, 7, star, 0, star, 0, star, 1, pound, and it says please stand by, owning 723 00:42:01,880 --> 00:42:08,260 shit. And then it will actually use NMAP parser, parse the XML output and then read it back to 724 00:42:08,260 --> 00:42:13,000 you. Okay, cool. I can run fucking NMAP from the phone. That's baller by itself. So that's 725 00:42:13,000 --> 00:42:17,720 Inasmir's code and it's really sweet. But the idea is you can really apply this logic to 726 00:42:17,720 --> 00:42:23,300 anything right now. It's limited by your own imagination and skill. So what's really cool is 727 00:42:23,300 --> 00:42:27,880 PwnPlug actually has built in support for a slimmed down version of Asterisk. It's not made 728 00:42:27,880 --> 00:42:33,220 specifically for the PwnPlug but it uses the same arm prepackaged that exists on other things 729 00:42:33,220 --> 00:42:39,580 like OpenWRT, DDWRT, et cetera. So using an alpha to hook into a wireless network, initiate 730 00:42:39,580 --> 00:42:45,040 DTMF scans. You could hypothetically roll a pay phone up on a dolly to some place like, I 731 00:42:45,040 --> 00:42:47,700 don't know, a casino, something like that. And then you could use it to run your IP address. 732 00:42:47,700 --> 00:42:51,560 Something like that. Not that I'm recommending that. And you can actually use the touch tones 733 00:42:51,560 --> 00:42:56,200 to initiate scans and stuff. So that rig might look a little bit something like this. Duct tape 734 00:42:56,200 --> 00:43:00,660 it behind the actual pay phone and then roll that fucker in there. If you walk around after 735 00:43:00,660 --> 00:43:03,880 this talk, I hope you'll start looking for them because basically now they're just empty 736 00:43:03,880 --> 00:43:10,260 wooden shelves, which is cool. And basically, yeah, there are a lot easier ways to do this. 737 00:43:10,400 --> 00:43:15,180 You know, I get it. But what the hell? This is fun, right? And be honest with me, if you 738 00:43:15,180 --> 00:43:17,680 saw a pay phone, would you really expect it to be owning your network? I don't think so. 739 00:43:19,840 --> 00:43:28,200 Okay. So call interception. Dear God, please work. I swear to God it worked in the demo in 740 00:43:28,200 --> 00:43:35,400 the other room, right? I think that always goes away. All right, you guys. This is what's 741 00:43:35,400 --> 00:43:40,920 going to happen right now. And if any of you fuckers DDoS my demo right now, because I'm 742 00:43:40,920 --> 00:43:47,140 going to go off the fucking radar here, the reservoir, and I'm going to try and do this over 743 00:43:47,680 --> 00:43:53,780 this, okay? So first, before the knot kills me, I'm going to disconnect to the private speaker 744 00:43:53,780 --> 00:44:00,220 network. And anybody got a rogue access point they can turn on for me? Yeah, you can steal my 745 00:44:00,220 --> 00:44:06,180 shit. Just make sure it goes to the Internet. That's all I'm asking for. There's SIP 746 00:44:06,180 --> 00:44:10,820 credentials. And if you've never looked at SIP, it's basically HTTP. Seriously. Check it out 747 00:44:10,820 --> 00:44:17,660 sometimes. What up? I'm attempting the demo, guys, as it is right now. I'd really like to see 748 00:44:17,680 --> 00:44:27,360 it. I really do appreciate the option to tether, but that shouldn't happen. Come on. Whoever is 749 00:44:27,360 --> 00:44:30,500 running the rogue AP, could you just turn the power up just a little bit? You're not routing. 750 00:44:30,600 --> 00:44:41,940 That was the only thing I asked for. Hey, Corey, can I use your iPad? Why don't you call? It's 751 00:44:41,940 --> 00:44:47,660 your iPad? Oh. I don't remember that password, dude. It's been a while. It's been a while. 752 00:44:48,520 --> 00:44:53,540 I appreciate that. That's Corey and Monica, by the way. They're awesome. Game over, you lose. 753 00:44:53,640 --> 00:45:03,380 Sounds legit. All right. I know that feeling right now. Let me try the knock one more time. 754 00:45:05,540 --> 00:45:10,280 Basically the idea is this. Now that you own the pay phone, and if you're clever enough to be 755 00:45:10,280 --> 00:45:14,360 able to get an analog telephone adapter into the pay phone, now you can start to do some really 756 00:45:14,360 --> 00:45:17,660 cool shit. Call interception. So if you're a computer and you're looking for a way to do that, you're 757 00:45:17,680 --> 00:45:22,400 basically phone tapping. It's a cool idea if you can get it to work. I swear to God it works in 758 00:45:22,400 --> 00:45:32,180 the speaker room. Let's try this one more time. Okay. I think it's working. I'm going to call 759 00:45:32,180 --> 00:45:39,560 my cell phone. You can call me on this, but come on, do it at a reasonable hour. Right, really? 760 00:45:39,700 --> 00:45:45,600 Already? Fuck you, I'm not answering an unknown number. I don't care which one of you it is. 761 00:45:50,340 --> 00:45:55,680 The irony, of course, is that when I call myself, it's going to be an unknown number. Let's try it 762 00:45:55,680 --> 00:46:00,100 one more time. Pro tip. If you're going to do stuff messing around with asterisk and various 763 00:46:00,100 --> 00:46:05,760 voice over IP protocols, I highly recommend IAX2 over SIP. It's much lighter, it plays much 764 00:46:05,760 --> 00:46:10,360 nicer with NAT, and there's only one port you have to actually open as opposed to 10. So, yeah, 765 00:46:10,400 --> 00:46:16,820 I'm almost done. Thanks, boss. One last time. If not, find me afterwards and I'll make it work 766 00:46:16,820 --> 00:46:17,260 for you. 767 00:46:17,680 --> 00:46:23,300 Okay. So the idea is roll the pay phone into the casino and wait for people magic? I wish. In 768 00:46:23,300 --> 00:46:30,900 summary, so using this information, we can actually use remote telemetry to own a local pay 769 00:46:30,900 --> 00:46:35,820 phone. Did I miss that slide? That's kind of important. Okay, real fast. So the idea, you can 770 00:46:35,820 --> 00:46:39,460 call any Alcatel pay phone in the world, you wait for the motor to stop screaming at you, 771 00:46:39,540 --> 00:46:44,700 put it in the code, and it doesn't matter where you are. If you have a dial-up phone, you have a 772 00:46:44,700 --> 00:46:47,660 cell phone, you have a way to do this. You have the registry and the code, you know it. That's 773 00:46:47,680 --> 00:46:51,540 manual I pay too much goddamn money for, I'll send it to you later, then you can actually 774 00:46:51,540 --> 00:46:56,060 theoretically own any of these pay phones. So what's the use case for this, right? Okay. 775 00:46:56,180 --> 00:46:59,760 So number one, we learned methodology about how to reverse black box shit. If I can do 776 00:46:59,760 --> 00:47:03,420 it, so can you. And that should be a takeaway from that. Number two, we learned that these 777 00:47:03,420 --> 00:47:08,460 things are still really possible and popular in prisons. So that's kind of cool, right? 778 00:47:08,580 --> 00:47:13,560 If you're a shot caller in prison, number one, being able to make free phone calls is 779 00:47:13,560 --> 00:47:16,880 worth at least a couple cartons of cigarettes as long as you don't think about how they 780 00:47:16,880 --> 00:47:22,060 actually got into the prison one at a time. Okay? The other thing is, if you're running 781 00:47:22,060 --> 00:47:26,880 a gang inside prison, you know, you've got the race wars or whatever else. The ability to 782 00:47:26,880 --> 00:47:31,840 intercept the calls and divert the calls of your enemies in prison is actually a pretty 783 00:47:31,840 --> 00:47:36,300 interesting use case. I made this relevant. It took me a while to figure that out, but 784 00:47:36,300 --> 00:47:40,180 seriously, okay? But the other thing to take away from this is that even though pay phones 785 00:47:40,180 --> 00:47:44,420 are 20 years old and they're sort of low to technology, there's a lot of old shit out 786 00:47:44,420 --> 00:47:46,860 there. I was a pen tester, I still see IBM, I still see the iPhone, I still see the iPhone 787 00:47:46,860 --> 00:47:53,320 is the new hotness right now. So if you want to do that shit, there you go. And with the 788 00:47:53,320 --> 00:47:57,800 pay phone and the asterisk system command dial through possibility, you can basically do 789 00:47:57,800 --> 00:48:03,280 whatever you want with these things. Not to get a little sentimental and cheesy, but I don't 790 00:48:03,280 --> 00:48:07,060 want these things to go away because they were so important, especially if you're like me and 791 00:48:07,060 --> 00:48:12,040 you like the wire because they use pay phones all the time and I wanted to be that guy. So 792 00:48:12,040 --> 00:48:16,320 here's some more information. Hack Canada did a zine a really long time ago that talked 793 00:48:16,320 --> 00:48:21,640 about these in brief. The pay phones dot 50 megs dot com actually has some pretty cool 794 00:48:21,640 --> 00:48:29,280 documentation. You can get the end map script from Ben Jackson off of his site. This is again 795 00:48:29,280 --> 00:48:34,360 on the CD. The GitHub site will have the code and if you really want to, you can give those 796 00:48:34,360 --> 00:48:38,020 thieving bastards at pay phone dot com some money or you can just go to Fry's and hack 797 00:48:38,020 --> 00:48:42,720 together a 6 volt lead acid battery. Okay. Questions? I think we're running pretty low on 798 00:48:42,720 --> 00:48:46,300 time. All right. Well, if you have any questions, feel free to put them in the chat box. 799 00:48:46,320 --> 00:48:49,740 If you think of something later and you want to buy me a drink, that works. So a bunch of 800 00:48:49,740 --> 00:48:54,280 people I want to thank. Def Con, thank you. Tiffany, generic here, who gave me the damn pay 801 00:48:54,280 --> 00:49:00,360 phone. Doc Hoof with the fucking awesome title image. My boys at DC949. Innis Meir, Black 802 00:49:00,360 --> 00:49:04,920 Ratchet, rest in peace. DeBeef who couldn't make it. Strom Carlson, rest in peace. The 803 00:49:04,920 --> 00:49:10,740 Benrev.com boys, I love you guys. Old Tool Freak and most importantly you. Thank you so much 804 00:49:10,740 --> 00:49:11,380 for your time. 805 00:49:16,380 --> 00:49:19,460 Thank you. Find me later and we'll make the demos work, I promise.