WEBVTT

00:00:00.000 --> 00:00:05.796 align:middle line:90%


00:00:05.796 --> 00:00:07.728 align:middle line:90%
[MUSIC PLAYING]

00:00:07.728 --> 00:00:10.200 align:middle line:90%


00:00:10.200 --> 00:00:12.220 align:middle line:84%
PowerShell-Empire--
in this video,

00:00:12.220 --> 00:00:15.030 align:middle line:84%
we're going to take a look
at how to set up and install

00:00:15.030 --> 00:00:19.260 align:middle line:84%
PowerShell-Empire, as well as
how to use it to gain access

00:00:19.260 --> 00:00:22.030 align:middle line:90%
or to exploit a Windows system.

00:00:22.030 --> 00:00:22.530 align:middle line:90%
All right.

00:00:22.530 --> 00:00:25.710 align:middle line:84%
And one of the key things that I
want to highlight in this video

00:00:25.710 --> 00:00:28.680 align:middle line:84%
is the actual distinction
between PowerShell-Empire

00:00:28.680 --> 00:00:30.330 align:middle line:90%
and the Metasploit framework.

00:00:30.330 --> 00:00:32.940 align:middle line:84%
Even if I've paired them
within the same videos

00:00:32.940 --> 00:00:35.680 align:middle line:84%
within the same section
within this course,

00:00:35.680 --> 00:00:37.900 align:middle line:84%
it's very important to
understand how they differ.

00:00:37.900 --> 00:00:38.400 align:middle line:90%
All right.

00:00:38.400 --> 00:00:42.450 align:middle line:84%
So let's get an understanding
of what PowerShell-Empire is.

00:00:42.450 --> 00:00:46.230 align:middle line:84%
So PowerShell-Empire,
also known as Empire,

00:00:46.230 --> 00:00:48.930 align:middle line:84%
is a pure PowerShell
exploitation

00:00:48.930 --> 00:00:51.330 align:middle line:84%
and post-exploitation
framework that's

00:00:51.330 --> 00:00:54.180 align:middle line:84%
built on cryptological
secure communications

00:00:54.180 --> 00:00:56.220 align:middle line:90%
and flexible architecture.

00:00:56.220 --> 00:00:59.490 align:middle line:84%
Empire implements the ability
to run PowerShell agents

00:00:59.490 --> 00:01:02.670 align:middle line:84%
without needing
PowerShell.exe, rapidly

00:01:02.670 --> 00:01:05.910 align:middle line:84%
deployable post-exploitation
modules ranging from keyloggers

00:01:05.910 --> 00:01:08.580 align:middle line:84%
to Mimikatz, and
adaptable communications

00:01:08.580 --> 00:01:11.040 align:middle line:84%
to evade network
detection, all wrapped up

00:01:11.040 --> 00:01:13.740 align:middle line:84%
in a usability-focused
framework.

00:01:13.740 --> 00:01:15.990 align:middle line:84%
Now, I want to highlight
something here.

00:01:15.990 --> 00:01:18.810 align:middle line:84%
The Metasploit
Framework is really

00:01:18.810 --> 00:01:23.220 align:middle line:84%
a very, very useful
exploitation framework

00:01:23.220 --> 00:01:26.010 align:middle line:84%
for penetration testers,
primarily because it

00:01:26.010 --> 00:01:28.350 align:middle line:84%
allows you to
perform or automate

00:01:28.350 --> 00:01:30.150 align:middle line:84%
each phase of a
penetration test.

00:01:30.150 --> 00:01:32.520 align:middle line:84%
And of course, we've explored
this within the Metasploit

00:01:32.520 --> 00:01:33.640 align:middle line:90%
framework course.

00:01:33.640 --> 00:01:37.020 align:middle line:84%
We can literally perform
information gathering,

00:01:37.020 --> 00:01:40.680 align:middle line:84%
port scanning, enumeration,
vulnerability scanning,

00:01:40.680 --> 00:01:44.670 align:middle line:84%
exploitation, post-exploitation,
privilege escalation,

00:01:44.670 --> 00:01:47.370 align:middle line:84%
establish persistence,
dump hashes--

00:01:47.370 --> 00:01:50.100 align:middle line:84%
all of that can be performed
within the Metasploit

00:01:50.100 --> 00:01:51.010 align:middle line:90%
framework.

00:01:51.010 --> 00:01:54.060 align:middle line:84%
And one of the key differences
between PowerShell-Empire

00:01:54.060 --> 00:01:57.270 align:middle line:84%
and the Metasploit Framework
is the Metasploit framework

00:01:57.270 --> 00:02:00.540 align:middle line:84%
can be used to exploit a
plethora of operating systems

00:02:00.540 --> 00:02:01.560 align:middle line:90%
and platforms.

00:02:01.560 --> 00:02:06.210 align:middle line:84%
It can be used to exploit
Windows, Linux, macOS, Unix,

00:02:06.210 --> 00:02:09.340 align:middle line:84%
BSD, as well as
web applications--

00:02:09.340 --> 00:02:13.560 align:middle line:84%
so PHP, JSP, ASP, et
cetera, et cetera.

00:02:13.560 --> 00:02:17.550 align:middle line:84%
Whereas PowerShell-Empire
is more of a specialized

00:02:17.550 --> 00:02:20.040 align:middle line:84%
exploitation and
post-exploitation framework,

00:02:20.040 --> 00:02:23.160 align:middle line:84%
that doesn't have the whole
information gathering,

00:02:23.160 --> 00:02:26.400 align:middle line:84%
enumeration, and vulnerability
scanning or detection

00:02:26.400 --> 00:02:28.150 align:middle line:90%
functionality built into it.

00:02:28.150 --> 00:02:30.510 align:middle line:84%
It's primarily focused
on exploitation

00:02:30.510 --> 00:02:32.160 align:middle line:90%
and post-exploitation.

00:02:32.160 --> 00:02:36.060 align:middle line:84%
As the name suggests, it's
primarily designed for use

00:02:36.060 --> 00:02:37.500 align:middle line:90%
with Windows targets.

00:02:37.500 --> 00:02:39.720 align:middle line:84%
Now, it's not limited
to Windows targets,

00:02:39.720 --> 00:02:42.300 align:middle line:84%
but most of the additional
post-exploitation

00:02:42.300 --> 00:02:45.516 align:middle line:84%
functionality,
like the modules--

00:02:45.516 --> 00:02:52.800 align:middle line:84%
the ability to use
Mimikatz, or to essentially

00:02:52.800 --> 00:02:55.590 align:middle line:84%
perform any other type of
post-exploitation technique

00:02:55.590 --> 00:02:58.980 align:middle line:84%
is primarily limited
to Windows systems.

00:02:58.980 --> 00:03:02.182 align:middle line:84%
And again, this is a
framework that I really

00:03:02.182 --> 00:03:04.140 align:middle line:84%
didn't want to showcase
right now, because it's

00:03:04.140 --> 00:03:06.120 align:middle line:84%
more of an advanced
framework and seen

00:03:06.120 --> 00:03:10.230 align:middle line:84%
as a command and control
server for Windows targets.

00:03:10.230 --> 00:03:13.690 align:middle line:84%
So again, I'm going to be
showing you how to set it up,

00:03:13.690 --> 00:03:16.470 align:middle line:84%
and how you can use it to
exploit a Windows system.

00:03:16.470 --> 00:03:18.690 align:middle line:84%
But again, this is
something that you really

00:03:18.690 --> 00:03:21.960 align:middle line:84%
shouldn't focus on right now,
because its use will become

00:03:21.960 --> 00:03:25.260 align:middle line:84%
more important as we
progress, or as you progress

00:03:25.260 --> 00:03:26.880 align:middle line:90%
in your pen testing career.

00:03:26.880 --> 00:03:30.090 align:middle line:84%
It's, again, something that's
used not just by pen testers,

00:03:30.090 --> 00:03:32.620 align:middle line:84%
but more specifically
by red teamers.

00:03:32.620 --> 00:03:33.120 align:middle line:90%
All right.

00:03:33.120 --> 00:03:36.570 align:middle line:84%
So PowerShell-Empire
recently received an update

00:03:36.570 --> 00:03:41.070 align:middle line:84%
and is now officially supported
and maintained by Kali Linux.

00:03:41.070 --> 00:03:43.680 align:middle line:84%
So more information
regarding the update

00:03:43.680 --> 00:03:45.870 align:middle line:84%
can be found on
the link that I've

00:03:45.870 --> 00:03:47.130 align:middle line:90%
provided within the slides.

00:03:47.130 --> 00:03:49.890 align:middle line:84%
And I'll be
explaining this during

00:03:49.890 --> 00:03:52.200 align:middle line:90%
the practical demonstration.

00:03:52.200 --> 00:03:55.623 align:middle line:84%
And let's take a
look at Starkiller.

00:03:55.623 --> 00:03:58.290 align:middle line:84%
So you might be asking yourself,
well, what's PowerShell-Empire?

00:03:58.290 --> 00:04:00.450 align:middle line:84%
And now you're
introducing Starkiller.

00:04:00.450 --> 00:04:04.530 align:middle line:84%
Well, Starkiller is essentially
a graphical user interface

00:04:04.530 --> 00:04:07.020 align:middle line:90%
frontend for PowerShell-Empire.

00:04:07.020 --> 00:04:11.280 align:middle line:84%
It is an Electron application
written in the VueJS scripting

00:04:11.280 --> 00:04:14.070 align:middle line:84%
language, and provides
users with an intuitive

00:04:14.070 --> 00:04:16.290 align:middle line:90%
way of interacting with Empire.

00:04:16.290 --> 00:04:19.050 align:middle line:84%
In order to get an understanding
of how Empire works

00:04:19.050 --> 00:04:21.089 align:middle line:84%
and the components that
make up the framework,

00:04:21.089 --> 00:04:23.700 align:middle line:84%
I would recommend going through
the official documentation--

00:04:23.700 --> 00:04:27.270 align:middle line:84%
because I can make a complete
course on PowerShell-Empire

00:04:27.270 --> 00:04:29.310 align:middle line:84%
and how it can be used,
so it's quite advanced.

00:04:29.310 --> 00:04:32.070 align:middle line:84%
That's why in this video, I'm
focusing on a simple scenario,

00:04:32.070 --> 00:04:35.040 align:middle line:84%
just gaining access
to a Windows system.

