So who we are, my name's Charlie, and I work for the FBI, but I'm just a contractor, I'm not a fed. And I run an open source project called Pack Protector, and I'm a anonymous speaker. I don't know, I don't even know who he is. So we happened to find this in the valet area this morning, and we couldn't resist. I guess we should have said that. Okay, so the doors are being locked from the outside, so you have to listen to this fucking sales pitch. Packer Protector is a security distribution for wireless routers. It's like IPCOP or Estaro or Untangle, but it runs on hardware like this. And if you stick around to the end, we'll be giving away a router. So 20 minutes, we'll be giving away a router. And so you can do, it runs free-racing. It runs WPA Enterprise, it runs Snort and inline queue mode, so you have an IPS. And it runs a transparent web proxy that's plugged into Clam AV, so you can do web antivirus. All on an $80 box. Oh, sorry about that, guys. All right, so what's the point of this? This is just for fun. The idea comes, there was years ago a thing called the Upside Downternet, about a guy who saw that people were stealing. He was stealing his internet access, so he set up a squid proxy and a URL rewrite script to flip all the images upside down. It's just for fun, so don't expect some sort of metamorphic shell code, that sort of thing. But your friends at home won't understand any of that leech shit, but if you can make boobs appear on CNN.com, they'll think you're a fucking black hat god. So this is the... This is the presentation you want to be at. Now to Anonymous. All right, so quick conceptual overview. You got your victim. We've got a proxy. We're using Squid. And basically, we're going to use the URL rewriting feature of Squid to play with the victim. So we'll do a quick little demo here. Someone give me a nice little URL. The URL or website you guys visit frequently. AOL.com. AOL. Jesus. It's supposed to take something good and make it lame, not take something lame and make it lame-less. Slash that. Slash that. We'll get to slash that later. All right. Are we using this one? I think we're on 8,500. Is this the set? It's good to go, yeah. All right. So AOL. It's horrible, but we'll go there. AOL.com. I haven't even been there in a while. Oh, snap. Oh, wait. Technical difficulties. Where's the sound, dude? Where's the sound? I don't have... All right. That's an improvement for AOL. Yeah. It's the improved AOL version 27. I'm sorry. All right. All right. Let's stop this as quick as we can. So now you're going to show the code, right? Yeah. So here's a quick view of the code. Can anyone in here actually read Perl? Because it's hard to read. But anyways, this is it. We take the URL and I see the regular expressions in there matching for YouTube and we pretty much give up Rick Roll for this. All right. All right. So... Demo number two. Demo number two. Which is... Oh, yeah. Okay. So what we're doing here is we're using IP tables to put in DNAT rules pre-routing to transparently change where the traffic is going. So let's see here. Let's see what we can do about it. All right. We're going to Google something. Can someone give me something to Google? Teletubbies. That is excellent. I know children like Teletubbies. Teletubbies. Is the spelling correct on Teletubbies? There's two B's in the Tubbies. Okay. This is important. Okay. Okay. All right. Okay. Hang on. Okay. What? Okay. So the interesting thing here is that it seems that this really gross phrase that keeps getting pinned onto our search query is overpowering whatever we search for. So I want to ask you guys, if you think you can come up with something, what's the phrase that will overpower the appended phrase to search for? What's that? Cephalopod. What, we got some freaking squid lovers in here? Okay. Cephalopod. You're going to have to help me here. You know what? Google knows better. Cephalophone. Did I mean? No. Okay. Cephalopod. Okay. So, yeah, I don't think we can do it. What's really popular right now? Michael Jackson? Wait, wait, wait. You searched for that. Aw, dude. It's not going to work. All right, all right. Okay, okay, okay. Hang on. I'm joking. Ah. Dude. No, you didn't. Oh, yeah, Michael Jackson did come up on that one, so that's pretty good. So, all right. We got one. All right, so, yeah, simple, simple manipulation here, so. Here's the code. Again, pretty simple. We have this regular expression on, like, one of the ‑‑ my laser pointer is broken. But you can see it in there if you look for the new URL line. So ‑‑ Okay. Go back to ‑‑ you've got one more. I've got one more. Okay. Okay. And this is the other setup that we have that's most similar to the upside down Turnet. Whereas here we have a local web server running on the box. And we use Squid to intercept it. And, for example, like, all the images, JPEGs, PNGs, and GIFs will basically download, you know, get those, download them locally, and use image magic to manipulate them. And then serve them up through our web server locally. But this is all transparent. And the next one is time machine. Yeah. All right. Okay. Time machine. Time machine is 8,000. Oh, man. Okay. What was I doing first? So you're going to talk about people being out and out and out and out. Okay. Yeah. So, we, a lot of our favorite people in the security industry have been attacked. But from our perspective, like, they're okay. Like, they don't ‑‑ like, I mean, their site never was down for us. Like, you just go back into time, and we have all their things archived. So you need to notice the dates on this. Yet another year, yet another DEF CON. This is from 2005. This is the time machine. Do you want me to explain the Web Archive deal here? When we get to the code? When you get to the code. Okay. So, yeah, this site was never down. Do we have another on time machine slash chat? Same thing. These guys are back up. All right. And let's show the code here. Okay. So here's the source for the time machine Perl script. And, again, I can't read this, but you guys can. So we're essentially redirecting to web.archive.org. So you pretty much can browse the web in the past. A little bit of a prank there. All right. And is that it? And that was the code, yeah. And that's the code. Back to non-anonymous. Non-anonymous. Non-anonymous. Non-anonymous. Okay. This is all him, by the way. The reason he's anonymous is because he didn't want to be associated with this train wreck. So give him hell. All right. So who knows who invented the Internet? Sort of. But so DARPA invented the Internet so that all Americans could have free pornography in their homes. And then along came education and e-commerce and social networking and polluted the whole pool of porn that was out there for all of us. So we're going to make things right again. All right. All right. All right. All right. All right. All right. All right. All right. All right. All right. Just kidding. Did I? Yeah, I did. You can put it down. Okay. So, if we went to one of these time-wasting sites. All right, now we have to wait. Okay. So, there. So, just to show that it works. Okay. So, somebody yell a sight. pbs.org. That may already be categorized pornography. It did work. Oh, pbs. Okay. And interestingly, we couldn't use Google here because of some lame shit they do. The hrefs that are on the results page aren't actually hrefs. There's JavaScript that overtakes those and sends you to a redirect page. So, the redirect pages aren't sufficiently pornographic to meet our standards. But Microsoft is playing along and gives us nice and pornographic direct links. Okay. So, if you want to see how this works now. So, Dan's Guardian is a great open source content filter. But what we want to do is essentially reverse the logic. So, at the bottom, it's as simple as just saying if the weighted phrase is greater than or less than. So, we just flip that around. And we had to make some, we had to make a little bit more changes so we can allow the style sheets and the JavaScript from the porn sites, which aren't explicit themselves. To come through. So, your porn is unaffected. But all the rest of the shit is filtered out. Okay. We have three left. Oh, shit. Yeah, hurry up. All right, hurry up. So, I can't explain this one because we're running behind. We weren't, we weren't anticipating this. Which one are we on? We were on this one. So, we're on two. All right. I can't explain this one. You'll see in a second. What's it going to be? Oh, yeah. This is taking a long time. So, talk amongst yourselves. Here's a subject. Why is my server so high? fucking slow. Think of some of your favorite security professionals. God damn it. How much time do you, what time is it? Two minutes. It'll load in two minutes. It'll load in two minutes. So we're going to take a detour and show you the code real quick because what's supposed to happen is there's George Carlin's seven dirty words and we download the image, whether it's a PNG or GIF or JPEG. We create another image that's the same size using a randomly selected dirty word. We layer them on top of each other and animate a GIF and we serve that back up. So he's still a motherfucker. We refresh it and he's still a motherfucker. So this one will take forever because DEF CON is polluted with images but you'll get the spice of life. So we're going to press on and we'll come back to DEF CON because oh yeah we're not that organized, sorry. So that was called the Tourette Net. Adding swears everywhere. Alright, so my minions in the audience are supposed to be helping me. So bear with them because I can tell he's not done. So here's the full menagerie of swear words on the DEF CON site. Okay. We're still missing one. Uninformed is another place to go. We should have done this first because it's much faster but you can see the menagerie of swears. Okay, so let me take that out. I know you're all enjoying that. I'm sorry. So the general idea is to get your ideas and implement, because there's a lot of stuff you can do, a lot of fun you can have. Get your ideas. We throw them up on this proxy, like in a modular, all modular-like, and you have a one-stop prank-o-matic so you can do all this stuff at any time because no one wants to really like, oh, I want to put on a prank. I'm going to code this proxy stuff. It's already done for you. Here it is. Yes, and in a minute, the site will be updated with the code that we just presented. Thank you. All right, so we don't have much time left, but we know you guys have better ideas than we do, and we want to give away the router, so yell out some ideas. Come on, motherfuckers. No ideas? Yes. The subtle fuck you. I like that. A random number in the phone directory? Ask if I have all the images. Ask if I have all the images. That's fucking sweet. Bandwidth would go out the roof. All right, I think we have a winner unless somebody has something better. Come on. For webmail, modify the posts. When they're uploading files, inject random stuff with a little keyword. Oh, dude. Have you guys seen, what's that thing, the Perl script, that like, transmutates the words to where it's still readable because our brain processes the words like a word at a time, right? There you go. You can do that. You win. Dial-up speeds. Well, you saw that already. My server's that fucking slow. That's pretty sweet. Random Gmail searches. Oh. It's just random. Randomly throw it out there. Let me see. Randomly throw it out there? Whoever catches the box will just, is it empty or is it in there? You have to download their bank account. That's it? Who was that? Who was that? I think... Hey, we can't recommend that. I think we have a winner. I'm sorry. We're running short on time. The, I think... Oh, yeah. So, who's the winner? The bank man? Yeah? The ASCII images? The bank man wins. All right. Props to the guy who came up with the upside-down internet. The DEF CON staff, they rock. Squid is awesome. And the entire open source community. And thank you all. Thanks, guys. Thanks, guys. Thanks, guys.