Hello, everybody. And welcome to the episode number nine of the Our Speakers By and reverse Shells.
My name is Alejandro Gina, and I'll begin instructor for today's session.
Learning objectives is to understand what is buying and rubber shell Understand how to apply and buying reversals inter penetration testing process and use different programming languages to create buying and ruler shells.
That sketch stunner.
Okay, so, first, um, we can try to, you know, show you our net cat connections,
you know? And even though Net get is such a great tool, there's a real important feature mason from that cat. As I told you before in the previous video Net Cat is known to be the this Reserve the knife off the TCP Protocol as it can execute and create. Um, several. You can
performed several task
using Onley net cat. But you know, before I tell you Ah, what's the future, Mason. Let me give you an example first. Let's start by, you know,
implementing a chat us we saw before in previous video. Um, how can we simply put the cup of commands in windows there? Andi window on drilling rigs machine. And you know, we can type whatever we want. So
I will start to like it. Then I got a listener here.
Ah, I said to us, as you can see on this up, it is different because I already installed and cat, which, you know, I'll explain later in the video. But, you know, if you go back to a previous video what we actually implemented the chat between two machines, um,
this time. I using the same alias. Antsy. But that is calling and can't instead of net cat.
an implement or connect to my Callum missions from a wind machine.
I'm not showing you the Windows machine because we already, you know, did this in the previous video. If you have any questions, you can go back to that video.
So yeah, we have the connection here. And let me just type in my Windows machine. Hello, Callie.
And there you we have our child going on. So you know, after this I will up in a new a new
and I will you know, I start you could do this. All started. Sippy dump command to use. This will really sound is this is just for an example of this video.
Um, you know, you can also use a wire shark, you know, with the nicer interface. And I know that Ah, but as you go further in your penetration penetration testing career, you will see that most of the time you end up using determine out before all the task. So maybe getting used thio
graphic user interface It's not the best idea
for penetration testers. I'm not saying that there's something wrong with my shirt. As a matter of fact, we'll see a really cool application that comes with a shark that you can use actually using the terminal A swell. But for now, let me just capture traffic. Um, vorticity dump
X. This is just a troll and showed that the package payloads
thing, which in with interface it the Internet syrah and just say poor
4444 said the boards that were using And there you go. So let me just send by air.
and windows give, you know, I don't really see here. Um,
And you know, if we go here, you can see that they
text. I can see it right here.
There's no encryption high again. Hello, Windows.
There's not no encryption at all in this connection. And that's the main feature Mason from Ned Cut Net that doesn't have encryptions. Or if you're trying to be, ah, having stealth Er, um,
they look coming back or going forward. I mean, if you're trying, you really shell back to your machine or you're actually trying to up in the band shell. But you don't want the I PS or defy rubble to actually see what the pale contains.
Maybe you see net God will not be a grated idea because you know it is missing that the inclusion part. Um, don't get me wrong. I love not God, but just, you know, this tiny thing. Well, maybe not that tiny. Ah, but you know, it's missing
encryption. So this is where N cat comes into place. I just kill the connection, and cat is more, um,
I wasn't in advance, but, you know, he has a lot of features that Ned Cat is missing in One of them is encryption. Um, so let's use net. Got I'm sorry and can't you see what's the real difference then, Um
then can have several little original features to just just encryption. But, you know, for this video will see this capability. First, let me just start my
and cut nor net cat but and cat a listener and cat. Ah,
miners or dash L V P. Port 14444 on this will actually start again
with zero encryption. So basically, you just have the same capabilities. Ah, snet cat Just to show you real quick here Connection. Hello?
And I see here. And if I go by here, um,
I should see the hello message. There you go. Ah, here. So same exact same thing is net cut.
if you're actually going to need encryption, you can just go. And at the SSL Dash s s I'm sorry.
So your connection would be encrypted
if I What? What happens if I tried to Gannett using Net gods from my windowless shell?
And if I type something Hello,
you will, of course, fail because you know, you were not easy encryption. So it's like trying to connect. Ah, an http to an https server. It doesn't have encryption, so I have to transfer that.
Ah, Net. Got to my windows machine. Um, I can just just again, the recipe commander, which is, you know, again transferring data through the S H protocol. I already have, um, the net cat file sip here. I don't allow it from that. From this this
and cat is provided,
but the same guys who great and map. So you can download that from the page and send it over to windows. Or you can just don't love it directly to your machine. That's okay,
s So I will just copy base here, the command,
and basically just send in this file to the Windows server on. I wanted to go to the desktop machine,
and it's okay. I have it here
okay. So I just I just wanted to show you that.
and here so you can see
both at the same time. So, um,
as you can see, I don't have a hat, and I got here.
that sip and I really extracted it. Then. Cat, that cat. I'm sorry that uh, X file, so you can, you know, run encrypt connections. So
and I'll start again
start listener and again of the Mississippi Dump and Start and Cat Command again.
And now I just type in this side of, you know, we're in the windows machine. I just type.
I want to connect death machine
and the connection fail. It says that the unsub Porter protocol. That's probably because, uh the cat version for Kali is way more up to date than an end conversion for Windows. There's a missing things,
or maybe just, you know, our version thing. But, you know, it's it can be
fix really easily. First, I will I will see what protocol is being supported by the open SSL configuration file.
Just type this here.
And that's the problem. The minimum protocol to use his Teyla's version of wonder to which is the latest one. The trees in the making of it. You know, that's the latest us for now.
Eso I'll have changed changed that. So
really love text editor, go to the very end
of the page. And I changed that to tell his version one,
I restored the connection right here. Just just see clear data
hostile listener execute sanctum in windows
and that you go the hand *** worked. And I have I don't have any quick connection. Hello.
If I go here, I'm just put it
a little bit bigger.
If I go here, I can see ah, lot off information. But
none of them isn't clear. Dext. I don't see the hello message.
I didn't see anything, you know, just as you will see. Ah, handshake or a tail? Attila's version One handshake.
So this is a really cool feature that was introduced by and cat. Ah, and I highly recommended that you know, And you know, the important thing here is that you can actually throw You are river shell
using and get us well, and as you can imagine, we'll just up that here.
As you can imagine, it will be in creep come in. Any payload you went to upload? Remember that We said that we can actually upload files with and would net cut Well, you could do the same with Anna Kat. But this time you can encrypt our connection. So the firewall or the ideas will know will not notice
what you're actually sending over where there is a message or an equipment file, or I'm sorry
I pay load or whatever you're trying to transfer. It will be in crypt. So that's a cool feature. So, uh, right now,
let me just send back Ah, shell back to the windows machine so the windows machine can take control over the collar machine. So
at this point, I just add
dash E to execute distressing net cut.
And I say, Okay, I wanted to execute being
And if I connect here in your windows machine isn't exact same comment as before.
Oh, Did you go? Who am I?
Oh, I'm really You can see that exception Libyan written here. Ah,
So, uh, this is a really cool again cool feature with net cat. I'm sorry. And cat because a d n um,
you're getting a real shell, but encrypt. Ah, but in kind of neck are not the only thing you can use to send back a realer shells. You can do that by using programming languages like GHB, Pearl and fighting, for example. Let's start by checking beach beef by the fall.
Connelly has these so called web shells
in the following directory. I'm just
grab it here. I'm putting here. Ah,
as you can see, contains a SPX for windows. Jsp PERL PHP. Let's start with BHP.
We have several backdoors here. Um, at the PHP language that it's actually executed at the server side. We would use that for the for example.
Eso Let's copy the pitch B dash River Star Shell Thio, Apache Webroot
well copied out here.
The commander is just a simple copy command. I will copy from this location to this location
and now modify the text added what is text editor s O? I can't actually put the ports and that will be listening to that.
and has just changed the i p.
As you can imagine. Let me just just win those for this example So you can change our spice things up a little bit, Tim, that
the a p of the windows and it will be listening and pour 12 to 4. That's okay.
I copy that to our earth,
actually, however, that this will true a reversal. We have to put an ID be important as I did. Listen, once the victim hits the web page this You know, we can say that that link in this case,
this link I'm sorrys for another exercise. You can say send this link,
Oh, but let's put the link.
You can see the consenting is linked to your victim through a phishing email or whatever. Ah, we not see that you're ill. And as you can see, it has ah, common are not fatal. Error failed to demonstrate is because I don't have any actual listener on the on the window size. So let me just start
Oh, my Windows machine
without encryption, of course.
And there you have it. A reversal
with my route. If I'm sorry, since we're accessing through the Apache, look where my data on Then we will have to escalate privileges to get route. But at this point will really have remote control in her Windows machine from work Allah machine. So that's really cool. Um,
and that's how you get down on river Shell.
Um, that's a species that but, you know, you can also use, um,
others. Web sales are really quite simple to implement, but how about other problem languages? As I told you, you can actually, uh, use other problem languages to troll reverse shells to you. Back to you, for example. Weaken even use bash commands. I'm just
started listening here again. And you can just type
this simple yet effective command.
So I will just throw a reverse shell and looky, looky
road if can fake. Remember this. Remember, this is a windows machine, so I'm trying back this reversal back to the window mission, so Ah, simple bash command can actually show you our shells. Well,
And what are Pearl? Berle has a little bit more complicated command.
but all of them were just copy paste from a really cool reference. I will give you just at the end of this video.
So again, just you know that p and port, which is basically what I changed from this command
guess he had entered.
it seems that I have an exception here.
So sorry about that. I copy pays the run, command.
and there you have it.
If config again, who am I? And, you know, again, a reversal. A simple as that,
Uh, I'm just kill sort of killing a man here
and Piketon when our pipeline. Yeah, you can do the exact same thing with bison.
I just I can copy paste a command from the really cool reference I will give you
execute the listener,
execute the command. And again,
I can see and can do a lot of things from the windows inside, since I have River Shell.
Well, uh, what is the difference between reversal on band shells? Basically, they're just how there were there. Executed. Rochelle is when you're waiting for the connection. And buying shell is when you connect to the server or to the victim. In this case, in this video, we saw a reversal because those are, um,
what we use most of the time. But there are occasions when there traffic's blocked in wine duration so you can just use buying shells. Eso this buying shares were up in the port on the victim's machines that you can actually actually connect to to that port.
Can you actually use PHP to take more control of the machine? Will we saw that? And yes, you can.
What is the difference between an cat and net? Cat wall and cat has more features in Mankato. One of them is encryption.
We saw several tunics to execute reverse man shells. We execute commands in different prime programming languages to send back a reversal. We saw one of the main difference between net cat and and cat
and supplement materials. ***. Monkey Reversal, Chichen. There's no other way to go here. These dispatches really coolly contain all the man that I show you and way more commands than that. So I will highly recommend you to go that to the webpage
and looking forward. In the next video, we'll cover some basic knowledge of Mississippi dump wire, shark and T shirt.
Well, that's it for today, folks, I hope in your the video and talk to you soon