00:04:35.040 --> 00:04:38.490 align:middle line:84%
PowerShell-Empire and Starkiller
are both available as packages

00:04:38.490 --> 00:04:40.210 align:middle line:90%
in the Kali Linux repository.

00:04:40.210 --> 00:04:43.470 align:middle line:84%
So that means you don't have to
go to the GitHub repository--

00:04:43.470 --> 00:04:45.600 align:middle line:84%
clone the repository
and install it manually.

00:04:45.600 --> 00:04:48.000 align:middle line:84%
You can just install it
via the Aptitude Package

00:04:48.000 --> 00:04:50.010 align:middle line:90%
Manager on Kali Linux.

00:04:50.010 --> 00:04:51.660 align:middle line:84%
All right, so that's
what we're going

00:04:51.660 --> 00:04:53.520 align:middle line:90%
to be taking a look at now.

00:04:53.520 --> 00:04:56.230 align:middle line:84%
This video doesn't have a lab
environment attached to it,

00:04:56.230 --> 00:04:58.230 align:middle line:84%
so I'm going to be
performing all the techniques

00:04:58.230 --> 00:05:00.370 align:middle line:84%
within my own
virtual environment.

00:05:00.370 --> 00:05:02.990 align:middle line:84%
So I have a Kali
Linux VM set up,

00:05:02.990 --> 00:05:04.940 align:middle line:84%
and that's going to be
the attacker system.

00:05:04.940 --> 00:05:07.042 align:middle line:84%
And I also set up
a Windows 7 VM,

00:05:07.042 --> 00:05:08.750 align:middle line:84%
and that's going to
be the target system.

00:05:08.750 --> 00:05:11.860 align:middle line:84%
So again, you can follow
along with the demonstrations.

00:05:11.860 --> 00:05:15.130 align:middle line:84%
The objective of this video
is to give you a first

00:05:15.130 --> 00:05:17.770 align:middle line:84%
introduction to
PowerShell-Empire,

00:05:17.770 --> 00:05:20.630 align:middle line:84%
and essentially take you
through how it works--

00:05:20.630 --> 00:05:23.800 align:middle line:84%
how the Starkiller graphical
user interface works

00:05:23.800 --> 00:05:26.080 align:middle line:84%
and how you can use
it to gain access.

00:05:26.080 --> 00:05:28.990 align:middle line:84%
So I'll just switch over
into my Kali Linux VM,

00:05:28.990 --> 00:05:33.610 align:middle line:84%
and we can get started with
the practical demonstration.

00:05:33.610 --> 00:05:34.110 align:middle line:90%
All right.

00:05:34.110 --> 00:05:37.350 align:middle line:84%
So I'm back within
my Kali Linux VM.

00:05:37.350 --> 00:05:42.150 align:middle line:84%
And the first step will involve
installing PowerShell-Empire

00:05:42.150 --> 00:05:43.710 align:middle line:90%
and Starkiller.

00:05:43.710 --> 00:05:46.620 align:middle line:84%
Now, this can be done through
the use of the Aptitude Package

00:05:46.620 --> 00:05:49.370 align:middle line:84%
Manager, so I would recommend
updating your repositories

00:05:49.370 --> 00:05:49.870 align:middle line:90%
first.

00:05:49.870 --> 00:05:55.780 align:middle line:84%
So I can say apt-get update
and sudo apt-get install

00:05:55.780 --> 00:05:59.110 align:middle line:90%
powershell-empire--

00:05:59.110 --> 00:06:03.280 align:middle line:84%
that is a powershell
hyphen empire--

00:06:03.280 --> 00:06:06.340 align:middle line:90%
and starkiller, like so.

00:06:06.340 --> 00:06:09.250 align:middle line:84%
Now, in my case, I already
have PowerShell-Empire

00:06:09.250 --> 00:06:11.170 align:middle line:84%
and Starkiller
installed, so I will not

00:06:11.170 --> 00:06:14.080 align:middle line:84%
go through the
installation process.

00:06:14.080 --> 00:06:16.280 align:middle line:84%
The packages are a
couple of megabytes,

00:06:16.280 --> 00:06:18.680 align:middle line:84%
so it'll take a couple of
seconds to a couple of minutes,

00:06:18.680 --> 00:06:21.320 align:middle line:84%
depending on your
internet connection speed.

00:06:21.320 --> 00:06:23.680 align:middle line:84%
So as I said, I already
have the latest version

00:06:23.680 --> 00:06:26.500 align:middle line:84%
of PowerShell-Empire and
Starkiller installed.

00:06:26.500 --> 00:06:29.200 align:middle line:84%
The next step after
installing PowerShell-Empire

00:06:29.200 --> 00:06:31.630 align:middle line:84%
and Starkiller is
to actually start up

00:06:31.630 --> 00:06:34.040 align:middle line:90%
the PowerShell-Empire server.

00:06:34.040 --> 00:06:36.460 align:middle line:84%
Now, what is the
PowerShell-Empire server?

00:06:36.460 --> 00:06:38.920 align:middle line:84%
The PowerShell-Empire
server is the back end

00:06:38.920 --> 00:06:41.860 align:middle line:84%
of the PowerShell-Empire
exploitation

00:06:41.860 --> 00:06:45.640 align:middle line:84%
and post-exploitation framework,
and is responsible for managing

00:06:45.640 --> 00:06:49.060 align:middle line:84%
the listeners as well as
callbacks from agents--

00:06:49.060 --> 00:06:52.198 align:middle line:84%
and also the various
compilation plug-ins available.

00:06:52.198 --> 00:06:53.740 align:middle line:84%
Now, as I said, you
really don't need

00:06:53.740 --> 00:06:55.510 align:middle line:84%
to know what this
means in depth.

00:06:55.510 --> 00:06:58.067 align:middle line:84%
All that you need to know is
that this is the back end.

00:06:58.067 --> 00:06:59.150 align:middle line:90%
So how do you start it up?

00:06:59.150 --> 00:07:00.940 align:middle line:84%
You need to run the
command with sudo.

00:07:00.940 --> 00:07:04.850 align:middle line:84%
So sudo
powershell-empire server.

00:07:04.850 --> 00:07:06.532 align:middle line:84%
So we're starting
up the server first,

00:07:06.532 --> 00:07:07.990 align:middle line:84%
and then we can
start up the client

00:07:07.990 --> 00:07:10.970 align:middle line:84%
to interact with the
PowerShell-Empire framework.

00:07:10.970 --> 00:07:12.220 align:middle line:90%
So I'll hit Enter.

00:07:12.220 --> 00:07:15.250 align:middle line:84%
And during your first
setup, it will actually

00:07:15.250 --> 00:07:18.110 align:middle line:84%
take a couple of seconds
to a couple of minutes.

00:07:18.110 --> 00:07:20.890 align:middle line:84%
So in my case, you can see it's
loading the default config.

00:07:20.890 --> 00:07:24.370 align:middle line:84%
And it's then going to
start up the Empire RESTful

00:07:24.370 --> 00:07:25.960 align:middle line:90%
API on port 1337.

00:07:25.960 --> 00:07:32.530 align:middle line:84%
And that is the actual API
that is going to be accessed

00:07:32.530 --> 00:07:36.160 align:middle line:84%
by Starkiller, or that is used
by starkiller to interact with

00:07:36.160 --> 00:07:38.480 align:middle line:90%
the PowerShell-Empire server--

00:07:38.480 --> 00:07:40.000 align:middle line:90%
and of course, the client.

00:07:40.000 --> 00:07:42.670 align:middle line:84%
And you can see
right over here, it's

00:07:42.670 --> 00:07:45.130 align:middle line:84%
also going to start up the
plug-in C-Sharp server.

00:07:45.130 --> 00:07:51.010 align:middle line:84%
The C-Sharp server plug-in is
used to compile Windows C-Sharp

00:07:51.010 --> 00:07:51.880 align:middle line:90%
stages.

00:07:51.880 --> 00:07:53.470 align:middle line:84%
So I'll get into
what stages are.

00:07:53.470 --> 00:07:55.690 align:middle line:90%
So this is your server here.

00:07:55.690 --> 00:07:58.180 align:middle line:84%
And I'll not go into
the various commands

00:07:58.180 --> 00:08:00.010 align:middle line:84%
that you can
essentially perform,

00:08:00.010 --> 00:08:03.740 align:middle line:84%
or that you can use in regards
to interacting with the server.

00:08:03.740 --> 00:08:05.470 align:middle line:84%
But at the bottom,
you can see, it's

00:08:05.470 --> 00:08:07.060 align:middle line:90%
right of the Empire team server.

00:08:07.060 --> 00:08:08.750 align:middle line:90%
You have 0 agents.

00:08:08.750 --> 00:08:10.510 align:middle line:84%
Agents are essentially
target systems

00:08:10.510 --> 00:08:11.950 align:middle line:90%
that have gained access to.

00:08:11.950 --> 00:08:13.120 align:middle line:90%
You have 0 listeners.

00:08:13.120 --> 00:08:16.580 align:middle line:84%
Listeners are essentially what
they are on the Metasploit

00:08:16.580 --> 00:08:17.080 align:middle line:90%
framework.

00:08:17.080 --> 00:08:20.050 align:middle line:84%
These are essentially just
like a Netcat listener,

00:08:20.050 --> 00:08:21.610 align:middle line:90%
or a multi-handler.

00:08:21.610 --> 00:08:23.620 align:middle line:84%
They are essentially
listening for connections

00:08:23.620 --> 00:08:27.800 align:middle line:84%
from the actual target once
the stager is executed.

00:08:27.800 --> 00:08:30.010 align:middle line:84%
So a stager is just
a piece of code

00:08:30.010 --> 00:08:32.860 align:middle line:84%
that is executed on a
target operating system.

00:08:32.860 --> 00:08:37.539 align:middle line:84%
The stager actually contains
information like the attacker's

00:08:37.539 --> 00:08:38.500 align:middle line:90%
IP address--

00:08:38.500 --> 00:08:42.520 align:middle line:84%
or in this case, the listener
IP that we will be setting up.

00:08:42.520 --> 00:08:47.770 align:middle line:84%
So again, this utilizes
the typical reverse-shell

00:08:47.770 --> 00:08:51.500 align:middle line:84%
communication methodology, or
infrastructure, if you will.

00:08:51.500 --> 00:08:52.000 align:middle line:90%
All right.

