So a little bit about Josh here. Hi guys, I'm Josh. I work with Dave. I'm a security analyst there. I do just about anything technical, including watching Dave modify my slides. Because Dave is a big Perl fan. He loves Perl. And he programs solely in Perl. I do Python, so I mean, I'm not as good as him. He's being sarcastic. So the people giving me thumbs up, it's sarcasm. I do not like Perl. Dude, you should see all the things he's got out there in CPAM. So next slide. So I have heavy experience in penetration testing and all that good stuff. Wrote the social engineer toolkit. So really, how many people use it? We've got two people. We've got two. It's good. That's all I wanted. So I've got a heavy military background. Deployed to Iraq a couple times and yada yada. Before we start, I want to say a special thanks to Iron Geek and Kathy Peters. Kathy, are you in here? I guess not. Thank you. So let's do a little brief intro into PowerShell. Is anybody here familiar with PowerShell? Know what PowerShell is? Use PowerShell on a regular basis. That's great. So... Wow, that was a lot of people. It was a lot of people. So it's installed by default on Windows 7 and Server 2008. On Windows 7, you cannot uninstall. So it's basically embedded into the OS at this point. PowerShell basically is a fully flexible... You know, you don't have to worry about it. Unix, Linux type programming environment or bash environment. And it actually integrates completely into the .NET programming language. Which we'll be seeing a lot of that today. So if you haven't seen it, it's really exciting. That's what it looks like. Can you guys tell that's blue? Just so you know, that's blue. It's 2010 and we're still using the same command prompt from Windows 98. They upgraded. They put a PS in front of it. It says PS in front of it. So yeah, that is better. And it's blue. The blue is kind of nice. You can make it transparent, too. Hey, when you maximize, though, it still goes... Doesn't expand. Yeah. I think they would fix that by now. So PowerShell for hackers... You need to learn how to spell. Yeah. So we'll be getting... We'll be the first ones to admit that PowerShell is absolutely a benefit to the IT. As well as us as security professionals, right? You'll see a lot of demos here as proof of concept codes. As well as... If you go to my site at the end of this talk, secmaniac.com, you can download all the proof of concept codes and new Metasploit modules and all that other good stuff. But I'll say is for us from a security standpoint, we generally didn't have this type of programming language at the command line. The ability to completely interface with the .NET framework and do whatever we want from an automation perspective is really sexy to us. And you'll be seeing a little bit of a couple demonstrations as we go with that. Yeah, before we had to rely on like VBS scripts and batch files and stuff like that. CSE. Yeah, not a lot of power in those. But this definitely takes the cake. So... Execution policies. Want to talk a little about that? Yeah, the execution policies are there. It's kind of a security benefit, kind of. Not really. Microsoft will even admit now that it's not really there for security. But you have restricted, which pretty much restricts all execution of PowerShell scripts on the system. You can still execute PowerShell and run your commands within the environment. But you can't execute the actual PS1. So you have... All sign requires all scripts to be signed before they can be executed. The other one's remote sign. So anything you download from the internet, it creates an alternative data stream. And it will let PowerShell know that it's been downloaded from the internet. And if it's not been signed, it will not execute. But you can still execute your own scripts that you've written. And then unrestricted is unrestricted. You can execute any PowerShell script that you want. So it's unrestricted? That's what I heard. Okay. Sorry, I was confused. I couldn't tell. So release of Metasploit Module 1. I don't know if you guys remember, but in FastTrack, what we used with doing SQL injection, or through specifically MS SQL, or you find like a weak SA account or something like that, what we're doing is we're taking a binary, converting it to hexadecimal, and then using the XPCommandShellStore procedure to write that hexadecimal representation of the binary to the underlying operating system. Try saying that three times fast. Did anyone here actually use FastTrack and use that part? Oh, wow. Okay, that's good. Okay, this is so new. This is all new to you guys. Awesome. Great. So we just did this. That stuff never existed. Yeah. This is all new. Right. Thanks, buddy. I spent like four months on that. Anyways. Not with me, then. So when it gets set to the underlying operating system as hex, we used to call Windows Debug to convert it back to a binary for us. Now, there's a slight little problem. You had the 64K restrictions that Windows Debug has. So if you're a binary. If your binary was larger than 64K, Debug would kink out and wouldn't allow you to do it. So what we ended up doing, or the team that I was with at the time, basically wrote a small stager that just reads in hex and spits out binary. So we basically got around the Debug 64K restriction. Now the problem is, shortly after that talk, they removed Debug from all 64-bit systems. So the traditional method for payload delivery was no longer existent. So we're releasing a new Metasploit module called the PowerShell Debug. It allows you to do the exact same thing all through PowerShell. And one thing I'd like to say with this, and we'll talk a little bit more about this in a few minutes, but these type of attacks, the PowerShell attacks, like Metasploit modules that we'll be showing, the bypass, the reverse and bind shell, or none of these are getting hit by AV or hips. So it's a completely new attack vector that no one's really looking at. And you can basically get anything you want through the system, which is kind of nice. Oops. So quick demo. You guys probably can't see that, huh? So I'll do a little narrative here for a second. We're just doing a quick scan of a host. Nothing spectacular. We find that 1433 is open. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . blank. So now we're going to load up our new MS SQL payload that will be put into the Metasploit repositories here virtually. I talked to HD working on it. And basically we're going to go ahead and attack. Now what we're going to do next is there's new options added to this specific payload. So instead of using the debug version, it will allow you to use the PowerShell version. So you just use PowerShell, set it to true. You turn off the old one and hit exploit. Now this is all going to take an executable, convert it to hex, put it on the learning operating system, bypass execution restriction policies, which we'll talk about in a second. And then we'll actually execute the payload on the system and we get an interpreter shell. That looked easy. So just a real quick recap. Binary is converted to hex and placed into the file system. Convert script is created to take the hex and place it into the file system. Hexadecimal and rewrite back as a byte array is binary. Payload is now on the system for execution. So execution restriction policies, you know, they're not, they shouldn't be relied upon for any type of protection whatsoever. They're really not designed for that. If you look at the sites and people talking about it, a lot of people do talk about it as a preventative measure for, you know, not allowing scripts to execute or not allowing to get specific code on the system itself. It's really not designed for that and it's very easy to bypass. So we're going to talk about that. Execution restriction policies really do not help from a post exploitation perspective. Period. So the create command release will be releasing the tool. It's also on secmaniac.com. Basically the contents of the file are concatenated, compressed and converted to a base 64 string. The bootstrap created when we use specific calls, encoded command and command to basically invoke expressions for, use the invoke expression for execution restrictions. So we're going to talk a little bit more about that. But this is a demo demo demo of executing our payload on the system. So basically what this essentially allows you to do is take any PowerShell script you want to, execute it, bypass all of the execution restriction policies, and allow you to run whatever you want to on the system itself. So with the most restrictive policy set on PowerShell, we can still execute whatever we want. Again, this really is not a security prevention method. No need to disable execution restriction policies like registry interaction, reboots, etc., etc. We can just do it on the fly. So here's a quick demo. In this scenario, I'm actually going to be on the local system itself just to show you as a representation. So here we just created a macro to basically set the execution restriction policy to unrestricted. And we're going to create a file. So we'll show you in the next slide, we wrote a tool called PowerDump. And basically it will dump the SAM database purely through PowerShell. So in this example, we're going to actually use the PowerDump to get around the execution restriction policy through our new command, create command. And so what it does is it actually sets out a bat file for you. A nice little bat file. You just double click the bat file, loads everything into PowerShell for you and you just call your function. So we're creating a service right here as a system so we can dump the SAM database. We're running a system right here. And we're going to go ahead and execute that specific bat file. Okay. It loads everything into PowerShell for us and all I have to do is type dump hashes and we have the hash values bypassing execution restriction policies. So what's really nice. Go ahead. All right. So what's really nice since we have full access to PowerShell and .NET libraries, we can do pretty much anything we want. Releasing today is a proof of concept of a reverse bind and a regular bind. Of a command shell just as a proof of concept to see if we could really utilize the .NET libraries to do some post exploitation stuff. One thing about that is it's purely coded in PowerShell. So I mean it's a bind and reverse completely coded in PowerShell. We're actually looking at adding that to the MSF payload libraries as well as a few others doing an interpreter through PowerShell, a lot of other great things. And this was also written in PowerShell version one. So this is compatible with both version one and version two that you see on all the newer operating systems. Okay. So a real quick demo of the new Metasploit module, PowerDump. We have to give a big shout out to Kathy Peters on this one because she's the one that coded most of this. I did a lot of research, but she was the one that actually was able to get it done in time. So if you look here, we're running a fully patched server 2008 R2 64-bit platform. All you do is specifically call the PowerDump executable. Or the. Add on. And it will go ahead and dump the hash values for us. Done. All in PowerShell. Who thought you could do that with PowerShell? So yeah. Interpreter based module will dump the SAM database purely through PowerShell. Again you can download it from our site if you want it immediately. And it's broken up into two parts. So you have the Metasploit module, zip file, and then you have the PowerShell based examples. So all the proof of concept code for PowerDump without having it in, Interpreter is also there as well. So anything that you want to go through and modify or add, go for it. So PowerDump is an Interpreter based module, will dump the SAM database through PowerShell. It works on all operating systems. Both x86 and 64-bit. Obviously anything that has PowerShell installed on it. Which in Service Pack 3 it's an optional update. In Windows Vista it's an optional update. But Windows 7 and Server 2008 it's 100% installed by default. Another interesting component with PowerShell is there already is full integration into Exchange 2010 as well as any new Microsoft product that comes out. So PowerShell will be 100% integrated into pretty much every aspect of the Microsoft product line. Which will definitely be beneficial for us as we're going through and performing penetration tests and doing different things. I mean you're talking about a whole new vector of data. You're talking about a whole new set of tools and different ways of attacking systems that we generally didn't have before. So one of the tools I write is the Social Engineer Toolkit and it's very applicable to what we're going to do here because I have here a Tensy device. And we'll talk about that in a second. For those of you that don't know the Social Engineer Toolkit, it's a tool for social engineering. That's about it. So it's a tool for engineering. No creative name there. Yeah. It's also called Set. For some reason I had this fascination with Arnold Palmer for the past like six months. Every time my wife goes to the store, she buys the whole store out. So I have like gallons and gallons and gallons of Arnold Palmer. And I tell you, every time I drink Arnold Palmer, I crank out like 10,000 lines of code. So I really recommend if you're a hacker and you code, Arnold Palmer will basically make you, will let you present at DEF CON. Yeah, trade out your Mountain Dew, trade out your Dr. Pepper, get Arnold Palmer. Are you tired of getting rejected? You know, are you tired of getting your submissions rejected? Drink Arnold Palmer and you'll be speaking at DEF CON. Look at me. I'm here. You don't drink Arnold Palmer. I know. Tastes nasty. Oh, dude. Get off stage. Get off. Let's go. Dude, I almost broke my hand trying to get into your trunk because the Arnold Palmer was falling onto me. Yeah. So Walgreens around the corner is actually sold out of Arnold Palmer. I was coming back with like three bags, you know, my arms are like extremely sore right now. It's going good. But they're all gone. So the basics are set. It's open source. It's purely programmed in Python. Python. I'm working on a Pearl version of it. What is that, the archaic 1970s programming language toolkit? Sorry, Pearl guys. I really apologize. That was harsh. I think Jabra. Hey to you now. Yeah. Most likely. So it has integration of Metasploit for both the exploit repository, client side attacks, and the payloads. Multiple attack vectors specifically designed for Solstice engineering. For good, not bad. It's got a lot of stuff. And you can see the demo here that are specifically rated to PowerShell, actually one that's not. But that will definitely help you as you're doing penetration tests or you're trying to hack your mom's computer or whatever you guys do in your spare time. It's up to you legally. So the USB hit attack vector, really cool. Have you guys seen the Tenzi devices? The Adreno Tenzi devices? Did anyone see Adrian's talk yesterday? Did a phenomenal job. We've been working with Adrian and he's got some really cool stuff he's doing. So what we decided to do was take one of these Tenzi devices and do a power shell based payload on it that will compromise the system. So basically you insert this USB device into any computer you want to and you can actually make a multi-platform so it doesn't have to be power shell it can be Linux OS X or Windows or whatever or the Hannah Montana Linux distribution. Any of those will work. And that's my primary operating system. It's for my wife. I'm just kidding guys. It's awesome. It is awesome. The music plays and it's great. But basically when you plug it in, it gets recognized as a keyboard. So that means all that good stuff is pretty much out the window, right? It emulates exactly what you're going to do from a keyboard perspective. So as soon as you plug it in, I simulate keystrokes so it doesn't have like 140 to 280 characters per second. It's actually more than that, isn't it? Yeah, it's a lot more than that. Yeah. Sorry. Thanks. And basically it will execute a payload on the system. Basically we're only restricted by how fast the buffer is on the program. Did they code that in Perl? No. They didn't code that in Perl. I was just checking. At least on a Windows system. I was just checking. I mean, you never know. So you can drop a payload on a system either through power shell or W script are the two main methods. Automatic creation of the attack factor through sets. That's the big thing. That's what I wanted to show set today. It will actually create the attack factor for you, create the PDE device which you can load into Adreno and copy it over and you'll see an example of that. And it will compromise the computer for you. So how easy does it get? We're going to load up backtrack 4, right? Everybody uses backtrack 4? Yep. Come on. Wow, that's not a lot of people. It's Sunday. I'm not. Hannah Montana party was yesterday. I'm not sure. I'm not sure. I'm not sure. I'm not sure. So we're going to go ahead and load up set. You know, again, codename Arnold Palmer. I already got the version 0.7 which is going to be awesome. Pretty funny. I try to come up with different ones every time. What we're going to do is we're going to do number 6, which is the 10Z USB hit attack factor. As soon as you select that, it's going to say what attack factor do you want to use. Do you want to use a purely power shell based reverse shell? Do you want to do a W script HTB MSF payload? Or do you want to do a power shell HTB get MSF payload? In this example, we're going to do a W script HTB get MSF payload. In this example, I'll use power shell. Second, I want to show you the W script one because it has more of a presentation experience. Looks better. So it's going to ask if you want to create a payload. Yep, absolutely. Type in my IP address. And then here we get options to use metasploit. So we're going to hit the default, which is the interpreter. And then we're going to backdoor the executable. So with an MSF encode and MSF payload, you can take a legitimate executable and shove the interpreter on the bottom of it so it has been executed. So you can get better AV detection. What I found was when you're actually executing payloads on the client side, if it has any type of command interface to it, it's going to pop up a black window to the user. So obviously you don't want that when you're doing a social engineering attack. And it's probably going to be kind of suspicious. Well, at least if you're using Hanna Montana OS, it's probably not. But basically what ends up happening, what I ended up doing was I took a version of calc and I just modified it so it was basically broken. But the execution flow within assembly still works perfectly and everything like that. But nothing pops up. So I had that in mind. So I took a version of calc and I just modified that built into set. And what ends up happening is when you back throw the executable, puts the interpreter stuff on the bottom of it, when the payload executes, the user is not presented with anything at all, which is great. We use the default port 443. And we're going to start up our little listener here. And if you look, it says it was able to create the PDE file under report slash tenzi.PDE. So what we're going to do is we're going to copy that to our OSX machine. So we're going to go to our OSX machine. All right. Oops. All right. So we have our tenzi.PDE device here. Now, there's two things to take special note of. There's the Adreno based application, which is basically the developer ID for programming and Adreno based devices. So the small chip, the microprocessor type devices. That's what you do all your programming in. On the left hand side, this is the tenzi loader. So this is what actually uploads your bad stuff to this device here. So all we're going to do is just simply drag this over. And we have all of our code automatically generated for us with our IP address. That sets up the web server for you, the listener, everything else for you. And then you insert your USB device and you upload it. And you can see it's been reboots and we're all set. Now we have our malicious USB fuck device. There you go. So we're going to take this and run a server 2008 fully patch all the good stuff, right? We're all set. Droid. And? demo gods. There it goes. We have interpreter. So let's just back this up real quick and do the exact same attack factor all through PowerShell. It's not as cool looking but a lot more efficient. If you're going after a system and what's cool about these, you look and you can see it's kind of hard to tell but there's dip switches on here. Thanks again, Adrian. The dip switches allow you to program different payloads per dip switch that's flipped. So if you want to do, you know, you're coming up to a server 2008 machine, you insert it, hit dip switch 2, targets PowerShell based systems. Hit dip switch 3, targets OSX. Hit dip switch 4, pops up a message box saying ha ha, you know, whatever you got. You know, so basically you can program it to do whatever you want to, use any dip switch you want to, have multiple payloads. It's all great. So we're a little upset again. We'll go to the 10Z USB hit attack factor, the PowerShell. We're going to create a payload. We're going to type in our IP address. We're going to do all the defaults. And it's under reports 10Z slash PDE. So we're going to go ahead and copy this over again. Easy. Sometimes it doesn't take. Hang on one second. Sorry about that. All right. So I'm just copying the file. I'm going to file back over again. It didn't overwrite the other one for some reason. All right. Good. We got our PowerShell payload. We're going to go ahead and upload this cat. And these PDE files are completely customizable. You know, there's actually on the website, there's multiple different types of. One second here. There's actually multiple different types of attacks you can use with this. This is just an example. example. All right. So it will go ahead and reboot. All right. We're good. So again, in PowerShell, my hands are off. Actually, I can't type that fast anyway. I don't know. You can move pretty fast. There it goes. That is all you needed. So it actually executed the PowerShell script and it's executing our payload. Next, we've got Meterpreter. . That was cool. That was pretty cool. I was impressed it worked. Glad these demos are working. So integrating into existing hardware. Josh, why don't you talk about this a little bit? All right. So we did this as a practical joke to one of the guys in the office. He went away for a week and was getting a new computer, so we wanted to mess with him really good. What I did was took part of the back of the keyboard, soldered just this little bit of a USB cable to the keyboard, and then plugged it into the back of it. It's a Dell keyboard. It's got USB hub built into it. And then plugged the Tensy right into it. Screwed it all back together. No one could tell any difference about it. So plugged it into his docking station. He came back to work the next day. And all of a sudden, his mouse started moving on him. Now, I had programmed the Tensy to just move the mouse a little bit and click. So every 30 seconds. So it gets better. It gets much better. Yeah, yeah. So okay. So day one goes by. He's sitting there typing Word documents, constantly messing them up, getting frustrated. It's just, he's having a horrible day. And I had to go out of the office. So as this is going, you know, I know what's going on because I'm sitting there cracking up. As he started putting this back together, I'm sitting there like laughing my butt off. Yeah, we were, this was a test run to see if we could do this to someone else higher up in the office. Right, yeah. So we're not doing that. We didn't do that, though. Oh, this, we found out this was way too damaging. This is not, yeah. Not good. So anyways, before you get into that. So I leave the office for like three days. Yeah, yeah, yeah. So I leave the office. So figuring if it got out of hand, they'd probably stop doing it, right? Yeah. So, all right. So we know he's getting a new computer. So he gets his new computer. He thinks all the problems are going to go away with this. And lo and behold, he keeps the same docking station, same keyboard, same mouse. And boom, the problems start up again. He's like, what the hell is going on? This is a Windows 7 box. It should be working perfectly. You know, he's doing all sorts of stuff. And he's just getting so frustrated. He's just, so he's like, okay, fine. It's got to be the mouse. Changes out his mouse. Comes back, plugs it in. Boom, starts up again. He's like, he's frustrated. So it's, okay, so logical troubleshooting. It's got to be the docking station. Changes out the docking station. Does it again. He's getting so frustrated that he's got a new keyboard on the way. He's also started to put in a request for a new computer. So I get at the office and this guy is literally, you know, pulling his hair out. And he's like, I just ordered another computer. I can't figure out. I'm like, all right, wait a minute. Thankfully, Dave pulls him into the office before he starts to switch out his keyboard. And I'm able to grab my keyboard that has a 10C device in it so he doesn't throw that away. Because I don't want to lose that. Yeah, so we actually didn't tell him because he was really upset. So, you know, so I pulled the, hey, man, I got to talk to you about that stuff you're doing over there. Why don't you come over to my office for a little bit? And, you know, did the whole swap the keyboard. And, you know, you're sitting there and you're like, man, I really only wish this was like a 10-second conversation. But then it goes on for like 30 minutes. But it worked and he never knew the difference. So magically it started fixing it. Yeah. So, you know, he's like, yeah, so magically it started fixing it. Wait, these aren't recorded, are they? I didn't say any names. Well, I mean, he's going to know exactly what happened when, you know. Yeah, that keyboard's sitting on my desk still. Oh, crap. Well, the funny part about it was one of the other guys that's in the audience right now was listening in and he knew what was going on. And he had to listen to this other guy who we were playing joke on complain about it. And he didn't even have the heart to tell him either. So. Well, you know, I figured I was going to figure, you know, as this dude's sitting there spending like half his day trying to fix his keyboard and stuff, you know. And he goes over to Ryan. He's right there. Why don't you raise your hand, Ryan. You can stand up. Actually, why don't you stand up. I wasn't going to call him out. Stand up. Yeah, Ryan. Ryan Elkins. Anybody want to give him a clap? Way to keep the joke going. Way to keep the joke going. So he, you know, the guy comes over and he's like, dude, my computer's so messed up, man. I'm so upset. He's like, can you not figure it out? I'm so frustrated. And Ryan's like, dude, that sucks. That sucks. And Ryan's like, dude, that sucks. That sucks, man. Have you tried changing out the mouse yet? Yeah, he's like, dude, the mouse. It's got to be the mouse. Like, come on, man. It's three days. He's swapping out his laptop. Oh, well. Hey, it's all good and fun and games, right? Yeah. Dave told him. Dave told him about a week later. He hasn't talked to me since. Or me. I'm his boss. Not good. So this is what the keyboard looks like put back together. Does it look like a keyboard to you guys? Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. It's a keyboard. Now, if you were in Iron Geek's talk yesterday, you can also see that you can embed this into pretty much anything you want to. This is just, it's a little bit bigger than you might see, but the chipset is only that big. So, I mean, you can fit it into, like, anything you want to. Yeah, Iron Geek was actually able to fit a hub, an SD card, a 10C, and all of that into just a normal mouse. And some LEDs, too, to make it look really cool. That is cool. I want one. Me, too. So, kind of off-topic here, but I just want to show you the powerful stuff with set. There's the Java Apple attack factor within this. Pretty much the meat and potatoes of the social engineer toolkit. If you guys want to do 100% success rate on your pen test, I recommend this right here. 100% success rate. If it doesn't work, I'm not going to pay you anything for that comment, but, I mean, it will work. So let's just do a real quick demo here. Let me just prep my config. You're doing this one live, too. Dude, I know. Last minute is going to be awesome. All right. So we're going to load set. And it has the website attack factor. We're going to select the Java Apple attack method. Now, here's what we can do if I actually wanted to use DEF CON's wireless. I could do a cyclone using DEF CON's wireless on stage. Yeah, if that was a Windows box, it would be good. So what we're going to do instead is we're going to use the web templates. What we can do is you can actually clone an entire site. So it automatically, we say you're going after company X. Hopefully there's not a company X out there. It's company X, and it will actually go and rip their site off completely, set up a web server with it, with all the malicious Java applet code in it, and basically when they go and browse the site, it looks identical in every way, shape, and form to whatever company you have cloned. In this example, we're just going to use the web templates. We're going to set our interface IP address since I'm not connected to the Internet. And then we're going to sign our Java applet. So in this instance, we'll be pretending we're Google because we love all Google. Google does no evil, right? I like Google. Google's goofy. So we're going to hit 3 for the Google. These are just different templates that are built in, but you can, you know, definitely clone any site you want to. And we're going to select the defaults. Look familiar. Interpreter. Backdoor executable. 4443. And we're going to select the defaults. Look familiar. Interpreter. Backdoor executable. 4443. Look good. And what's interesting enough about this payload is it works for Linux, OSX, and Windows. . Yeah, Java makes everything nice, doesn't it? So we'll go ahead and just do an example of OSX. So it sets up the listener for us, the web server, all that good stuff, right? Now we're going to go ahead and go to the site. I hope you prayed to the demo gods last night I did they're going to be fine And we get this warning saying Google the publisher Wants you to run this Java app Do you want to continue Dude it's Google I'm not saying no to Google I know better than that If I say cancel my computer is crashing I can't search the internet Nothing works There's no other search engines out there What's up What's that Sounds cool So we go ahead and hit run Now if I was actually connected To the internet You would actually see the logo there And everything else looking pretty Since we don't have internet But interesting enough As soon as the payload executes It redirects you back to the legitimate Google site So you never even knew That you were on the internet You're at a malicious site And while we're there On the back end We have interpreter shells Yes the demo gods smiled upon you today Dude I had no worries I sacrificed five lambs No worries So I got to give a shout out To Thomas Worth Who helped me write the The Java Apple attack vector It was closed source We initially released this But it was closed source And heavily obfuscated But we did open source it With version 0.6 Which was released at B-Sides On Wednesday So you can actually manipulate The source code for this Use anything you want to with it Do what you want to It's all open source So again special thanks to Thomas Worth for that So basically the user hits run The payload is executed On the victim's machine Redirects the user back to the original site And makes the attack less conspicuous Would anybody not fall for that Oh yeah Yeah Yeah I'm talking about So getting back on to the PowerShell kick What does this really mean Well for one Antivirus and host based intrusion prevention systems Are doing a squad for this right now Yeah I think there's only one PowerShell script that they actually catch And it's an old Trojan that was written Back when PowerShell was Code named Monad That used Kazaa to do Just to move around from system to system And just really did nothing It was more of a proof of concept That's the only way to do it It's the only one that I've seen in the AV databases And it's actually a problem I mean we've been Before this presentation Before the black hat presentation I do have to give a special shout out And kudos to Microsoft Because they're very responsive We basically sent them all of our proof of concept code Our slides everything else And they definitely did a good job At basically looking at what we're doing You know seeing what ideas we had So definitely a shout out to them For the responsiveness that they had They even cleaned up some of our code It was nice Yeah they did actually Thank you I mean we're sloppy coders man I mean you're trying to Bing this out for dev kind of like Dude I mean he codes in Perl all day I mean what do you expect Dude Dude you insult me one more time Does anybody here have a knife Actually don't answer that Don't answer that Yeah please Please don't answer that My wife wants to see me Don't No I'm worried about the goons Coming and kicking their ass Oh good point Those guys are rough So we're going to Where was I I'm sorry Hibs AV stuff like that Right Microsoft The usefulness of PowerShell Really does enable us to Be able to perform these type of Advanced attack vectors with PowerShell I mean it's You guys I really recommend just picking up a book on this And if you already know .NET This is going to be absolutely trivial For you to pick up You have full range to use the .NET libraries In PowerShell Completely call them from there So you can write complete tools You can write GUIs I mean you can write whatever you want to Through the PowerShell command line Interface Which means for us We can do a lot of cool things Yeah one of the IDEs That's out there for PowerShell Power GUI Is actually written all in PowerShell So I mean it's It's pretty impressive What you can do with it So some future plans Process injection and code Injection capabilities within PowerShell So the ability to inject Into already existing processes And migrate to others Is something that we're working on right now So if you think about it You know PowerShell based interpreter Would be pretty sweet to have And do that all through PowerShell Pretty cool The ability to deploy security baselines For multiple systems And ensure enforcement I mean there's like Just as an example There's just so much automation You can do So many different checks And things like that That you can do Working on the PowerShell Exploitation framework PEF I mean I don't know Where I came up with that Sounds cool Integrated into MSF So trying to work on the PowerShell exploitation framework So that you can build Specific tools and attack vectors All through PowerShell Would be pretty sweet Definitely a shout out We're going to be doing A conference in September 30th October 2nd, 2011 So keep your eyes out For DerbyCon We already have a lot of Good speakers out there So keep your eye out DerbyCon.com And my boys At social-engineer.org Did anybody participate In the capture flag Or see it The social engineer capture flag A lot of people A lot of good results Making a lot of media out there Definitely check out Social-engineer.org They are phenomenal The podcast we actually Just got done Finishing You actually had to bail out Earlier I had to bail out Earlier For this talk I mean You know But And really Special thanks to Kathy Peters Be sure to check out www.secmaniac.com That's S-E-C Not S-A-C Secmaniac.com Secman And you can always Follow me and Josh On Twitter I'm Dave Underscore R-E-L 1K So Dave Underscore Relic And WinFang98 Now does anybody Have any questions No questions Does that mean I did a good job Hey Thanks guys Appreciate it Guys rock That's gone