Hi everybody.
Welcome to Part Seven analytics command line mini course.
So in this video I want to talk about base64.
Now we're gonna have a specific video around base64 where it's exactly used how it works etc..
So I'm going to be pretty brief on this but I want to touch this and the command line section just because
of how it's useful to a red team.
Now base64 as a way to convert binary text.
So for example if we had it out the binary S UH OH YEAH OF US
SO WE COULD SEE THAT'S binary.
So what happens if we want to have that binary in a way that we can convert it or pass it along.
So this is useful for taking a reverse shell or interpreter from Metis Boyd or something like net cat
that wasn't on a system and getting it to another system without having to transfer the binary itself
in its raw form.
Now let's take.
So the way this works is Let's go red team
nation.
We're going to put that into something called base64.
That's it.
Now we have our base64 string and we can move that to our different host then we just echo that string
into base sixty four dash D for decode.
Now we can see Red Nation.
Same thing goes for the less so.
Been less into base64 now much bigger string
much much bigger string.
So let's go ahead and get this to the file called Let's Start T T right so here we go.
Cat let's stop texting.
So we've got our base64 now.
We tried to run alas that takes D does nothing.
It's not actually a command.
So what we can do is we do.
Cat let's not t t and we pin that into this 64 dash and dash D.
We're going to play that into something called Elyse.
Now we should see here.
ELYSE When you change log plus X to less or less would go works fine.
So that's how you can pass data across from one system to another using base64.
There are a few other ways and use cases around it but we'll we'll talk about that and more specific
video around base64.