00:08:52.000 --> 00:08:54.830 align:middle line:84%
So that is the
PowerShell-Empire server.

00:08:54.830 --> 00:08:56.140 align:middle line:90%
So I'll open up a new tab.

00:08:56.140 --> 00:08:58.900 align:middle line:84%
It's important that
you actually have

00:08:58.900 --> 00:09:01.030 align:middle line:84%
the PowerShell-Empire
server running in order

00:09:01.030 --> 00:09:02.510 align:middle line:90%
to utilize the client.

00:09:02.510 --> 00:09:04.870 align:middle line:84%
So I think that's
pretty self-explanatory.

00:09:04.870 --> 00:09:09.330 align:middle line:84%
So again, we just type in,
sudo powershell-empire.

00:09:09.330 --> 00:09:11.610 align:middle line:90%
And we now type in, client.

00:09:11.610 --> 00:09:13.020 align:middle line:90%
And I'll hit Enter.

00:09:13.020 --> 00:09:14.230 align:middle line:90%
Type in my password.

00:09:14.230 --> 00:09:14.800 align:middle line:90%
There we are.

00:09:14.800 --> 00:09:16.770 align:middle line:84%
And that's going to start
up the actual client.

00:09:16.770 --> 00:09:17.470 align:middle line:90%
So there we are.

00:09:17.470 --> 00:09:18.840 align:middle line:90%
Welcome to the Empire.

00:09:18.840 --> 00:09:23.580 align:middle line:84%
It's then going to connect
to the actual API that

00:09:23.580 --> 00:09:26.782 align:middle line:84%
was actually referenced
here on the server.

00:09:26.782 --> 00:09:27.490 align:middle line:90%
And there we are.

00:09:27.490 --> 00:09:29.040 align:middle line:90%
So welcome to PowerShell-Empire.

00:09:29.040 --> 00:09:33.090 align:middle line:84%
As you can see it has
quite a similar interface

00:09:33.090 --> 00:09:35.010 align:middle line:90%
to that of MSF Console.

00:09:35.010 --> 00:09:37.735 align:middle line:84%
So you have your
prompt here that,

00:09:37.735 --> 00:09:39.360 align:middle line:84%
again, tells you that
you are currently

00:09:39.360 --> 00:09:40.410 align:middle line:90%
working within Empire.

00:09:40.410 --> 00:09:44.820 align:middle line:84%
It tells you that we have 390
eight modules currently loaded,

00:09:44.820 --> 00:09:48.340 align:middle line:84%
0 listeners currently active,
and 0 agents currently active.

00:09:48.340 --> 00:09:50.490 align:middle line:84%
So listeners tells
you how many listeners

00:09:50.490 --> 00:09:52.590 align:middle line:84%
you currently have active,
and agents tells you

00:09:52.590 --> 00:09:56.220 align:middle line:84%
how many systems that you
have exploited-- you currently

00:09:56.220 --> 00:09:56.940 align:middle line:90%
have access to.

00:09:56.940 --> 00:09:59.250 align:middle line:84%
So within the actual
client is where

00:09:59.250 --> 00:10:02.100 align:middle line:84%
we can start typing in commands,
like listeners, to list out

00:10:02.100 --> 00:10:05.160 align:middle line:84%
the listeners available,
or agents, so on

00:10:05.160 --> 00:10:07.380 align:middle line:90%
and so forth-- and also stages.

00:10:07.380 --> 00:10:10.000 align:middle line:84%
But we'll get into that
in a couple of seconds.

00:10:10.000 --> 00:10:10.500 align:middle line:90%
All right.

00:10:10.500 --> 00:10:13.890 align:middle line:84%
So in terms of navigating
around the client,

00:10:13.890 --> 00:10:15.580 align:middle line:90%
it's very, very simple.

00:10:15.580 --> 00:10:17.138 align:middle line:84%
Let's take a look
at Starkiller now.

00:10:17.138 --> 00:10:18.930 align:middle line:84%
So once you've installed
Starkiller as well

00:10:18.930 --> 00:10:23.190 align:middle line:84%
as PowerShell-Empire just
open up the actual menu here,

00:10:23.190 --> 00:10:24.370 align:middle line:90%
and you can search for it.

00:10:24.370 --> 00:10:27.990 align:middle line:90%
So Starkiller, there it.

00:10:27.990 --> 00:10:30.720 align:middle line:84%
The icon is in fact
that of a Starkiller,

00:10:30.720 --> 00:10:33.120 align:middle line:84%
if you're familiar with
what a Starkiller is.

00:10:33.120 --> 00:10:37.920 align:middle line:84%
So you can see it connects
to the actual RESTful API--

00:10:37.920 --> 00:10:40.350 align:middle line:84%
the PowerShell-Empire
server RESTful API.

00:10:40.350 --> 00:10:43.140 align:middle line:90%
So that's localhost port 1337.

00:10:43.140 --> 00:10:46.050 align:middle line:84%
Now, in order to log in
the default credentials

00:10:46.050 --> 00:10:49.230 align:middle line:84%
that you can use to get
started are Empire admin.

00:10:49.230 --> 00:10:53.070 align:middle line:84%
And the password, I
believe, is password123.

00:10:53.070 --> 00:10:57.600 align:middle line:84%
So we can type in empire
admin and password.

00:10:57.600 --> 00:11:00.600 align:middle line:84%
And I'll just type that in
correctly-- so password123.

00:11:00.600 --> 00:11:03.390 align:middle line:84%
And we can click on
remember URL and username.

00:11:03.390 --> 00:11:06.110 align:middle line:90%
So submit.

00:11:06.110 --> 00:11:08.340 align:middle line:84%
And that log you
into Starkiller.

00:11:08.340 --> 00:11:08.840 align:middle line:90%
All right.

00:11:08.840 --> 00:11:11.000 align:middle line:84%
So as I said,
Starkiller is a frontend

00:11:11.000 --> 00:11:14.090 align:middle line:84%
for the PowerShell-Empire
framework-- more specifically,

00:11:14.090 --> 00:11:15.770 align:middle line:90%
the client side of things--

00:11:15.770 --> 00:11:17.690 align:middle line:84%
but it also provides
you with functionality

00:11:17.690 --> 00:11:20.040 align:middle line:84%
that allows you to
interact with the server.

00:11:20.040 --> 00:11:24.210 align:middle line:84%
So you can see that it's a
very well designed interface.

00:11:24.210 --> 00:11:25.700 align:middle line:84%
And if you head
over to the left,

00:11:25.700 --> 00:11:28.130 align:middle line:84%
you have a collapsible
sidebar here,

00:11:28.130 --> 00:11:30.800 align:middle line:84%
that tells you the
version of Starkiller.

00:11:30.800 --> 00:11:34.490 align:middle line:84%
And from this menu, you have
listeners, stages, agents,

00:11:34.490 --> 00:11:37.670 align:middle line:84%
modules, credentials,
reporting, users,

00:11:37.670 --> 00:11:39.650 align:middle line:84%
and plug-ins settings,
about, et cetera.

00:11:39.650 --> 00:11:41.483 align:middle line:84%
So if you click on
About, that will give you

00:11:41.483 --> 00:11:44.240 align:middle line:84%
information regarding this
specific build of Starkiller.

00:11:44.240 --> 00:11:45.945 align:middle line:84%
On the left, you can
click on Settings.

00:11:45.945 --> 00:11:48.320 align:middle line:84%
This will allow you to change
or switch between dark mode

00:11:48.320 --> 00:11:49.290 align:middle line:90%
and light mode--

00:11:49.290 --> 00:11:51.180 align:middle line:90%
so whatever suits you.

00:11:51.180 --> 00:11:53.300 align:middle line:84%
You can also update your
current user password.

00:11:53.300 --> 00:11:54.510 align:middle line:90%
I'd recommend doing that.

00:11:54.510 --> 00:11:57.780 align:middle line:84%
And you can also clear the
application data, if you want.

00:11:57.780 --> 00:11:59.780 align:middle line:84%
And that will clear
the UI preferences

00:11:59.780 --> 00:12:02.180 align:middle line:90%
and the locally-stored stages.

00:12:02.180 --> 00:12:03.740 align:middle line:90%
You then have your plug-ins.

00:12:03.740 --> 00:12:06.460 align:middle line:84%
Now, by default, you'll
have three plug-ins here.

00:12:06.460 --> 00:12:07.910 align:middle line:90%
You'll have you C-Sharp server.

00:12:07.910 --> 00:12:11.220 align:middle line:84%
You'll have Websockify and
Reverse Shell Stages server.

00:12:11.220 --> 00:12:14.630 align:middle line:84%
So this is a server for
Reverse Shell using msfvenom

00:12:14.630 --> 00:12:16.460 align:middle line:90%
to act as stage 0.

00:12:16.460 --> 00:12:19.520 align:middle line:84%
And we then have C-Sharp server,
which is an Empire C-Sharp

00:12:19.520 --> 00:12:20.660 align:middle line:90%
server for agents.

00:12:20.660 --> 00:12:22.550 align:middle line:84%
More specifically,
the C-Sharp server

00:12:22.550 --> 00:12:27.680 align:middle line:84%
allows you to compile
C-Sharp stages.

00:12:27.680 --> 00:12:29.810 align:middle line:84%
So it allows you to
compile C-Sharp stages

00:12:29.810 --> 00:12:31.460 align:middle line:90%
for Windows targets.

00:12:31.460 --> 00:12:34.460 align:middle line:84%
Once those stages are
compiled, of course, the output

00:12:34.460 --> 00:12:36.140 align:middle line:90%
will be in the form of an EXE.

00:12:36.140 --> 00:12:38.090 align:middle line:84%
Once that stager
is compiled, you

00:12:38.090 --> 00:12:41.570 align:middle line:84%
can then transfer it over
to the target Windows system

00:12:41.570 --> 00:12:42.530 align:middle line:90%
and execute it.

00:12:42.530 --> 00:12:46.130 align:middle line:84%
Alternatively, the stager could
be a part of a larger exploit.

00:12:46.130 --> 00:12:49.050 align:middle line:84%
And yeah, so that's
essentially the plug-ins there.

00:12:49.050 --> 00:12:51.570 align:middle line:84%
So I would recommend starting
up the C-Sharp server.

00:12:51.570 --> 00:12:55.730 align:middle line:84%
So make sure the status is set
to start, and click on Submit.

00:12:55.730 --> 00:12:57.320 align:middle line:84%
And you can see it's
already started,

