Hello, everybody. And welcome to episode number 22 off the RCP Cores. Public exploits. My name is Sandra and I'll be instructor for today session.
The learning operatives of this session is to understand the concepts behind this attack and apply techniques to actually implement this attack.
So let's get down to business, shall we?
First of all, let me give you a couple of clarification about what public exploit is. What we mean by public exploits is that somewhere there's a lead ability out there and we'll really know it existed. It exists.
Ah, and someone already, huh?
Created an exploit for that. So we will use that exploit a bull, not bother creating, are around, exploit. Or, you know, we wouldn't want to go through all the hassle of creating on our code for that if someone else, someone else already did it. So
yeah, that's that's what public exploit mints Now The problem. There's two problems with that. The 1st 1 is that it's not that easy. It's not I mean, I know just just said You're saying right now, out case if someone already great and exploit why it's not that easy. Well, first of all, um,
exploits behave differently for different operator systems,
maybe for different boards, for different. I base for different. I don't know, technologies, something something some things can change. I mean, several things can change and from one system to the other. So you have to be familiar with the vulnerability. What is trying to exploit? How is exploiting it?
it is supposed to get our remote control. It's supposed to just, uh, uh, perform a denial of service attack. It's just supposed to just change something on the system. I don't know. You have to be very familiar with vulnerability. Eso you in order to you to to see if you actually only need to run the exploit,
or you need to actually modify something inside that exploit.
And the second part, I think the most dangerous part is that some exploits are not really exploits. Ah, some guys just upload exploits to the Internet, saying that it will exploit sir table in a military. But in reality, they're just changing something on your local machine or the machine. You're easy to
actually execute that exploits.
I'm ashamed to admit that, but I learned that the hard wait I was starting my career in penetration testing many moons ago and
that happened to me. It'll either raise their root folder, so yeah, my operating system was mess up. Thank God I was using a Burton machine with snapshots before, so yeah, uh, but yeah, you can find all of that. You can even create backdoors on your own machine. So you have to be careful.
So to help you with the first problem, you just have to google it.
You have to go every possible thing about the vulnerability and to help you with the second problem. Think others. Some trusted sites out there, the 1st 1 let me just show you. Here is exploit dash DVD dot com.
I guess that's the most common one are the most trust one you can also use that have
and other pages that you may feel comfortable with. But I guess this is the most common one where you can actually look for safe splits.
get started with it with the practice, then first. Well, I'll I will be using several using the same machine for several time for several videos because the energy is it has to change a configuration or install a new server are running Stalin is other sub word. But, you know,
I'm separating this in different models. It makes more sense to you.
So first I need to food it out. What operated system is again I need to perform. I still before more reconnaissance, my
sports guiding and everything. So I can get familiar with the victim and see if they exploit will actually work on that system. And the other used to get ahead. I will just perform at, um
Mm mm. Ups. Poor scanning. So I can feel about the versions. I know poor 25 110 are open.
So let me see the results. OK? Eso mail. Um version five. That five. So this second thing, because you can see I already have here all you need to do. By the way, you just enter something here. Maybe an operative system, maybe. Ah,
a sub word or something specific or maybe a specific moving ability scanner.
So yeah, you can search, for example, sl male. As we already know. Here we have. You have all of these exploits. Now you have to know the type. I mean, what do you want? You want to create on the denial of service? Do you actually want to get remote remote control? So yeah,
and the other will choose this one, the 1st 1 But, you know, this is I guess I believe it's Sim Python. Yeah, it's impossible.
Also, you will find several exploits in different codes. For example, this isn't easy. So you have to, you know, maybe select the one that you're most comfortable with, For example of you already know. See? And you already know how it how it is compiled
and you already have. Geez, easy. For example, for compiling your colleague Nix,
you have to choose the most called the one that you feel most comfortable with. Um,
but that's the thing. So we'll use this one. Um, Let me just don't load it. Yeah, okay. This is a generic name, by the way. Don't worry about it. 638 Say file and let me just copy that to my to my
before there were working on
exploit that fightin.
Okay. Exploited. Fightin such mode,
Titan. Okay, now, no need to modify it.
Okay, Let me just raise. Let me really first. Uh, okay. Who discover it? Coded by moods. Hunts.
Now they may give you on a plastic. This guy, he created a lot off exploits on the exploited Be that of a So just raise out. This is for your purpose. Okay? It says something important here. He says that he's raised that
I have to start a listener import for four for four, so I assume, and this will be creating, or I would connect to put 4444 So I assume this is creating a bind Shell on the victim.
Ah, yeah. Let me just raise that. I love this swill.
And let me just go back here, Okay? Says tested on a Windows two k service buck for Let me see what operates system is running. Is this into Okay? It's not finished yet. Let me go ahead and okay. He says change the return address if needed.
By the way, we'll see
all of the deed details to create Iran before wonderful exploit. I mean, we'll go from 0 to 2. I don't want to say the other word that Ryan with it, but yeah, we'll go you know, from scratch, and we'll create our own exploit to exploit album I bought for over full liability. So all of this will make more sense
after you actually go through the entire model
dedicated for buffer overflow. But for this part in its to understand, is that it was testing their windows to Kay, and we might need to change the return address. So, as I told you at the beginning, some exploits might not be guests just downloaded and granite
use you Didn't You need to actually change something on that exploit? In this case, we might need to change the return address to something that actually matches. Ah, Windows XB, service. Back trips respect tree, which is the one
it's using the remote machine machine we're trying to attack.
So yeah, it's not that easy. It's not that easy. Let me change the obvious. Hers. Ah,
Uh, let me see if I can actually run it.
Oh, yeah, I already give it excuse.
Okay, So it's supposed to be creating Ah, a buying shell.
So I need to just connect to that. Had card limits. If, um,
import for four for four.
You know, it's not connecting, so it exploit didn't work. And if I go to my, um,
I can just see that, if I
hopes, okay, let me just feel for that
he will not return. You know something? It didn't not create a bind shell. So that's expected because the exploit was clearly saying to us that this was actually tested on on
Windows two K. So we need to test it on Windows XB. So we need to change the return address. Um, for the purpose of this course of this module or this session, I will not show you have to actually get that. But again, I will definitely show you that I mean, all the details
to actually perform this attack
on the other and the upcoming modules, which is for both for office floor. So that done that manera bits about it.
So let me just copy pays here. The return address was supposed to be, which is right here.
Them changed their return address for a windows ex piece of respect tree. Just just know right
there. And there was still one thing I need to change. Let me just run it again
and it's taking a while. That's my be a good sign for us. Um, Selim. See, that actually worked.
And we just graph here again, my windows XB,
And let me see if Oh, ok, hee created. Ah, bine shell. So if I go to different,
uh, she, uh, terminal here, if I get that cat
and I connect to my poor 4444 and I get our carbine shell,
okay, I'm good. I'm good. I'm good. I'm good.
Okay, that's how would you actually change pulling exploits, But you can go for dinner. Um,
you can actually create. For example,
we will see more details about this. Uh, but you can actually, uh,
creates something about that. I mean, up, for example, you can say I don't want a buying shell. I don't want a reversal when we will see that in the next And the next media, which is MSF PanAm to create your own Actually, your own payloads. Because at the end, maybe you say Okay, I know the firewall is filtering
anything that is connecting to, but it's not filtering anything that
the machine that the victim machine is connecting to the Internet. So maybe you want to modify, you exploit to to get a reversal, and you need to modify all this exploit. We'll see how to create that in the next video. For now. What about the operating system? We really know that there's a Windows X p. Here,
So, yeah, we can bow to ah, database, for example. I know that window six p is vulnerable to eternal blue. Well, research that in previous. Beauteous. So the images go here and change this and put a journal
and is searching, you know, for for executions, for exploits. Already created windows, ex people. Lola, um,
then you see each one. Um,
let's use this one. Seems like a good fit for us.
Oh, I see Python as well. Yeah, that looks like a good fit for us.
Oh, you can also search for you know, um,
this exploit on the internet, for example. Ah, I know, I know. There are others just
downloaded through the terminals. I can actually go directly here. Um,
is one Ah, I need to download. Uh, I know that because I really tested all of this. But you might have to be. You might need to be testing had my hand or, you know, step by step. Everything for for for laurel, for you know, the public exploits commands,
So yeah, that's it. I don't know to exploit. So, actually,
run that and let me just see what I need to Marty. Five,
um, in order to to actually execute that.
now I know each other now.
Okay, Uh, I need to really all of this. It was sister in Windows expiate. That's fine. And used her name, for example. I came here. I know that that I need to use the user name guest,
for example. But the problem with that is that in that specific case I'm talking about, um
I mean, just closed out in here and execute
You will request that P A guess.
for example. Browser.
You will not work because he says, uh, for example, status Logan type not granted. S o. The remote machine is not actually allowing me to use guest us, us, they as them
user. So That's the other problem with public exploits. Sometimes, um, just need Thio
actually get something, You know,
You know, you actually need Thio modify several things and exploit was will steal, not work. And that's something you will face all the time in a daily basis. So, for example, now that I know that it is actually bone mineral for this,
but I don't know, the Basel worked. I could try other techniques to actually steal the pas work
apart from from this. So, for example, let's say that I stole it for a different technique.
And I need to example, Marty five
buzz worry and use her name. I'm see if that actually works.
actually worked. So you know, that's the problem with public exploits. Sometimes it will work. Sometimes you need to modify something, and, you know, sometimes you
cannot go that way and done waste too much time in something that it will not work. You don't want to go down to the rabbit hole and, you know, spend hours trying to actually get trying to actually get things work or get this exploit to work
because he will not work. So what? You would have to pursue other routes.
I wanted to exploit our operating system. Um, you know, that's the problem.
Hey, I can just for example, do something like this.
Well, I I didn't modify something in here because I didn't know. You need to mind if I discuss a specific exploited, you know, that will take a while to actually do something with the operating system may be changed or create a password or create. I used her name or something like that. Ah,
that's something you'll have to do with this exploit. But, you know,
for the purpose of that example, do you get the point?
What is the most common database we can use to find public exploits Will exploit exploit dash d v dot com. I guess that's the most common one, although you can also find useful exploits on get half in other pages. But I guess that this is the most common one and I can be careful. I cannot. I cannot stress this enough.
Be careful with what exploited you download and how you run it.
Can we actually gained remote control to this attack? Yeah, we can actually get off course. We're just using someone else's code exploitable nen abilities, which will lose to have ah, um, river shells or job actors or remote control over a machine
in this video will learn the concepts behind the pool of exploits Attack. Ah, and we implemented stopped index to execute some public exploits. And we saw How malicious does that that can be? Ah, supplemental materials. The hiker playbook again, There's no other. There's no wrong way with this book. You just need to,
you know, buy it and read it.
It will. It will help. It will help you not only with penetration testing, but understanding other stuff in this penetrate and it penetration testing process itself. Aah! And you know it's always every possible source in Google and youto, although in this case I will be careful,
uh, with Google and YouTube, because at the end again, you will mind end up downloading something militias
Looking forward, it an Expedia will cover the Medicis plea for him work and the MSF Bannon. Irene, I know that we already set some basics of Maris plea. We'll see how we can boost that knowledge with the MSF Benham. Ah, too.
Well, that's it for today, folks, I hope in your DVD a and talk to you soon.