My name is Iris, we are DC949, and this is OCTF, 5 years and 50 minutes, you're all in the right place, yes, it's like gym class. And, 5 years ago, we invented and implemented a little game called, well, originally it was called Amateur Capture the Flag, and then it became Open Capture the Flag. And I guess we'll just have everybody stand up and say their names, or, you know, so we know who we're talking to. Adrian, Adam, CP, Jeff Ball, Frank Tu, A. Pratt, History. So, 5 years ago, me and... And this guy over here, the red head, Adam, we were walking around DEFCON, this was many moons ago, back when DEFCON was at the Alexis Park. And there wasn't a whole lot, right now there's many DEFCON contests, there's Mystery Box, there's, you know, contests and badges, and, you know, ninja party stuff you can take apart, and everybody else who has a party has a badge, and you can take stuff apart, and there's karaoke, and there's more contests than I can possibly even remember. But, it wasn't always that way. There was only maybe 3 or 4 contests, originally. So there wasn't a whole lot of structured activities for attendees to do. I mean, you know, you could walk around, you could, you know, get on the most hostile network on Earth and play around, which was cool, but like, that was it. You know, you could talk, which is not bad, but... Obviously, the cornerstone contest of, you know, DEFCON forever is CTF. And CTF is really cool, but it suffers from one real... nail, which is not everybody can play. Right? I mean, CTF is awesome, everybody would, you know, love to bash their brains up against some of the smartest guys out there on the net, but, you know, resources are limited. Not everybody can play their game. So, over half intoxicated banter one day, me and Adam had a conversation, and I kinda tossed the idea. I was like, yo, what if we made a game that was like CTF, but everybody could play? And he kinda looked at me and said, well what if we made a game that was like CTF, but everybody could play? That's really cool, I don't know anything about doing that. You wanna do that? And I was like, no. We should go find somebody to do it. So we spent a year looking for somebody else to host this contest that would be fun for us to play. It would be like CTF, but everybody could play, and it would be this giant room, and, you know, we'd all have crazy hacker good times. And nobody wanted to do it. Everybody said, oh, that sounds like a good idea, you should do it. So, our grand master plan was to apply for, you know, talk to the goons and be like, yo, we'll run this contest, and try to run this contest. And then we'd screw it up so badly that people would approach us and say, this is a really good idea, but you guys suck at it. And we'd be like, oh, well, please. Because we had so little faith in our own abilities. So we, you know, muscled up some Moxie and had our one little computer with no paint on it. And, like, I think it was like an aluminum or iron case or something heavy as hell. We tried to host it over Wi-Fi the first year. That was really smart. Uh. . So we set out to host this contest. And it had a million problems and was hardly ever up and had all kinds of, the finger of God was, like, flicking us off that day. It was not friendly. But the few people that came out to play had a lot of fun. And at the close of the contest, people walked up to us and said, wow, that was really cool. You guys had some serious problems. You should fix it. Oh. . That's not the response I wanted. But that's what we got. So, yeah, it started really fledging and then, you know, a few years later we were still doing it. And by the time we ended, you know, what we thought would be very simple, you know, originally amateur-esque services, you know, games turned into just these monster, monster challenges that would literally take years to create. I mean, Bio CTF 3, which is, I think, where we changed the name from amateur to open, the reason we changed the name is because other people would walk up to us and say, why do you guys call this amateur? This is not easy. I mean, not that I would claim to be some, like, super, you know, like, at-style programmer. But, I mean, you know, it was unique enough to where somebody else felt that we needed to change the name. So we did. So I guess the rest of the panel is over the years we've gotten a whole lot of really nasty complaints of stuff we did to people's computer. So I figure we'll just stand up and or we'll sit. Yeah. You guys want to sit. Make me stand. I see how it is. And just go over, I guess, some of the milestone services, some of the ones that were really popular, the ones that people, you know, remember. And then at any real time, if anybody's got anything they wanted to know or questions they've had over the years or is really upset about me blowing up their computer in year three, you know, it's a panel. So feel free to get involved and thank you. Thanks for interrupting. Stage ninja. Stage ninja. Yeah. It's just, you know, feel free to shoot your hands up there. And just get involved. Just real quick, guys. Anyone in here actually play in OpenCTF for the last five years? Oh, wow. So I was expecting no one. So my next anecdote is not going to work. So, yeah, we're going to cover some services. And then coming towards the end there, I think we're going to have a lot of time left. Ask questions. Maybe services you would like to understand how we did the back end or what things we did and why we did them. And probably a lot about happy dancing. Feel free to throw things at me. All right. One of the things that I liked running the contest was there was always a good range of services. So it didn't matter whether you were, you know, some guy off the street who, you know, didn't know a whole lot or whether you've been doing this for years and, you know, run your own pen testing company. You could come here, try and hack something and have fun. Some of the stuff that I did throughout the years have been crypto related. And some of it was simple, you know, talented into this and gives you an encoded text with some custom algorithm, anything from rotation to transposition, like all kinds of different stuff. And basically you had to solve that. And there weren't any hints. It was just here's a cipher text. Give me back the plain text. And one of the other challenges that we had was it had to get harder as the contest progressed. I mean, if people were just battling back and forth, you know, two people know how to solve it. They're just going to script it. And then, you know, the server is going to get DOSed. So what we had to do was we had to make the challenges get more difficult over time at, you know, a reasonable rate so that people would always be able to try and have fun. So the crypto was a whole lot of fun. We had some games like I did Hangman where basically you had to guess the, you know, those Hangman games. And there were some different, it was web-based. You could do some different injection attacks and stuff like that. Or you could just try and play Hangman and win. So, you know, however you want to attack it, by all means. What else did I do? Oh, one year we had a whole economy set up because the, one of the things we got from, I think it was year three, someone came up and was like, you know, I really like Hangman. I like your contest, but, and it's a great challenge, but it's not really like, you know, real life. I mean, this crypto stuff's cool and all, but, you know, I'm not going to, you know, come out in the wild and say, oh, look, I'm telling you to do something. It's giving me back a crypto, you know, it's just not going to happen. And all the, you know, real crypto is, you know, actually secure where you're not going to break it in a reasonable amount of time. So, like, I'm not going to give you that. It's more or less impossible. And if you do break it, you know, you're not going to, you know, release it here. At OCTF. So, you're probably going to do something else with it. So, what we did was we set up an entire economy. We had a bank. We had an ice cream shop. We had an auction. A whole bunch of stuff. And we had different flags, you know, hidden within. And, you know, basically all the websites you could hack or, you know, you could just try and manipulate the system to get what you want. More money, more credit, more stuff at the auction. We even auctioned off stuff like trash from the, you know, ice cream shop, which had hints on, you know, different things on how to score. What else do we have? Defconomy. And what's great about defconomy is just like the real economy, it kind of crashed and fell apart. Yeah. What else did I do? Notable. There was the drop down one. Oh, the letter drop. That one? Yeah, that one. I did a really interesting crypto one where normally you substitute one letter for another. Well, with this one, it wasn't that at all. You just rearranged the letters and you got your plain text. And that one, did anyone get that one? I think someone got it, but it was like everyone thought it was super hard. And it's like, all you have to do is rearrange the letters, guys. It's an anagram. It's not that tough. It was like 12 characters. Come on. So it was really interesting to see, you know, you do things like that that you think, oh, this is going to get, you know, smashed in the first 10 minutes. And, you know, to sit there for like three hours and like people know it's there. People are trying. And you walk around and like people are trying like things and you're like, okay, I don't know why they're trying that. But, you know, good luck. Anyway, it's been a lot of fun. I've learned a lot. I had good times with all the contestants. Pretty much know them all by name now. And we had a great run. And I'm going to go check out what the two boys are doing over there after I get done talking. Who's next? Next slide. Yeah, sure. What's that? So I only recently joined the 949 team. And, you know, when they say that anybody can just come up and help them out, they're not lying about that. My first DEF CON was DEF CON 16. And I saw OCTF. And I was like, this is really cool. And these are some cool guys. I'm going to go meet up with them. And then the very next year I was actually working on a service for OCTF. And it was a whole lot of fun to work with them. So I only had one service. But it was a big, massive service. Are any of you guys familiar with the text game Zork? Okay. Here's a few people. Good. So basically what mine was was Zork with a zero. You know, because hackers love numbers. And what it was was you were in the NIST facility to imprison hackers because, you know, you don't want to put them in a regular prison because they're going to get the crap eaten out of them or something like that. So you put them in a prison hosted by the NIST or MITRE or whoever you really want to call it. And the idea was there was some B-tard guard who loved you and hackers because hackers don't like you. And hackers are cool and he's just fucking retarded. So what he's going to do is he gives you some lockpicks to help you break out of the prison. And what you're going to do is all the guards are out at DEFCON right now because they love DEFCON, too. And there's only that one B-tard idiot there. So he helps you break out of prison. And the entire idea is for you to not necessarily break out of prison entirely but to go to the yard and deface the flag with your team name. So what this involved was basically... It was exactly like a text-based adventure. You would have to pick your way out of your cell, then navigate the text-based maze and try to figure out how to go from one level to the next. And every door had a lock of some kind that you had to perform some sort of binary manipulation on it. You had to find out how to perform an exploit on the door in some way or another. You had to get a key card and then a thumb drive so you could add an exploit onto your key card and then put it in the lock. And the lock would run the exploit and then you would get through the next level. And there was a final door which was basically kind of like a key gen in a way. Where it was basically a challenge response where you would have to download the lock and reverse engineer it and try to figure out the algorithm. So when it gave you a question, you would have to give it a response. So as the game progressed, it would get harder and harder and harder. The exploits would get a lot more difficult to perform or more difficult to figure out. Sometimes you would have to figure out where the address was going. What else was there? Yeah, the key generator got more and more obfuscated with every time. And how many of you guys play pen and paper games like D20 games? If the DM told you explicitly to go somewhere and really, really, really told you to go somewhere, would you follow them? Why would you follow them? That's so gullible. So here's what happened. Before you get to the end of the game. You go to the library which has a lot of key components. The descriptions of the rooms tell you, hey, by the way, you might want to go to the locker room. There's a lot of I actually got compliments on the writing of it at least. And that was basically how Zork went. That was just a whole lot of fun to write. Who's next? So I think these guys kind of understate the wacky antics that contestants do during the game. That was seriously like 80% of the fun every year that we ran it. It was just seeing the hairball schemes people would pull in the middle of the game. Like Adam was over there talking about defconomy and how, oh, yeah, it was funny because it crashed. What was really funny is after a while when people couldn't figure out a way to beat it, you know, to modify money, they'd just get up, walk around the room, start walking up to people's laptops. And if it was open to their banking website, they'd just go, change. And then people would argue with us about it cheating. Not my fault. Oh, man, all kinds of crazy. We had a mistake one year. We, in all classic fashion, left the login to a box as root root, which is embarrassing for multiple reasons. A, because, well, you know, we left the box as root root. Secondly, because nobody found it for like an hour, which is just sad. And then when somebody did find it, they didn't patch the box up, so somebody else took it from them. And then, you know, we... We finally figured out what we did and we reset the computer and, you know, had it all back. But they decided they would be crafty, so when they gave us the box back, since we didn't want to reset it, they left a nice little cron job that would look for every... It would look for the string that we tagged all of our flags with in every file on the computer and change it to their team name. The problem is their cron job didn't check to see which type of files it was modifying, so at some point it started going through, like, libraries in the computer. You know, like, glibc and just screwing crap up. So about 20 minutes into them scoring, the box just dies and they start screaming at us, what did you do? And we're like, it's not my fault, you're a bad admin. I didn't do it. Anyway, as long as this is to talk about my own service, because my favorite services are stuff everybody else wrote, because they're really cool. One of my fun little gems that I wrote was called Global Thermonuclear War. I hope at least one of you have read it. At least one person in this room has seen War Games and guessed the joke. Thank you. So Global Thermonuclear War was this web page that you would go visit, and there would be a little password field, and there would be a button, and the button would say, you know, download unlocker, because that's not ominous at all. So you download this unlocker, and there was a binary in it, and obviously it was full of horrible, nasty, acid, venom things that were designed to do horrible things to your computer. And I hoped people would run this in VM, because at one level, you know, it did bad things. Okay, so what this binary was, it was a three-card Monty. You'd run it, and you'd see three options. And you could, you know, play chess. You could play tic-tac-toe. Or you could play Global Thermonuclear War. If you played tic-tac-toe, I actually wrote a really crappy terminal version of tic-tac-toe that you could play and win. And eventually, if you did win, it would display a ROT 13 encoded message at the bottom of the screen that would mutate every three times that you ran it. And if you decoded all of them and put them together in a giant string, it would just tell you, this is a red herring, why are you looking here? And a lot of people spent time on that. I really don't know why they did. It's ROT 13. It's not hard. And some people actually decoded it and then thought there was something else in it, instead of looking at it for hours. I didn't know I could program that good. Apparently I can hide things in plain text. The chess game was just literally a link to a Windows chess game that people downloaded and eventually people rooted that site and did all kinds of horrible things to that company. I don't even know who it was. I just picked it at random. It was the first link on Google when I looked it up. Chess? So, sorry for them. And if you hit Global Thermonuclear War, it would show you another three options. And those three options would say, okay, you're playing Global Thermonuclear War. Which set of cities would you like to attack first? And I actually took the orders from the movie, so Seattle was in there. And you could decide if you were going to be the Russians or the Americans. And you'd pick one. And each of these was the game itself. There were three options. One option would echo the correct password to slashdevnull, which is about as close as you were going to get to having it give you the answer. And the other two options would initiate malware payload. One of the malware payloads would overwrite, overwrite the first 512 bytes of every device attached to your computer with a really nasty bootloader that would just say in giant ASCII art letters and like a giant middle finger, the only winning move is not to play. And if you modified that firmware, then you got another firmware because it detected the fact that the binary was modified and it just said har har and, you know, kind of laughed at you. And the other payload would restart your computer. So you have this binary and you run it. And if you're not S tracing it, it just exits if you get it right. So what are you going to do? You're going to run it again. So you were very, very likely to try to run it against both horrible payloads and it would hurt your machine. And I hoped people would run it in the VM and most people did. And I know at least one kid didn't because it was his first DEF CON and I had this conversation with this 16-year-old kid who was crying in a corner because his box was nuked. And I tried to explain to him that, you know, it's only the first 512 bytes of your hard drive, man. You could just restore it. And he was like, but I just formatted it because I thought it was screwed. So I'm a horrible person. And again with the wacky antics. So the coolest thing about that service, I think, was how the guys who beat it ended up beating it. We had two teams from Korea that year. VAND and DDUG, right? Yeah. So the binary, the way that it was created was the only obfuscation in it is the key was a really stupid series of times tables. And rather than try to out binary foo people and start trying to reverse it. I think I packed it, too. I did something stupid. Every time that you downloaded it, it was dynamically compiled. I actually had a web script that would look through the source code of the file, change the statically encoded key in the C source, compile it just for you, and then send it to you. So every time that you looked at it, it was totally different. The key was totally random. There wasn't a way to read the algorithm out of the binary because it didn't exist. So the guys who ended up just really reaming the hell out of that service figured this out. And they wrote a Python interpreter to read and unpack the binary and suck the key out of memory when it would run and then dynamically score the game every minute, which is just fucking awesome. I asked them for the script. They still haven't sent it to me. So, yeah, if you guys see this, I want that script. It's pretty cool. Yeah, that was one of my favorites. Do you want to hand me that one? Yeah. All right. I'm going to do happy dance last, guys, because I'm probably going to get some stuff thrown at me. Awesome service. Let's see. Quota. Quota. That's the one I'm trying to think of. Which one was quota? Movie slides. Oh, movie quotes. All right, cool. So people who played last year. Yeah. All right. Do you guys remember the one with the animated GIFs? Yeah. Oh, I love you, too. So this was kind of an interesting service, and I always pride myself when writing open CTO services to just kind of go completely out the window with it and just go for something crazy. This time around, it was animated GIFs from movies. Oh, that's not a big deal, right? So you go to a web page. You see an animated GIF from a random scene of a random movie, and there's a text box. I don't remember what it said. But read my lips. And that was it. If you were able to insert the text dialogue of that scene in the movie, you would score. So let's say you see Neo watching Morpheus jump across the buildings, and he's, whoa. If you were to respond with, whoa, you would score. And literally what it was is I wrote a series of M player scripts and M encoded. I wrote M encoder scripts that would take entire movie files, convert them to raw because of the frame-seeking behavior. So I filled up my terabyte drive in an hour. I'm like, holy shit. Movies convert to raw. Then I would take these subtitle SRT files, which I had a Python script parse out all the time stamps from the SRT file, and then M encode those few seconds from each video. So I ended up with something like 30,000 animated GIFs. So if anyone wants the entire movie, like The Matrix or Gone with the Wind or Passion of the Christ in animated GIF format, I have that. And it was pretty fun. Yeah, I know. So there was this random Russian Alice in Wonderland animated cartoon. And I heard about this, and I couldn't find it anywhere. And I searched and searched and searched the intertubes to find this thing because I figured this would be fantastic. No one's ever going to find this. And I finally find it in a hole-in-the-wall forum, and it was posted on RapidShare. So I download off RapidShare. I check it out. It is bizarre. It's just creepy. And it's got subtitles. So now that I have this file, I proceeded to contact RapidShare as a copyright holder and had them take it down. So maybe it existed somewhere else, but probably not over the two days of DEF CON. And Quota was a lot of fun. I hope you guys had fun with that. I guess one of the things you had to do to beat that would be to... I mean, did anyone actually script a response? Or did you just watch the movie and, like, pull out the subtitle file and go, I think he said this. No, no one actually scripted? Awesome. I figured the best way to do it in a scripted fashion would be to do some sort of frame-seeking behavior and look at the different frames of the GIF and then seek through the video file and look for the same frames. But I don't fucking know how to do that. So... ToastCR? Yeah. ToastCR. Which one was that? OCR? All right. Did anyone play two years ago when there was, like, the custom alphabet written in div tags? I don't know how to describe it better than that. Give me a break here. Oh, yeah. So you go to a page, and you see a word or a sentence, and I think it got longer with time, and it basically was a custom alphabet that I wrote in JavaScript with Ajax. So I could draw on my screen and create an entire alphabet and then print it back to you. It was basically an OCR challenge. But the characters had, well, different sizes and backwards and Quake logo for the queue, a few other weird things. But what's great about it was the best way to do this logically would be to look at the source code and, you know, figure out what the characters are, where they're coming from. The problem is the alphabets are drawn onto the screen using floating div tags in a random order. God bless you. So this, I mean, I suppose you could extrapolate the points and write something that would put it all together and figure it out, but, again, I don't know how to do that. Great of death. So, I mean, to even get to the source code, if you tried to look at the source code, it used a series of client-side obfuscations, techniques that I developed for a previous talk on hacking with Firefox and using Firefox as a scraping platform. It was, it had Flash, Flash one-time padding, Flash encryption, which just hooked into the, what's that called, JavaScript? No, the hook function. No. JavaScripts. And, yeah, I mean, that one was all right. Enjoyed it. Do I have to do them all at once? Spread them out a little bit, guys? So did anybody play, like, three years ago, who played an audio service called Banshee? Anybody remember that? Anybody listen to the wacky, like, portal sound? Yeah. So nobody got it. One, the person who came closest... No? Oh, right. Somebody did. Somebody did get it. No one solved Cake Radio. They got Banshee, I think. But... I don't remember. I don't think anybody solved it. So, so, Banshee was an internet... Well, okay, it was a WAV file. You download this WAV file, and it was the, you know, portal song. But it dumped all of your shit. It was cool. And it was really static-y. And if you listened to it, the static would only appear at certain intervals in the song. It would be constant throughout the song, but the intervals between each tick in the static were deliberate. Because the static was an MP3 file in the WAV file. And if you took all of the data of all of the static out of the file, which you should have been able to do, because the distances between the ticks were the same. It was at exactly 44,001 kilohertz. So every one, it would count. And it was this big binary blob, and the first chunk of it was an MP3 file, and the second chunk of it was the first half of a one-time pad. The second half of that one-time pad was read to you by a computer in that MP3 file. So you'd have to listen to it and type it. This was supposed to be really simple at first, because it only used four characters. The idea was you'd be able to type these four characters and sort them together and have the answer. And every time that somebody scored, the code that created the WAV file would recalculate everything that I just explained. So the idea is that the message would get longer. So the longest message that it would ever use is the Microsoft SAM voice reading the entire hacker's manifesto backwards. And you'd have to type all that, and then it would compute. But I don't think anybody ever got it. So if anybody's curious as to how it worked, that's how it worked. Can you get the pictures up? Can we get the laptop on the screen here? Put CB's laptop on? Hello? There we go. Thanks. All right. From the service I did, it was really simple looking. You just get the red dot to the green dot. Put in left, right, up, or down. Not hard at the beginning. You get 40 seconds to do a 10 by 10 maze. So really simple. Then it progressively got harder. You see there, that's level 50 out of 300. You just, right now, it would start out black and white. Then it goes to, the colors are off by, like, one red, green, blue value. So you're not doing it by hand. And then you also got, like, 40 at the beginning and down to 10 seconds at the end. And so after that, I figured, too easy. So I started to draw some lines and circles on it. And then people might, you know, be looking at the difference in the walls and the background color. So then I started drawing alpha transparent rectangles on it. Because, really, I didn't want it to be easy, so. And then I also started changing file formats in case that made a difference. Some people were telling me they just threw out any JPEGs and kept refreshing. So we kind of tried to combine them all. Who knows? And then, eventually, it got too easy, even after all the rectangles. So I figured, I'll just take a seventh of the pixels and just throw them out. Just started drawing different colors all over the place. I actually, there were two teams that scripted it up pretty nicely, although they know that I bumped the level up to 300 at the end, and neither of them could score. So I was kind of sad about that. I would like to see the source of the bots if anybody's got it. Who's next? I enjoyed writing several services for HostETF over the years. Let's see, they were in no order. Almost FTPed. HDDVD, BVDB. HDDVD, BVDB. Why do you say that slow enough? Just saying. It's so much funnier if I say it quickly. It's even more funny if CP says it. He does it so much better than I can. I believe the challenge name was HDDVD, BVDBD. Yes, exactly. And just the joy that I would feel in my heart hearing CP say that inspired me to write this service. So what this service was was there was this daemon that would just kind of output a video file, and the poor recipient of the video file would have to figure out what in the heck is in there. They'd have to, you know, break it down, see what text or clues is in there to get the input necessary to change the flag and score. Originally, I just was making all these videos by hand. But after speaking to CP one night when I was almost done, he said, you know, that kind of stinks. You should probably make it so that it, you know, gets a little harder every time automatically. Otherwise, we're going to run out of levels and people will be sad. And then I was pretty tired and wanted to stop working on this that night. So I was kind of giving him some flack about that. But I called Adam that night to get a second opinion, and he said, yeah, that kind of stinks. You should probably take care of that. So at that point, I pretty much rewrote the whole thing so that it would take a video, convert it, compress it, render text onto each frame, and then output that and get a little harder each time. It would do all these weird transitions like it would do kind of Rubik's Cube-style filters on the videos and change various aspects about it. It was fun to do, though, because it was really educational. In those several hours that it got rewritten in, I had to learn, let's see here, how to write a program in Perl that would render text onto a custom video format and how to mess it up Rubik's Cube-style and all sorts of jazz like that. Then the night before, maybe it was two nights before, I think it was the night before we actually left California for DEF CON, I realized the hard way that the banner command, which is what I was using to render text onto these videos, is apparently not the same banner command all the time. There's apparently a BSD banner and there's a GNU banner. The one I based the program on was BSD banner in Slackware, and the contest was running on DBM. which had the GNU banner command. So there was more education there. Let's see here, I wrote a chat program as I think part of the ice cream shop clue delivery kind of strategy. It would give you some good clues and some misinformation as well. Half of the chat and banter that was in there came from Adam and I just being in a Yahoo chat one night, just some hacker chat room. So we'd just pull out random quotes, change the names to protect the innocent, and enhance some of the more boring quotes to make them interesting. A lot of them didn't even need to be modified. There's one quote to this day I still can't understand. Now correct me if I'm wrong, wasn't it... What? He was looking at me. Yeah, I'm looking at him. You get out of the way. Wasn't it... A forklift will shift it goo? They had the most ridiculous things that, yeah, they didn't make any sense at all. It was great. And that was just fun because apparently you can make a chat program or chat server in, I don't know, like four lines of bash? I didn't know that. By the way, we're going to release a bunch of our stuff so that you can actually see his videos as opposed to just hearing a description of them. And you get to play with all the other stuff, like stuff that nukes your boot sector and stuff CP made. I had a back door in my chat program which didn't really go very far because of the previous years where we were messing with everyone and they kind of knew if you download code from us, you should probably take some precautions before you run it. That sounds like a great lead-in to happiness. So, yeah. Adrian? I helped out with a service last year that was IRC-based. Merlin wrote most of it, so he deserves most of the credit, but he's not here right now, so I'm going to do the best I can. We had a couple IRC services, and we tried to encourage people to hang out in IRC with us, and we were going to give them hints about how to score and what to do. But as it turns out, a lot of people had their own custom IRC clients, and even a couple of teams that were doing really well in the contest couldn't stay in our IRC channel because they trusted the server too much. And we ended up crashing a couple of computers by just catting a 10 megabyte ASCII art of Longcat. And this actually brought down a couple of computers, I believe, from the Facebook guys. So... We found that pretty amusing. I think BigPimpAtThuggalots was one of the few teams that actually managed to stay in our server for most of the time without getting disconnected. And they scored most of our... I think they scored most of the IRC points. I can't even remember what most of the flags were and how they worked. That's all. Who's next? All right. Does anyone remember HappyDance? Okay. HappyDance was probably the best service I ever wrote. It took me eight months total because I didn't really know anything about Firefox development. And it was... It was two-faced. You would go to a web page, and you present it. It was presented with... What was that movie? I don't know. Boondock Saints? No. There was an animated GIF of... Not yet. Not yet? No. That was after you got it. Then no. You could put it in the login. Anyway, I don't remember. You go to the web page, get a login. You try and attempt to log in, and it tells you you're missing something. And just under the text that says you're missing something is a link to addons.mozilla.org, which we're spoofing locally. So you go there, and because it looks like addons.mozilla.org, Firefox implicitly trusts it. And it takes one little click for you to install the Happy Dance authentication extension, which authenticates you to Happy Dance authentication portals. And I was really kind of surprised how many people did this. I think it was just about everyone playing the contest. And they install it, restart Firefox. Firefox comes back on, and you're like, Well, I got that link after I went to this service. I'm going to go back to this service. I'm going to log in again. Well, this time, you fail the login, and you get told why. You're like, your password's wrong. You have no access. But something's different. And you go back. What's the most basic thing I can do to a login form? SQL injection. So use the typical textbook example of SQL injection. And there you go. You scored. You own the flag. You're scoring OpenCTF now. Shit, that was easy. Why was that so easy? Well, because as soon as you installed the extension, and restarted Firefox, it would send a plain text AJAX call back to a local server with all the stored passwords in the Firefox password manager. Keyword plain text, which means it was on the whole game, and nobody said anything. All you had to do was sniff and wonder why your passwords were leaving your box. And nobody did this, including you feds who got raped. I'm only a dog. I only know things like sit and food and rape. So yeah, the AJAX call would go out, send all your passwords to our local server in plain text. And the return data would be arbitrary commands that would execute on the system. At first, it didn't really do anything. You know, give them a few hours. So every time a new window opens, every time Firefox starts, it does this. So the traffic increases like 20% with plain text passwords going back and forth. And after a while, I'm kind of, you know, so I feel we're at a hacker con. We're playing in a hacking contest. These are hackers. They're not going to be dumb. They're not going to have stored passwords in Firefox. They're not going to log in from work boxes that, you know, have stored credentials that they use for work on major, you know, Fortune 1000 company websites like, oh, I don't know, Cisco or Sun or Oracle or sites with product licenses or universal gateways like 1.1.1. on their corporate networks. And it was a lot of fun because it was so fucking easy. Like, oh, you scored. Yeah, you scored. You win. And no one really looked at the source code because they, well, kind of freaking couldn't. It was obfuscated out to about 47 pages if you were to print it out of size 2 text because I did this whole custom obfuscation in Python and a bunch of other stuff that was all in math, like, cosine and sine waves, and it just decoded to actual text. And no one actually solved it. In fact, I believe one or two teams tried to decode it manually by hand. And I think they got pretty far after the first day. I think one person did get it by the end because all you really had to do was wrap the whole thing in a document.write and it vows out and will print out the original source code. Someone goes, hey, CB, you got the source code of the Firefox extension? I knew this was going to happen, so I reached down and... There you go. Handed them the standard source code. It was a stack of printed out source code. It was a lot of fun. I was like, you're an asshole. I don't have it on me. But one of the things Happy Dance did, like I said, was the arbitrary command execution. This was great because I could tell it to send another password back to me or send up an alert box. And every now and then I'd be like, all right, I'm going to make it say, CP is thirsty. And every now and then someone would bring me a drink. Like, what the hell was that about? I'm like, oh, you must be compromised. And one guy's like, hey, how'd you do that? I'm like, well, I don't know. You tell me. And after a while we made it so every time you scored, it would remove the JavaScript limitation from your browser so there's no script escape. We'd load up Goetze, or Meatspin rather, and then we'd freeze your browser. So every time you scored, yeah, you got points, but now you've got to restart your browser, which brings me back to the point where, by the way, it sends your password back and checks for more commands to run. Well, and that was a lot of fun. So one of the command trips, five minutes. Five minutes. All right, one of the command tricks I was doing was I'd send it new location data so the browser would just go jump around the screen. All right, that's pretty funny, big deal. But the greatest part, the greatest one, was sending the restart command to Firefox. See the gears turning? Firefox turns on, sends passwords, checks for command to run, runs command. Oh, restart. Restarts Firefox, sends the password, checks for command. Oh, restart. So you see Firefox popping in and out, popping in and out, popping in and out. Again, plain text. Nobody saw it. So, I mean, you know, dozens of times a second, you know, 300 people have their laptops turning on and off, or the Firefox turning on and off and on and off and on and off. And there's this kid, I still remember this because I feel kind of bad about it, but he's sitting here on his Windows XP box with his head in his hands, just not able to do anything because Firefox is popping in and out. He uninstalls Firefox. He reinstalls Firefox. It's still there because he didn't delete his profile. Additionally, the extension removed itself from the installed add-ons list, so you couldn't uninstall it unless you were in safe mode. Five minutes, we're done? Uh, Q&A. Quick, I think we'll be outside if anyone wants to do a Q&A. There's like a room over there. There's like a room in the that way, general direction. Yeah, I'm heading there after that. So thank you guys so much. We had a lot of fun doing OpenCTF for the last five years. It was an amazing learning experience, an amazing teaching experience, and a very exhausting experience. So check out the new guys. Word to the wise, those of you who ever intend on running a contest at DEF CON, take the amount of time you think it's going to take you to make it, and then triple it. You might get close. By the way, real quick, check out the new OCTF. LivinDead and his crew, the two warriors, have taken it over now, and I expect really good things from them. Thank you guys.