00:12:57.320 --> 00:13:01.410 align:middle line:84%
as we saw within the
PowerShell-Empire server here.

00:13:01.410 --> 00:13:02.400 align:middle line:90%
So there we are.

00:13:02.400 --> 00:13:05.730 align:middle line:84%
It tells us plug-in C-Sharp
server ran successfully.

00:13:05.730 --> 00:13:06.230 align:middle line:90%
All right.

00:13:06.230 --> 00:13:07.430 align:middle line:90%
So that's your plug-ins.

00:13:07.430 --> 00:13:09.890 align:middle line:84%
Users-- this allows you
to create other users that

00:13:09.890 --> 00:13:12.140 align:middle line:90%
can access Starkiller.

00:13:12.140 --> 00:13:15.230 align:middle line:84%
So right now, we are
currently empire admin.

00:13:15.230 --> 00:13:17.700 align:middle line:84%
And you can modify details
pertinent to that account.

00:13:17.700 --> 00:13:19.370 align:middle line:84%
So you can change
the password as you

00:13:19.370 --> 00:13:20.780 align:middle line:90%
could within the settings.

00:13:20.780 --> 00:13:22.817 align:middle line:84%
You then have reporting,
which allows you--

00:13:22.817 --> 00:13:24.650 align:middle line:84%
and again, I'll not get
into this right now.

00:13:24.650 --> 00:13:29.750 align:middle line:84%
It allows you to essentially
start compiling or reporting

00:13:29.750 --> 00:13:31.610 align:middle line:84%
pertinent to actions
that you've performed,

00:13:31.610 --> 00:13:35.560 align:middle line:84%
or tasks that you've performed
on the target system.

00:13:35.560 --> 00:13:38.890 align:middle line:90%
You then have credentials.

00:13:38.890 --> 00:13:42.790 align:middle line:84%
This particular page
allows you to actually view

00:13:42.790 --> 00:13:45.670 align:middle line:84%
the credentials you have been
able to gather from the target

00:13:45.670 --> 00:13:48.310 align:middle line:84%
systems, or the agents
that have gained access to.

00:13:48.310 --> 00:13:50.880 align:middle line:84%
And you also have the ability
to create your own credential

00:13:50.880 --> 00:13:51.380 align:middle line:90%
here.

00:13:51.380 --> 00:13:54.760 align:middle line:84%
So it has great
logging functionality,

00:13:54.760 --> 00:13:56.620 align:middle line:84%
that allows you to
store important data

00:13:56.620 --> 00:13:59.860 align:middle line:84%
pertinent to your exploitation
and the activities

00:13:59.860 --> 00:14:02.200 align:middle line:90%
involved in post-exploitation.

00:14:02.200 --> 00:14:05.170 align:middle line:84%
As for your modules, these are
the available modules here.

00:14:05.170 --> 00:14:07.210 align:middle line:90%
You can see you have about 398.

00:14:07.210 --> 00:14:10.370 align:middle line:84%
I can change that to
list a hundred per page.

00:14:10.370 --> 00:14:12.850 align:middle line:84%
And as I said,
these are primarily

00:14:12.850 --> 00:14:16.660 align:middle line:84%
going to be, I would say,
in most cases Windows

00:14:16.660 --> 00:14:18.410 align:middle line:90%
post-exploitation modules.

00:14:18.410 --> 00:14:20.560 align:middle line:84%
So you can see the modules
are listed over here.

00:14:20.560 --> 00:14:22.670 align:middle line:84%
And they perform various
types of functionality.

00:14:22.670 --> 00:14:27.160 align:middle line:84%
So for example, we have C-Sharp
SharpSploit lateral movement

00:14:27.160 --> 00:14:30.010 align:middle line:84%
via the WMI
interface on Windows.

00:14:30.010 --> 00:14:32.180 align:middle line:90%
So WMIGrunt, et cetera.

00:14:32.180 --> 00:14:36.230 align:middle line:84%
And you can actually search
for specific modules.

00:14:36.230 --> 00:14:39.160 align:middle line:84%
So for example, if I was
looking for persistence modules

00:14:39.160 --> 00:14:41.920 align:middle line:84%
like so, I can search
for persistence modules.

00:14:41.920 --> 00:14:44.800 align:middle line:84%
And this will bring up all the
available persistence modules.

00:14:44.800 --> 00:14:48.100 align:middle line:84%
And in many cases,
these are primarily

00:14:48.100 --> 00:14:49.640 align:middle line:90%
designed for Windows systems.

00:14:49.640 --> 00:14:54.010 align:middle line:84%
However, at the bottom, you can
see that you have your Python.

00:14:54.010 --> 00:14:55.690 align:middle line:84%
You have your
various modules that

00:14:55.690 --> 00:14:58.480 align:middle line:84%
have been designed in
Python specifically

00:14:58.480 --> 00:15:00.910 align:middle line:90%
for Mac OS, right over here.

00:15:00.910 --> 00:15:03.400 align:middle line:84%
So you can see OS
X. And then you also

00:15:03.400 --> 00:15:05.080 align:middle line:90%
have your multi-option here.

00:15:05.080 --> 00:15:07.780 align:middle line:84%
This is for multiple
operating systems,

00:15:07.780 --> 00:15:11.000 align:middle line:84%
primarily in this case
for Linux or Unix.

00:15:11.000 --> 00:15:11.500 align:middle line:90%
OK.

00:15:11.500 --> 00:15:13.840 align:middle line:84%
And on the right, you can see
that you have your technique

00:15:13.840 --> 00:15:14.340 align:middle line:90%
ID.

00:15:14.340 --> 00:15:18.370 align:middle line:84%
This essentially provides
you with a reference

00:15:18.370 --> 00:15:21.610 align:middle line:84%
that you can then compare
to with the Mitre ATT&CK

00:15:21.610 --> 00:15:22.150 align:middle line:90%
framework.

00:15:22.150 --> 00:15:26.350 align:middle line:84%
And you can essentially see
what this particular module

00:15:26.350 --> 00:15:29.740 align:middle line:84%
is a part of in terms of the
technique highlighted here

00:15:29.740 --> 00:15:33.550 align:middle line:84%
within the Mitre ATT&CK
framework right over here.

00:15:33.550 --> 00:15:35.680 align:middle line:84%
So that's very
important information.

00:15:35.680 --> 00:15:39.580 align:middle line:84%
And as I said, this is a
very, very useful exploitation

00:15:39.580 --> 00:15:41.440 align:middle line:90%
framework for red teamers.

00:15:41.440 --> 00:15:44.320 align:middle line:84%
You then have your listeners,
stages, and agents.

00:15:44.320 --> 00:15:45.580 align:middle line:90%
So this is very important.

00:15:45.580 --> 00:15:47.267 align:middle line:90%
Your listeners are exactly that.

00:15:47.267 --> 00:15:48.850 align:middle line:84%
They are just listeners
that are going

00:15:48.850 --> 00:15:52.150 align:middle line:84%
to essentially listen for
connections from your target

00:15:52.150 --> 00:15:52.960 align:middle line:90%
systems.

00:15:52.960 --> 00:15:57.590 align:middle line:84%
You then have your
stages right over here.

00:15:57.590 --> 00:15:59.590 align:middle line:84%
As I've already
mentioned previously,

00:15:59.590 --> 00:16:01.450 align:middle line:84%
these are essentially
just pieces of code,

00:16:01.450 --> 00:16:05.240 align:middle line:84%
or executables that will be
executed on the target system.

00:16:05.240 --> 00:16:07.360 align:middle line:84%
Now, how you deliver
them to the target system

00:16:07.360 --> 00:16:08.680 align:middle line:90%
is entirely up to you.

00:16:08.680 --> 00:16:12.190 align:middle line:84%
They can be part of a
social engineering campaign.

00:16:12.190 --> 00:16:16.570 align:middle line:84%
You can also inject
some of the stages

00:16:16.570 --> 00:16:19.510 align:middle line:84%
you generate here
into documents,

00:16:19.510 --> 00:16:20.890 align:middle line:90%
in the form of macros.

00:16:20.890 --> 00:16:23.680 align:middle line:84%
You can inject these stages,
if they are executables,

00:16:23.680 --> 00:16:25.600 align:middle line:90%
into legitimate executables.

00:16:25.600 --> 00:16:27.860 align:middle line:84%
There are various
techniques that you can use.

00:16:27.860 --> 00:16:29.800 align:middle line:84%
And then, of course,
you have your agents.

00:16:29.800 --> 00:16:32.350 align:middle line:84%
So your agents, this
is a dynamic page, that

00:16:32.350 --> 00:16:35.560 align:middle line:84%
will essentially show up, or
bring up any of the systems

00:16:35.560 --> 00:16:38.050 align:middle line:84%
that you've exploited,
or any of the systems

00:16:38.050 --> 00:16:40.420 align:middle line:84%
on which a stager
has been ran on.

00:16:40.420 --> 00:16:43.330 align:middle line:84%
And agents are essentially
your target systems.

00:16:43.330 --> 00:16:46.570 align:middle line:84%
And you have the ability to have
more than one, up to as many

00:16:46.570 --> 00:16:47.480 align:middle line:90%
as you want.

00:16:47.480 --> 00:16:49.642 align:middle line:84%
And the information
displayed, of course,

00:16:49.642 --> 00:16:51.100 align:middle line:84%
will essentially
display the name--

00:16:51.100 --> 00:16:53.270 align:middle line:84%
when it was last seen,
when it was first seen.

00:16:53.270 --> 00:16:55.960 align:middle line:84%
So in the event the
system goes offline,

00:16:55.960 --> 00:16:57.880 align:middle line:90%
it'll display the times here.

00:16:57.880 --> 00:17:00.100 align:middle line:84%
You then have the hostname,
process, architecture,

00:17:00.100 --> 00:17:04.000 align:middle line:84%
language, username,
internal IP, and actions.

00:17:04.000 --> 00:17:07.000 align:middle line:84%
So let's get started
with a simple scenario.

00:17:07.000 --> 00:17:10.540 align:middle line:84%
And I'll perform this through
Starkiller Because as I said,

00:17:10.540 --> 00:17:13.760 align:middle line:84%
PowerShell-Empire can be quite
confusing in the beginning,

00:17:13.760 --> 00:17:16.300 align:middle line:84%
especially through
the CLI interface,

00:17:16.300 --> 00:17:19.099 align:middle line:84%
or through the PowerShell-Empire
client interface.

00:17:19.099 --> 00:17:20.980 align:middle line:84%
So the first thing
we need to do is

00:17:20.980 --> 00:17:24.270 align:middle line:90%
we need to create a listener.

00:17:24.270 --> 00:17:26.430 align:middle line:84%
So the reason we need
to create a listener

00:17:26.430 --> 00:17:28.440 align:middle line:84%
is in order to receive
the reverse connection

00:17:28.440 --> 00:17:29.680 align:middle line:90%
from the target system.

00:17:29.680 --> 00:17:32.680 align:middle line:90%
So we'll create a listener here.

00:17:32.680 --> 00:17:33.690 align:middle line:90%
So I'll click on Create.

00:17:33.690 --> 00:17:35.580 align:middle line:84%
You then need to
specify the type.

00:17:35.580 --> 00:17:38.370 align:middle line:84%
Now, again, the
type will typically

00:17:38.370 --> 00:17:41.130 align:middle line:84%
depend on your own environment
that you're working on it.

00:17:41.130 --> 00:17:44.160 align:middle line:84%
It could be a Meterpreter,
listener, et cetera.

00:17:44.160 --> 00:17:45.840 align:middle line:84%
However, I would
typically recommend

00:17:45.840 --> 00:17:49.710 align:middle line:84%
using the HTTP, listener
or the http_hop listener.

00:17:49.710 --> 00:17:52.350 align:middle line:84%
Now as I said, if you
want to learn more

00:17:52.350 --> 00:17:55.110 align:middle line:84%
about these listeners and how
they differ from each other,

00:17:55.110 --> 00:17:58.710 align:middle line:84%
you can check out the
PowerShell-Empire documentation

00:17:58.710 --> 00:18:01.560 align:middle line:84%
page that I highlighted
within the slides.

00:18:01.560 --> 00:18:05.180 align:middle line:90%
So I'll specify HTTP here.

00:18:05.180 --> 00:18:07.650 align:middle line:84%
And you then need to
specify additional options.

00:18:07.650 --> 00:18:11.030 align:middle line:84%
So the name for your listener,
I'll just leave that as HTTP.

00:18:11.030 --> 00:18:14.130 align:middle line:84%
And for the host, this is
going to be your IP address.

00:18:14.130 --> 00:18:17.150 align:middle line:84%
So make sure that it corresponds
with your Kali Linux IP.

00:18:17.150 --> 00:18:18.890 align:middle line:90%
So open up a new terminal.

00:18:18.890 --> 00:18:21.770 align:middle line:90%
And I say, ifconfig.

00:18:21.770 --> 00:18:22.690 align:middle line:90%
Just type in, kali.

00:18:22.690 --> 00:18:23.232 align:middle line:90%
There we are.

00:18:23.232 --> 00:18:27.250 align:middle line:84%
So you can see my IP
address is 10.10.10.5.

00:18:27.250 --> 00:18:29.200 align:middle line:90%
And that is done.

00:18:29.200 --> 00:18:30.910 align:middle line:84%
As for the port,
you can configure

00:18:30.910 --> 00:18:32.990 align:middle line:90%
this to whatever you want.

00:18:32.990 --> 00:18:38.740 align:middle line:84%
So for example, we can set this
up on maybe port 1335, or 1336.

00:18:38.740 --> 00:18:40.220 align:middle line:90%
It gives you the options there.

00:18:40.220 --> 00:18:41.140 align:middle line:90%
So we can say 1335.

00:18:41.140 --> 00:18:46.070 align:middle line:84%
If we wanted to specify
a bind IP option,

00:18:46.070 --> 00:18:48.100 align:middle line:84%
this allows you
to specify the IP

00:18:48.100 --> 00:18:50.450 align:middle line:90%
to bind on the control server.

00:18:50.450 --> 00:18:53.020 align:middle line:84%
We're not going to go
through that right now.

00:18:53.020 --> 00:18:55.370 align:middle line:84%
And we can take a look
at the default delay.

00:18:55.370 --> 00:18:58.030 align:middle line:84%
So that's the agent delay
reach back interval.

00:18:58.030 --> 00:19:00.130 align:middle line:90%
And the default jitter--

00:19:00.130 --> 00:19:02.050 align:middle line:84%
that is the jitter
options that allows

00:19:02.050 --> 00:19:05.770 align:middle line:84%
you to specify the jitter in
the agent reach back interval.

00:19:05.770 --> 00:19:08.968 align:middle line:84%
You then have your default
profile right over here.

00:19:08.968 --> 00:19:11.260 align:middle line:84%
That's the default communication
profile for the agent,

00:19:11.260 --> 00:19:13.270 align:middle line:90%
because it's an HTTP listener.

00:19:13.270 --> 00:19:15.310 align:middle line:84%
And the headers, you
can specify whatever

00:19:15.310 --> 00:19:18.310 align:middle line:84%
header you want-- because,
again, the stager is

00:19:18.310 --> 00:19:20.290 align:middle line:90%
communicating to a listener.

00:19:20.290 --> 00:19:22.780 align:middle line:84%
And because this is
an HTTP listener,

00:19:22.780 --> 00:19:25.740 align:middle line:84%
you can provide headers
pertinent to an HTTP web

00:19:25.740 --> 00:19:26.240 align:middle line:90%
server.

00:19:26.240 --> 00:19:28.360 align:middle line:90%
So for example, Microsoft IIS.

00:19:28.360 --> 00:19:30.370 align:middle line:84%
And then, you also
have your launcher.

00:19:30.370 --> 00:19:32.650 align:middle line:84%
This is going to
be the PowerShell.

00:19:32.650 --> 00:19:34.360 align:middle line:84%
These are the partial
arguments that

00:19:34.360 --> 00:19:37.970 align:middle line:84%
are going to be executed--
so the launcher string.

00:19:37.970 --> 00:19:39.410 align:middle line:90%
And then, your staging key--

00:19:39.410 --> 00:19:42.830 align:middle line:84%
this is the staging key for
the initial agent negotiation.

00:19:42.830 --> 00:19:46.160 align:middle line:84%
As I mentioned in the slides,
there is actual encryption.

00:19:46.160 --> 00:19:47.660 align:middle line:84%
And that's one of
the great features

00:19:47.660 --> 00:19:51.180 align:middle line:84%
that PowerShell-Empire
provides you with.

00:19:51.180 --> 00:19:51.680 align:middle line:90%
OK.

00:19:51.680 --> 00:19:57.650 align:middle line:84%
So we'll leave all of the
other options as they are.

00:19:57.650 --> 00:20:01.550 align:middle line:84%
And we can essentially
change the user agent

00:20:01.550 --> 00:20:03.380 align:middle line:84%
string, or the
name of the agent,

00:20:03.380 --> 00:20:04.670 align:middle line:90%
but we'll leave it as is.

00:20:04.670 --> 00:20:06.500 align:middle line:90%
And we'll click on Submit.

00:20:06.500 --> 00:20:10.140 align:middle line:84%
And you can see the new
listener HTTP started.

00:20:10.140 --> 00:20:12.090 align:middle line:90%
So we can click on View there.

00:20:12.090 --> 00:20:14.570 align:middle line:84%
And if it actually
doesn't reload,

00:20:14.570 --> 00:20:16.520 align:middle line:84%
then you can head over
back into listeners.

00:20:16.520 --> 00:20:18.890 align:middle line:84%
And we have our
listeners set up here.

00:20:18.890 --> 00:20:20.240 align:middle line:90%
OK, so our listener is set up.

00:20:20.240 --> 00:20:22.550 align:middle line:84%
The next step, of course,
is to generate our stager.

00:20:22.550 --> 00:20:24.770 align:middle line:90%
So we'll click on stagers here.

00:20:24.770 --> 00:20:26.490 align:middle line:90%
And we can get started.

00:20:26.490 --> 00:20:27.740 align:middle line:90%
So I'll click on Create.

00:20:27.740 --> 00:20:29.660 align:middle line:90%
And the type in this case--

00:20:29.660 --> 00:20:32.250 align:middle line:84%
again, depending on your
target operating system,

00:20:32.250 --> 00:20:33.840 align:middle line:90%
it could be a Linux system.

00:20:33.840 --> 00:20:36.320 align:middle line:84%
So in that case, you
can use a bash stager.

00:20:36.320 --> 00:20:39.320 align:middle line:84%
So if you go back to the
bind and reverse shell

00:20:39.320 --> 00:20:41.930 align:middle line:84%
section of this course,
on the last video where

00:20:41.930 --> 00:20:44.180 align:middle line:84%
we are taking a look at the
reverse shell cheat sheet,

00:20:44.180 --> 00:20:49.250 align:middle line:84%
I mentioned that
the target doesn't

00:20:49.250 --> 00:20:53.420 align:middle line:84%
need to initiate a connection
to the listener with Netcat.

00:20:53.420 --> 00:20:56.690 align:middle line:84%
It can also be done with a
PowerShell code, bash code,

00:20:56.690 --> 00:20:57.810 align:middle line:90%
so on and so forth.

00:20:57.810 --> 00:21:01.100 align:middle line:84%
So you can see this is
typically for Linux.

00:21:01.100 --> 00:21:07.260 align:middle line:84%
You also have your
various OS X stages here.

00:21:07.260 --> 00:21:10.070 align:middle line:84%
But in this case, what we
are primarily looking for

00:21:10.070 --> 00:21:12.360 align:middle line:90%
is the Windows stages.

00:21:12.360 --> 00:21:14.960 align:middle line:84%
And we have different
types of Windows stages.

00:21:14.960 --> 00:21:16.560 align:middle line:90%
We have Windows cmd exec.

00:21:16.560 --> 00:21:18.800 align:middle line:84%
So that's a CMD
code that will then

00:21:18.800 --> 00:21:22.340 align:middle line:84%
be executed on the target system
within the command prompt.

00:21:22.340 --> 00:21:24.800 align:middle line:84%
We are looking for
Windows C-Sharp exe.

00:21:24.800 --> 00:21:29.570 align:middle line:84%
That will generate a Windows
executable, that will then

00:21:29.570 --> 00:21:31.130 align:middle line:90%
connect back to our listener.

00:21:31.130 --> 00:21:33.680 align:middle line:90%
So we'll give it the following.

00:21:33.680 --> 00:21:35.660 align:middle line:90%
We'll leave the name as is.

00:21:35.660 --> 00:21:38.820 align:middle line:84%
And the listener-- we'll specify
the listener that we created--

00:21:38.820 --> 00:21:40.040 align:middle line:90%
so HTTP.

00:21:40.040 --> 00:21:41.600 align:middle line:90%
The language is C-Sharp.

00:21:41.600 --> 00:21:45.770 align:middle line:84%
You can specify the .NET version
based on what version of .NET

00:21:45.770 --> 00:21:48.630 align:middle line:84%
is installed on
the target system.

00:21:48.630 --> 00:21:52.790 align:middle line:84%
So in this case, we'll
leave it as .NET 4.0.

00:21:52.790 --> 00:21:55.820 align:middle line:84%
The out file, this is the
name of the actual stager--

00:21:55.820 --> 00:21:58.710 align:middle line:84%
so when it's generated,
what do you want to call it?

00:21:58.710 --> 00:22:03.410 align:middle line:84%
So in this case, we can
call it just stager, just

00:22:03.410 --> 00:22:05.610 align:middle line:90%
to keep things really simple.

00:22:05.610 --> 00:22:08.750 align:middle line:84%
If you want to add any
bypasses, you can perform that.

00:22:08.750 --> 00:22:10.797 align:middle line:84%
As for obfuscation
this is something

00:22:10.797 --> 00:22:12.380 align:middle line:84%
that I will not be
covering right now.

00:22:12.380 --> 00:22:14.900 align:middle line:84%
This allows you to
obfuscate the code

00:22:14.900 --> 00:22:19.760 align:middle line:84%
based on the actual security
mechanisms and antivirus

00:22:19.760 --> 00:22:21.620 align:middle line:84%
solutions installed
on the target.

00:22:21.620 --> 00:22:26.490 align:middle line:84%
Once that is all specified,
you can click on Submit.

00:22:26.490 --> 00:22:28.290 align:middle line:84%
And the stager is
then going to be

00:22:28.290 --> 00:22:32.190 align:middle line:84%
compiled into the final
executable, called stager.exe.

00:22:32.190 --> 00:22:34.798 align:middle line:84%
So give this a
couple of seconds.

00:22:34.798 --> 00:22:35.340 align:middle line:90%
There we are.

00:22:35.340 --> 00:22:36.810 align:middle line:90%
So it looks like it's done.

00:22:36.810 --> 00:22:39.710 align:middle line:84%
You can see that that
has been created there.

00:22:39.710 --> 00:22:41.960 align:middle line:84%
And the listener is
the HTTP listener.

00:22:41.960 --> 00:22:43.610 align:middle line:84%
You can then head
over into Actions

00:22:43.610 --> 00:22:45.260 align:middle line:90%
and download the stager.

00:22:45.260 --> 00:22:47.060 align:middle line:90%
So you can see stager.exe.

00:22:47.060 --> 00:22:50.330 align:middle line:84%
So I'll save it on in
my Downloads folder.

00:22:50.330 --> 00:22:50.940 align:middle line:90%
There we are.

00:22:50.940 --> 00:22:54.150 align:middle line:84%
And if I open up my
Downloads folder now,

00:22:54.150 --> 00:22:55.980 align:middle line:84%
you can see that
we have stager.exe.

00:22:55.980 --> 00:23:00.000 align:middle line:84%
So this stager, this
contains the code

00:23:00.000 --> 00:23:01.810 align:middle line:84%
that will connect
back to our listener.

00:23:01.810 --> 00:23:04.620 align:middle line:84%
Now, as I said, it can be
part of a larger exploit.

00:23:04.620 --> 00:23:06.630 align:middle line:84%
And again, in terms
of stages, you're

00:23:06.630 --> 00:23:09.810 align:middle line:84%
not just limited to
generating executables.

00:23:09.810 --> 00:23:13.050 align:middle line:84%
Especially for Windows systems,
you can generate batch files.

00:23:13.050 --> 00:23:14.160 align:middle line:90%
You also have VBS--

00:23:14.160 --> 00:23:16.650 align:middle line:90%
so VBS scripts.

00:23:16.650 --> 00:23:20.160 align:middle line:84%
And you can also generate
a standard reverse shell

00:23:20.160 --> 00:23:20.760 align:middle line:90%
shellcode.

00:23:20.760 --> 00:23:24.370 align:middle line:84%
So it really is an advanced
framework in that regard.

00:23:24.370 --> 00:23:26.610 align:middle line:84%
So we'll just use the
one that we've generated.

00:23:26.610 --> 00:23:29.080 align:middle line:84%
We now need to transfer
this over to the target.

00:23:29.080 --> 00:23:31.380 align:middle line:84%
So I'll open up
my terminal here.

00:23:31.380 --> 00:23:34.020 align:middle line:90%
And we can open up a new tab.

00:23:34.020 --> 00:23:35.940 align:middle line:84%
And we want to make
sure that we keep

00:23:35.940 --> 00:23:38.410 align:middle line:84%
the PowerShell-Empire
server running.

00:23:38.410 --> 00:23:40.860 align:middle line:84%
So I'll navigate into
my Downloads directory,

00:23:40.860 --> 00:23:45.510 align:middle line:84%
and I'll set up a simple
web server with the Python

00:23:45.510 --> 00:23:47.410 align:middle line:90%
module simple HTTP server.

00:23:47.410 --> 00:23:49.000 align:middle line:90%
So there we are.

00:23:49.000 --> 00:23:50.010 align:middle line:90%
We have stager.exe.

00:23:50.010 --> 00:23:54.045 align:middle line:84%
So I'll say, sudo Python
-m SimpleHTTPServer.

00:23:54.045 --> 00:23:57.150 align:middle line:90%


00:23:57.150 --> 00:24:00.310 align:middle line:90%
And I'll run this on port 80.

00:24:00.310 --> 00:24:01.450 align:middle line:90%
Provide my password.

00:24:01.450 --> 00:24:05.530 align:middle line:84%
And it looks like I need
to run this with Python 3.

00:24:05.530 --> 00:24:08.810 align:middle line:84%
And that is going to
be the HTTP.server.

00:24:08.810 --> 00:24:13.760 align:middle line:84%
So that was the Python 2
module-- so HTTP.server.

00:24:13.760 --> 00:24:15.710 align:middle line:90%
And I'll just type that in.

00:24:15.710 --> 00:24:19.353 align:middle line:84%
I'll give this a
couple of seconds.

00:24:19.353 --> 00:24:19.895 align:middle line:90%
There we are.

00:24:19.895 --> 00:24:21.200 align:middle line:90%
So HTTP server.

00:24:21.200 --> 00:24:22.280 align:middle line:90%
Hit Enter.

00:24:22.280 --> 00:24:26.180 align:middle line:84%
And that is going to host
that particular stager for us

00:24:26.180 --> 00:24:29.790 align:middle line:84%
on a simple web server that is
accessible via the Kali Linux

00:24:29.790 --> 00:24:30.290 align:middle line:90%
IP.

00:24:30.290 --> 00:24:35.390 align:middle line:84%
So again, the actual method
of delivering the stager

00:24:35.390 --> 00:24:38.120 align:middle line:84%
is entirely up to you,
or to the attacker.

00:24:38.120 --> 00:24:40.760 align:middle line:84%
In this case, we're just taking
a look at a proof of concept

00:24:40.760 --> 00:24:42.890 align:middle line:84%
as to how
PowerShell-Empire works in

00:24:42.890 --> 00:24:45.070 align:middle line:84%
regards to gaining access
to a target system.

00:24:45.070 --> 00:24:48.050 align:middle line:84%
So I'll now switch over
to my Windows 7 VM,

00:24:48.050 --> 00:24:49.880 align:middle line:90%
and I'll download the stager.

00:24:49.880 --> 00:24:51.170 align:middle line:90%
And then, I'll execute it.

00:24:51.170 --> 00:24:53.930 align:middle line:84%
And you'll see that we should
receive an agent callback.

00:24:53.930 --> 00:24:56.690 align:middle line:84%
And the target system should
be displayed within agents.

00:24:56.690 --> 00:25:00.750 align:middle line:84%
So let me just switch over
to the Windows 7 system.

00:25:00.750 --> 00:25:04.080 align:middle line:84%
All right, so I'm back
on the Windows 7 VM.

00:25:04.080 --> 00:25:06.930 align:middle line:84%
And I'll just open up my
browser to download the stager

00:25:06.930 --> 00:25:11.280 align:middle line:84%
from the actual web server
that I set up on the Kali Linux

00:25:11.280 --> 00:25:11.920 align:middle line:90%
system.

00:25:11.920 --> 00:25:13.560 align:middle line:90%
So that was 10.10.10.5.

00:25:13.560 --> 00:25:16.410 align:middle line:84%
This is the IP address
of my Kali Linux VM.

00:25:16.410 --> 00:25:17.220 align:middle line:90%
I'll hit Enter.

00:25:17.220 --> 00:25:19.590 align:middle line:84%
You can see that it's
hosting stager.exe.

00:25:19.590 --> 00:25:22.590 align:middle line:84%
So I'll click on it to
download it, save it.

00:25:22.590 --> 00:25:25.020 align:middle line:90%
And I'll save it on my desktop--

00:25:25.020 --> 00:25:26.830 align:middle line:90%
save and close.

00:25:26.830 --> 00:25:28.990 align:middle line:84%
That looks like it's
downloaded successfully.

00:25:28.990 --> 00:25:30.370 align:middle line:90%
So I can now execute it.

00:25:30.370 --> 00:25:33.210 align:middle line:84%
So again, I'm currently
using a user account

00:25:33.210 --> 00:25:37.240 align:middle line:84%
that is a part of the
local administrators group.

00:25:37.240 --> 00:25:41.440 align:middle line:84%
And if I wanted to execute this
with elevated permissions--

00:25:41.440 --> 00:25:44.790 align:middle line:84%
so if I right-click and
say, run as administrator,

00:25:44.790 --> 00:25:46.920 align:middle line:84%
then I would receive
a privileged agent--

00:25:46.920 --> 00:25:49.950 align:middle line:84%
whereas if I just run
it standard like so--

00:25:49.950 --> 00:25:51.270 align:middle line:90%
just click on Run--

00:25:51.270 --> 00:25:53.850 align:middle line:84%
I should receive a
callback on Starkiller.

00:25:53.850 --> 00:25:57.830 align:middle line:84%
So I'll just switch over
to my Kali Linux VM.

00:25:57.830 --> 00:25:59.240 align:middle line:90%
So I'm back on Starkiller.

00:25:59.240 --> 00:26:01.040 align:middle line:84%
And if I click on
Agents, you can

00:26:01.040 --> 00:26:03.440 align:middle line:84%
see that we get a callback
from the target system.

00:26:03.440 --> 00:26:05.880 align:middle line:84%
And indeed it is the
Windows 7 system.

00:26:05.880 --> 00:26:07.720 align:middle line:84%
So you can see the
process is stager.

00:26:07.720 --> 00:26:10.880 align:middle line:84%
So that's the name of the
executable-- so stager.exe--

00:26:10.880 --> 00:26:13.830 align:middle line:84%
the architecture,
language, the username.

00:26:13.830 --> 00:26:15.170 align:middle line:90%
So we're currently win7.

00:26:15.170 --> 00:26:17.720 align:middle line:84%
That's our user--
and the internal IP.

00:26:17.720 --> 00:26:20.210 align:middle line:84%
And one important thing
that I would recommend doing

00:26:20.210 --> 00:26:21.690 align:middle line:90%
is, of course, renaming this.

00:26:21.690 --> 00:26:24.170 align:middle line:84%
So you can click on an
agent, and that will

00:26:24.170 --> 00:26:25.620 align:middle line:90%
allow you to interact with it.

00:26:25.620 --> 00:26:28.400 align:middle line:84%
But before we do that, you
can actually click on it here,

00:26:28.400 --> 00:26:31.130 align:middle line:90%
and you can specify the actions.

00:26:31.130 --> 00:26:32.510 align:middle line:90%
And you can then view it.

00:26:32.510 --> 00:26:36.590 align:middle line:84%
Within the actual viewing
options, or the interaction,

00:26:36.590 --> 00:26:38.420 align:middle line:84%
you can click on View
here and rename it

00:26:38.420 --> 00:26:41.390 align:middle line:84%
to something that makes much
more sense, like Windows 7--

00:26:41.390 --> 00:26:44.160 align:middle line:84%
so that you can
uniquely identify it.

00:26:44.160 --> 00:26:46.910 align:middle line:84%
Once that is done,
that should be saved.

00:26:46.910 --> 00:26:47.810 align:middle line:90%
Let me see.

00:26:47.810 --> 00:26:48.950 align:middle line:90%
That should be saved.

00:26:48.950 --> 00:26:50.600 align:middle line:84%
And if we go back
into agents, you

00:26:50.600 --> 00:26:52.400 align:middle line:84%
can now see it's
called Windows 7.

00:26:52.400 --> 00:26:54.920 align:middle line:84%
So what can you
do with an agent?

00:26:54.920 --> 00:26:57.770 align:middle line:84%
An agent essentially means
that you have remote access

00:26:57.770 --> 00:26:59.400 align:middle line:90%
to this target system.

00:26:59.400 --> 00:27:01.447 align:middle line:84%
So via Starkiller,
if you click on it,

00:27:01.447 --> 00:27:03.530 align:middle line:84%
you can see that you can
interact with the system.

00:27:03.530 --> 00:27:07.980 align:middle line:84%
You can type in a simple shell
command, or CMD, command,

00:27:07.980 --> 00:27:08.610 align:middle line:90%
if you will.

00:27:08.610 --> 00:27:10.400 align:middle line:90%
So for example, who am I?

00:27:10.400 --> 00:27:11.960 align:middle line:90%
And then hit Run.

00:27:11.960 --> 00:27:14.300 align:middle line:84%
Now, it's going to say,
shell command requested.

00:27:14.300 --> 00:27:16.020 align:middle line:84%
And if you click
on this arrow here,

00:27:16.020 --> 00:27:18.230 align:middle line:84%
it'll actually bring
up a sudo terminal,

00:27:18.230 --> 00:27:21.270 align:middle line:84%
that will display the output
of a command that you've run.

00:27:21.270 --> 00:27:23.810 align:middle line:84%
So when you're using
Starkiller this

00:27:23.810 --> 00:27:27.470 align:middle line:84%
may take a couple of seconds,
so do be wary of that.

00:27:27.470 --> 00:27:30.020 align:middle line:84%
And again, I'm just going to
give this a couple of seconds

00:27:30.020 --> 00:27:30.920 align:middle line:90%
to be executed.

00:27:30.920 --> 00:27:33.530 align:middle line:84%
But while that's being done, we
can click on the file browser.

00:27:33.530 --> 00:27:37.500 align:middle line:84%
This is where things
start getting interesting,

00:27:37.500 --> 00:27:41.000 align:middle line:84%
especially when you compare it
to the Metasploit framework.

00:27:41.000 --> 00:27:44.120 align:middle line:84%
So it provides you with
a graphical file browser

00:27:44.120 --> 00:27:45.090 align:middle line:90%
here on the system.

00:27:45.090 --> 00:27:49.140 align:middle line:84%
So I can navigate the entire
file system on the target.

00:27:49.140 --> 00:27:52.160 align:middle line:84%
So if I click on
the C drive here,

00:27:52.160 --> 00:27:55.260 align:middle line:84%
it will display all the
directories within the C drive.

00:27:55.260 --> 00:27:58.040 align:middle line:84%
So if we go to Users and
give it a couple of seconds--

00:27:58.040 --> 00:28:02.570 align:middle line:84%
because each of these
commands or tasks

00:28:02.570 --> 00:28:04.730 align:middle line:90%
are being executed one by one.

00:28:04.730 --> 00:28:08.060 align:middle line:84%
And let me head over to the
Windows 7 user on the desktop.

00:28:08.060 --> 00:28:10.040 align:middle line:84%
And you should see that
we have the stager file

00:28:10.040 --> 00:28:14.120 align:middle line:84%
that we had copied over, just
to verify that this is indeed

00:28:14.120 --> 00:28:14.745 align:middle line:90%
the system--

00:28:14.745 --> 00:28:15.245 align:middle line:90%
so desktop.

00:28:15.245 --> 00:28:19.630 align:middle line:90%


00:28:19.630 --> 00:28:21.580 align:middle line:90%
Give that a couple of seconds.

00:28:21.580 --> 00:28:22.190 align:middle line:90%
There we are.

00:28:22.190 --> 00:28:23.380 align:middle line:90%
And we have stager.exe.

00:28:23.380 --> 00:28:24.800 align:middle line:90%
So that's the file browser.

00:28:24.800 --> 00:28:27.820 align:middle line:84%
You can also upload files to
the system and download files

00:28:27.820 --> 00:28:28.670 align:middle line:90%
from the system.

00:28:28.670 --> 00:28:31.270 align:middle line:84%
So if I right-click,
for example, on stager,

00:28:31.270 --> 00:28:32.800 align:middle line:90%
I can say, download to empire.

00:28:32.800 --> 00:28:34.150 align:middle line:90%
And that will be saved.

00:28:34.150 --> 00:28:36.070 align:middle line:90%
I can then pop out.

00:28:36.070 --> 00:28:37.570 align:middle line:84%
Which, again, if I
just click on it,

00:28:37.570 --> 00:28:40.180 align:middle line:84%
that'll open up the
actual agent itself.

00:28:40.180 --> 00:28:43.450 align:middle line:84%
And that'll allow me to
interact within its own window.

00:28:43.450 --> 00:28:45.350 align:middle line:90%
But I'll just click on it again.

00:28:45.350 --> 00:28:47.980 align:middle line:84%
And we can then click
on the Tasks tab, which

00:28:47.980 --> 00:28:49.900 align:middle line:84%
will give you a list
of tasks that you've

00:28:49.900 --> 00:28:51.880 align:middle line:90%
executed on the target system.

00:28:51.880 --> 00:28:55.090 align:middle line:84%
We can then click on View, which
displays information regarding

00:28:55.090 --> 00:28:56.060 align:middle line:90%
the target system.

00:28:56.060 --> 00:28:58.630 align:middle line:84%
So right of here, that's
all the information

00:28:58.630 --> 00:29:01.940 align:middle line:84%
that was being displayed
within these columns here.

00:29:01.940 --> 00:29:03.590 align:middle line:90%
So we can click on a system.

00:29:03.590 --> 00:29:05.980 align:middle line:84%
And we can also
execute a module,

00:29:05.980 --> 00:29:10.220 align:middle line:84%
if we wanted to perform any type
of post-exploitation technique.

00:29:10.220 --> 00:29:12.820 align:middle line:84%
So for example, if we
wanted to set up assistance,

00:29:12.820 --> 00:29:15.760 align:middle line:84%
we can use any of the
persistence modules, et cetera.

00:29:15.760 --> 00:29:18.310 align:middle line:84%
Now, in some cases,
you will have an issue

00:29:18.310 --> 00:29:20.240 align:middle line:84%
with the shell commands
being executed,

00:29:20.240 --> 00:29:24.190 align:middle line:84%
so you may have to revert to
the actual PowerShell-Empire

00:29:24.190 --> 00:29:25.390 align:middle line:90%
client.

00:29:25.390 --> 00:29:26.890 align:middle line:84%
I'm currently within
the client, you

00:29:26.890 --> 00:29:30.040 align:middle line:84%
can see it highlights the fact
that a new listener was started

00:29:30.040 --> 00:29:32.200 align:middle line:84%
and a new agent
actually checked in.

00:29:32.200 --> 00:29:34.570 align:middle line:84%
And then, you can see
it's going to send

00:29:34.570 --> 00:29:38.480 align:middle line:84%
the agent and the second stage
to the target for execution.

00:29:38.480 --> 00:29:43.120 align:middle line:84%
So we can say, for example,
agents, and hit Enter.

00:29:43.120 --> 00:29:45.970 align:middle line:84%
And it'll display the
active agents here.

00:29:45.970 --> 00:29:49.160 align:middle line:84%
And we can then say,
interact with the agent--

00:29:49.160 --> 00:29:50.590 align:middle line:90%
so in this case, Windows 7--

00:29:50.590 --> 00:29:51.490 align:middle line:90%
and hit Enter.

00:29:51.490 --> 00:29:54.760 align:middle line:84%
And this is the output of all
the commands that we executed.

00:29:54.760 --> 00:29:57.280 align:middle line:84%
This output may not
make sense to you,

00:29:57.280 --> 00:30:00.660 align:middle line:84%
but this is all the
actual file navigation

00:30:00.660 --> 00:30:01.660 align:middle line:90%
that we were performing.

00:30:01.660 --> 00:30:03.880 align:middle line:84%
So when we were navigating
through the directories,

00:30:03.880 --> 00:30:07.690 align:middle line:84%
this is the output via the
PowerShell-Empire client,

00:30:07.690 --> 00:30:09.460 align:middle line:90%
as opposed to Starkiller.

00:30:09.460 --> 00:30:12.760 align:middle line:84%
We can also see that the
first command that we run--

00:30:12.760 --> 00:30:14.140 align:middle line:90%
the who am I command--

00:30:14.140 --> 00:30:16.160 align:middle line:84%
actually returned
the output here.

00:30:16.160 --> 00:30:18.850 align:middle line:84%
So again, if we wanted
to run a command now,

00:30:18.850 --> 00:30:21.710 align:middle line:90%
you can open up the Help menu.

00:30:21.710 --> 00:30:23.410 align:middle line:84%
So if I say, help,
for example, that

00:30:23.410 --> 00:30:26.450 align:middle line:84%
will give you a list of commands
that you can run on the target.

00:30:26.450 --> 00:30:29.560 align:middle line:84%
So again, if I wanted
to run a command--

00:30:29.560 --> 00:30:31.880 align:middle line:84%
and I'm currently
using the system here.

00:30:31.880 --> 00:30:39.580 align:middle line:84%
So I can say, for example,
ipconfig here and hit Enter.

00:30:39.580 --> 00:30:42.237 align:middle line:84%
And I'll just give this
a couple of seconds.

00:30:42.237 --> 00:30:44.320 align:middle line:84%
And the output of that
command should be displayed

00:30:44.320 --> 00:30:45.278 align:middle line:90%
in a couple of seconds.

00:30:45.278 --> 00:30:51.160 align:middle line:84%
Now, as I said, a
PowerShell-Empire agent really

00:30:51.160 --> 00:30:53.470 align:middle line:84%
doesn't provide you
with real-time feedback

00:30:53.470 --> 00:30:57.070 align:middle line:84%
like a Meterpreter
session would.

00:30:57.070 --> 00:30:59.560 align:middle line:84%
And again, you also
have the ability

00:30:59.560 --> 00:31:03.610 align:middle line:84%
of setting up a
Meterpreter listener,

00:31:03.610 --> 00:31:05.650 align:middle line:84%
so that you obtain an
Meterpreter session.

00:31:05.650 --> 00:31:09.010 align:middle line:84%
And that is all handled from
within PowerShell-Empire.

00:31:09.010 --> 00:31:12.730 align:middle line:84%
So again, if I just say,
interact with Windows 7

00:31:12.730 --> 00:31:15.760 align:middle line:84%
again here, in some
cases, it may actually

00:31:15.760 --> 00:31:18.710 align:middle line:84%
take a while for
that to be displayed.

00:31:18.710 --> 00:31:20.560 align:middle line:90%
So let me hit Exit here.

00:31:20.560 --> 00:31:23.740 align:middle line:84%
No, I don't want to exit
from the actual client.

00:31:23.740 --> 00:31:27.760 align:middle line:84%
If I just list out,
for example, the agents

00:31:27.760 --> 00:31:32.860 align:middle line:84%
here, and I say,
interact with Windows 7,

00:31:32.860 --> 00:31:34.300 align:middle line:84%
it doesn't look
like the output is

00:31:34.300 --> 00:31:37.910 align:middle line:84%
being displayed for the
command that we ran earlier.

00:31:37.910 --> 00:31:40.070 align:middle line:84%
So let's use the
View option here,

00:31:40.070 --> 00:31:43.090 align:middle line:84%
which should display the
historical view of everything

00:31:43.090 --> 00:31:44.620 align:middle line:90%
that was executed.

00:31:44.620 --> 00:31:46.540 align:middle line:84%
As I said, in some
cases, it may actually

00:31:46.540 --> 00:31:47.770 align:middle line:90%
take a couple of seconds.

00:31:47.770 --> 00:31:51.550 align:middle line:84%
If it doesn't, just give
it a couple of seconds.

00:31:51.550 --> 00:31:54.290 align:middle line:84%
And you can also use
the history command.

00:31:54.290 --> 00:31:57.760 align:middle line:84%
So that will display the
last number of tasks results.

00:31:57.760 --> 00:32:00.410 align:middle line:90%
So we can say, history--

00:32:00.410 --> 00:32:01.700 align:middle line:90%
there we are.

00:32:01.700 --> 00:32:06.220 align:middle line:84%
And you can see that
we pretty much have

00:32:06.220 --> 00:32:08.840 align:middle line:90%
the directory navigation here.

00:32:08.840 --> 00:32:11.680 align:middle line:84%
And it looks like it didn't
execute the IP config.

00:32:11.680 --> 00:32:13.400 align:middle line:90%
So let's try and run that here.

00:32:13.400 --> 00:32:16.810 align:middle line:84%
So we go back into Starkiller
and say, IP config,

00:32:16.810 --> 00:32:18.370 align:middle line:90%
and hit Run.

00:32:18.370 --> 00:32:22.420 align:middle line:84%
That's going to be
queued and then executed.

00:32:22.420 --> 00:32:25.720 align:middle line:84%
So if we say,
history, again, that

00:32:25.720 --> 00:32:27.730 align:middle line:84%
should display the IP
config information.

00:32:27.730 --> 00:32:30.620 align:middle line:84%
As I said, you pretty much want
to give it a couple of seconds.

00:32:30.620 --> 00:32:34.730 align:middle line:84%
So I'll just give this
a couple of seconds now.

00:32:34.730 --> 00:32:36.230 align:middle line:84%
So after a couple
of seconds, you

00:32:36.230 --> 00:32:39.530 align:middle line:84%
can see the ipconfig
command is executed.

00:32:39.530 --> 00:32:42.710 align:middle line:84%
And it essentially provides us
with the networking information

00:32:42.710 --> 00:32:43.950 align:middle line:90%
on the target system.

00:32:43.950 --> 00:32:46.580 align:middle line:84%
So as I said,
PowerShell-Empire is really

00:32:46.580 --> 00:32:48.710 align:middle line:90%
used for long-term engagements.

00:32:48.710 --> 00:32:51.140 align:middle line:84%
And that's why I mentioned
that it's used specifically

00:32:51.140 --> 00:32:54.140 align:middle line:84%
by red teamers, in that
it allows you to maintain

00:32:54.140 --> 00:32:56.900 align:middle line:84%
persistent access on
target systems for as long

00:32:56.900 --> 00:32:57.920 align:middle line:90%
as you require--

00:32:57.920 --> 00:33:01.190 align:middle line:84%
and it provides you
with extremely useful

00:33:01.190 --> 00:33:04.010 align:middle line:84%
post-exploitation modules,
that you will typically not

00:33:04.010 --> 00:33:06.210 align:middle line:84%
find on the
Metasploit framework.

00:33:06.210 --> 00:33:08.390 align:middle line:84%
So I just wanted to
give you an introduction

00:33:08.390 --> 00:33:10.513 align:middle line:84%
to PowerShell empire
and Starkiller.

00:33:10.513 --> 00:33:12.680 align:middle line:84%
And again, you can follow
along with the techniques.

00:33:12.680 --> 00:33:14.450 align:middle line:84%
It really is very
simple to replicate.

00:33:14.450 --> 00:33:17.750 align:middle line:84%
You just need a Kali Linux
VM and another Windows VM,

00:33:17.750 --> 00:33:20.600 align:middle line:84%
or a Windows system,
and you can follow along

00:33:20.600 --> 00:33:23.660 align:middle line:84%
with the proof of concept
that I just highlighted.

00:33:23.660 --> 00:33:25.700 align:middle line:84%
And I would recommend
that you actually

00:33:25.700 --> 00:33:28.790 align:middle line:84%
explore the different types of
listeners-- learn how they work

00:33:28.790 --> 00:33:30.920 align:middle line:84%
and how they differ from
one another, as well

00:33:30.920 --> 00:33:33.890 align:middle line:84%
as the various types of stages
you can generate-- and also

00:33:33.890 --> 00:33:36.343 align:middle line:84%
try and gain access
to Linux systems.

00:33:36.343 --> 00:33:37.760 align:middle line:84%
With that being
said, that's going

00:33:37.760 --> 00:33:39.650 align:middle line:84%
to conclude the
practical demonstration

00:33:39.650 --> 00:33:42.090 align:middle line:90%
side of this video.

00:33:42.090 --> 00:33:42.590 align:middle line:90%
All right.

00:33:42.590 --> 00:33:45.860 align:middle line:84%
So that concludes the
Exploitation Frameworks section

00:33:45.860 --> 00:33:47.460 align:middle line:90%
of this course.

00:33:47.460 --> 00:33:49.130 align:middle line:84%
You should now have
a good understanding

00:33:49.130 --> 00:33:51.140 align:middle line:84%
of what the Metasploit
Framework is

00:33:51.140 --> 00:33:55.050 align:middle line:84%
and how it differs from the
PowerShell-Empire framework.

00:33:55.050 --> 00:33:56.960 align:middle line:84%
So in the next
section, we're going

00:33:56.960 --> 00:33:59.480 align:middle line:84%
to begin the Windows
exploitation section, where

00:33:59.480 --> 00:34:03.260 align:middle line:84%
we'll be taking a look
at how to exploit Windows

00:34:03.260 --> 00:34:07.929 align:middle line:84%
systems in the context of a
simulated black-box penetration

00:34:07.929 --> 00:34:08.429 align:middle line:90%
test.

00:34:08.429 --> 00:34:10.909 align:middle line:84%
So we're actually going
to go through the process

00:34:10.909 --> 00:34:16.040 align:middle line:84%
of exploiting a Windows system
with the objective of exploring

00:34:16.040 --> 00:34:19.340 align:middle line:84%
as many exploitation
vectors as possible.

00:34:19.340 --> 00:34:21.050 align:middle line:84%
And it's really
going to be awesome,

00:34:21.050 --> 00:34:23.250 align:middle line:84%
and you guys will have
a lot of fun with it.

00:34:23.250 --> 00:34:26.500 align:middle line:84%
So I'll see you in
the next section.

00:34:26.500 --> 00:34:27.000 align:middle line:90%