WEBVTT

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


00:00:03.816 --> 00:00:07.155 align:middle line:90%
[MUSIC PLAYING]

00:00:07.155 --> 00:00:10.020 align:middle line:90%


00:00:10.020 --> 00:00:12.000 align:middle line:84%
This lab might seem
a little advanced

00:00:12.000 --> 00:00:14.340 align:middle line:84%
compared to what we've
been doing, and it is.

00:00:14.340 --> 00:00:16.680 align:middle line:84%
We're going to cover
some things in here that

00:00:16.680 --> 00:00:17.640 align:middle line:90%
haven't been taught.

00:00:17.640 --> 00:00:22.350 align:middle line:84%
And what I want you to
take away from this lab

00:00:22.350 --> 00:00:25.770 align:middle line:84%
is what you can
do with Wireshark,

00:00:25.770 --> 00:00:28.530 align:middle line:84%
what you can do by capturing
network traffic, what you can

00:00:28.530 --> 00:00:31.690 align:middle line:90%
do by sniffing on a network.

00:00:31.690 --> 00:00:36.060 align:middle line:84%
So we have some commands
there in the description.

00:00:36.060 --> 00:00:37.698 align:middle line:84%
I'm going to walk
you through how

00:00:37.698 --> 00:00:39.240 align:middle line:84%
we can answer some
of these questions

00:00:39.240 --> 00:00:43.320 align:middle line:84%
by plugging in these filters
and looking at the data.

00:00:43.320 --> 00:00:44.770 align:middle line:90%
Follow along on your own.

00:00:44.770 --> 00:00:46.740 align:middle line:84%
You have the
instructions, as well.

00:00:46.740 --> 00:00:47.970 align:middle line:90%
Practice it once.

00:00:47.970 --> 00:00:53.160 align:middle line:84%
But we are going to have a whole
pathway dedicated to Wi-Fi, pen

00:00:53.160 --> 00:00:54.990 align:middle line:90%
testing, and Wi-Fi security.

00:00:54.990 --> 00:00:57.620 align:middle line:84%
So we will get into
the nitty-gritty there.

00:00:57.620 --> 00:00:59.388 align:middle line:84%
Here, I'm going to
cover some things

00:00:59.388 --> 00:01:00.930 align:middle line:84%
so we can get through
this lab so you

00:01:00.930 --> 00:01:05.500 align:middle line:84%
can get a feeling for
what it is we can do.

00:01:05.500 --> 00:01:06.000 align:middle line:90%
OK?

00:01:06.000 --> 00:01:10.960 align:middle line:84%
With that, let's jump
into the environment.

00:01:10.960 --> 00:01:16.500 align:middle line:84%
And we have a pcap of
Wi-Fi traffic in Wireshark.

00:01:16.500 --> 00:01:19.140 align:middle line:84%
And it looks very similar
to what we had before.

00:01:19.140 --> 00:01:21.180 align:middle line:84%
I didn't set up my
columns or my time.

00:01:21.180 --> 00:01:23.430 align:middle line:90%
We'll leave that as-is.

00:01:23.430 --> 00:01:25.410 align:middle line:90%
That's not the focus today.

00:01:25.410 --> 00:01:28.210 align:middle line:84%
But we have a whole bunch
of information here.

00:01:28.210 --> 00:01:30.690 align:middle line:84%
And you can see, for the
protocol, it's 802.11.

00:01:30.690 --> 00:01:32.490 align:middle line:90%
So it's all Wi-Fi.

00:01:32.490 --> 00:01:36.930 align:middle line:84%
And if you go into your
Protocol Hierarchy,

00:01:36.930 --> 00:01:39.660 align:middle line:84%
you're going to see
it's all 802.11.

00:01:39.660 --> 00:01:42.140 align:middle line:90%
That's what we captured here.

00:01:42.140 --> 00:01:47.070 align:middle line:84%
There's some data and
we'll get into that.

00:01:47.070 --> 00:01:50.220 align:middle line:84%
But let's start
answering some questions.

00:01:50.220 --> 00:01:52.370 align:middle line:84%
So what is the
name of the open--

00:01:52.370 --> 00:01:56.120 align:middle line:84%
so no security-- SSID
present in packet dump?

00:01:56.120 --> 00:02:00.360 align:middle line:84%
So this is the packet dump,
and I've already done this.

00:02:00.360 --> 00:02:03.600 align:middle line:84%
So I'm going to pull this up
and then show you what it is.

00:02:03.600 --> 00:02:05.820 align:middle line:84%
So we're going to
look for a beacon.

00:02:05.820 --> 00:02:11.240 align:middle line:84%
It's a wireless LAN
subtype of 0008.

00:02:11.240 --> 00:02:12.410 align:middle line:90%
It's a beacon.

00:02:12.410 --> 00:02:14.060 align:middle line:90%
See how this says Beacon frame?

00:02:14.060 --> 00:02:20.030 align:middle line:90%
We could dive in and 0008--

00:02:20.030 --> 00:02:20.930 align:middle line:90%
boom.

00:02:20.930 --> 00:02:22.850 align:middle line:84%
So we're going to get
our Beacon frames.

00:02:22.850 --> 00:02:28.250 align:middle line:84%
And we don't want WPA
and we don't want--

00:02:28.250 --> 00:02:31.520 align:middle line:84%
and this is a tag of
48, which represents

00:02:31.520 --> 00:02:37.580 align:middle line:84%
RSN, which is the Robust
Security Network interface

00:02:37.580 --> 00:02:38.210 align:middle line:90%
element.

00:02:38.210 --> 00:02:44.780 align:middle line:84%
And that would be
identified with WPA2.

00:02:44.780 --> 00:02:48.420 align:middle line:90%
So we'll filter for all of this.

00:02:48.420 --> 00:02:52.160 align:middle line:90%
And we see SecurityTube_Open.

00:02:52.160 --> 00:02:56.140 align:middle line:90%


00:02:56.140 --> 00:02:58.580 align:middle line:84%
Let's ensure we
get the right one.

00:02:58.580 --> 00:03:01.940 align:middle line:84%
It does say it's
the Beacon frame.

00:03:01.940 --> 00:03:04.145 align:middle line:84%
And I want to get
into these tags.

00:03:04.145 --> 00:03:07.520 align:middle line:90%


00:03:07.520 --> 00:03:09.050 align:middle line:90%
There's so many tags.

00:03:09.050 --> 00:03:11.240 align:middle line:90%
We don't have a WPA.

00:03:11.240 --> 00:03:12.950 align:middle line:90%
We don't have an RSN.

00:03:12.950 --> 00:03:14.270 align:middle line:90%
This would be the one.

00:03:14.270 --> 00:03:21.060 align:middle line:84%
I see nothing showing
any sort of security.

00:03:21.060 --> 00:03:21.920 align:middle line:90%
Let's compare.

00:03:21.920 --> 00:03:25.870 align:middle line:90%


00:03:25.870 --> 00:03:30.480 align:middle line:84%
Let's go with one that might
have some security in there.

00:03:30.480 --> 00:03:33.370 align:middle line:90%


00:03:33.370 --> 00:03:38.450 align:middle line:84%
So here we have WPA
showing on this guy.

00:03:38.450 --> 00:03:42.620 align:middle line:90%
So Nirmall does have some.

00:03:42.620 --> 00:03:48.675 align:middle line:90%
Patel has WPA.

00:03:48.675 --> 00:03:53.570 align:middle line:90%


00:03:53.570 --> 00:03:57.150 align:middle line:84%
So, yeah, we're seeing
some of the differences.

00:03:57.150 --> 00:04:01.040 align:middle line:84%
But SecurityTube_Open
had none of them.

00:04:01.040 --> 00:04:06.000 align:middle line:84%
It has no security, which is why
it's called SecurityTube_Open.

00:04:06.000 --> 00:04:09.640 align:middle line:90%


00:04:09.640 --> 00:04:10.180 align:middle line:90%
OK.

00:04:10.180 --> 00:04:15.100 align:middle line:84%
Which of the SSID home network
is operating on which channel?

00:04:15.100 --> 00:04:16.180 align:middle line:90%
This one's easy.

00:04:16.180 --> 00:04:17.839 align:middle line:90%
Well, it's fairly easy.

00:04:17.839 --> 00:04:23.260 align:middle line:84%
We're going to do wlan
contains Home_Network.

00:04:23.260 --> 00:04:24.650 align:middle line:90%
I love contains.

00:04:24.650 --> 00:04:28.390 align:middle line:84%
Contains is a great word
to use for finding things

00:04:28.390 --> 00:04:29.725 align:middle line:90%
in Wireshark.

00:04:29.725 --> 00:04:31.420 align:middle line:90%
It says Home_Network over here.

00:04:31.420 --> 00:04:32.560 align:middle line:90%
Yay.

00:04:32.560 --> 00:04:34.060 align:middle line:90%
It's got a Beacon frame.

00:04:34.060 --> 00:04:36.505 align:middle line:84%
And we want to know
what channel it's on.

00:04:36.505 --> 00:04:39.830 align:middle line:90%


00:04:39.830 --> 00:04:50.210 align:middle line:84%
So it should be right
in the DS Parameters.

00:04:50.210 --> 00:04:51.005 align:middle line:90%
Channel 6.

00:04:51.005 --> 00:04:53.720 align:middle line:90%


00:04:53.720 --> 00:04:54.530 align:middle line:90%
No.

00:04:54.530 --> 00:04:57.170 align:middle line:90%
Current channel is channel 6.

00:04:57.170 --> 00:05:00.060 align:middle line:90%
Let's compare.

00:05:00.060 --> 00:05:01.320 align:middle line:90%
Let's find another one.

00:05:01.320 --> 00:05:05.000 align:middle line:90%


00:05:05.000 --> 00:05:08.630 align:middle line:84%
And you could see this guy
is on Current Channel 1.

00:05:08.630 --> 00:05:12.521 align:middle line:84%
So Home_Network,
Current Channel 6.

00:05:12.521 --> 00:05:14.480 align:middle line:90%
That one's neat.

00:05:14.480 --> 00:05:16.430 align:middle line:84%
Which security
mechanism is configured

00:05:16.430 --> 00:05:18.830 align:middle line:90%
for SSID lazy artists?

00:05:18.830 --> 00:05:25.070 align:middle line:84%
It could either be
open, WPA, PSK, or WPA2.

00:05:25.070 --> 00:05:26.420 align:middle line:90%
Those are the ones.

00:05:26.420 --> 00:05:29.495 align:middle line:90%
So wlan contains LazyArtists.

00:05:29.495 --> 00:05:32.990 align:middle line:90%


00:05:32.990 --> 00:05:33.680 align:middle line:90%
Boom.

00:05:33.680 --> 00:05:35.210 align:middle line:90%
Brings this guy up.

00:05:35.210 --> 00:05:38.120 align:middle line:90%
And minimize these tags.

00:05:38.120 --> 00:05:41.080 align:middle line:90%


00:05:41.080 --> 00:05:42.885 align:middle line:90%
We see RSN.

00:05:42.885 --> 00:05:46.910 align:middle line:90%


00:05:46.910 --> 00:05:51.650 align:middle line:84%
And, in here, it's got
AES and AES and PSK.

00:05:51.650 --> 00:05:52.670 align:middle line:90%
These are signs--

00:05:52.670 --> 00:05:56.630 align:middle line:90%
RSN.48.

00:05:56.630 --> 00:05:59.030 align:middle line:84%
You might remember that
from a previous filter.

00:05:59.030 --> 00:06:03.640 align:middle line:84%
We made sure to do not
wlan.tag.number 48.

00:06:03.640 --> 00:06:04.790 align:middle line:90%
Boom.

00:06:04.790 --> 00:06:07.010 align:middle line:90%
Let's tag 48.

00:06:07.010 --> 00:06:10.760 align:middle line:90%
For RSN, this is WPA2 PSK.

00:06:10.760 --> 00:06:18.076 align:middle line:90%


00:06:18.076 --> 00:06:24.360 align:middle line:84%
That answered that
question for LazyArtists.

00:06:24.360 --> 00:06:26.940 align:middle line:90%
Is Wi-Fi Protected Setup WPS?

00:06:26.940 --> 00:06:30.210 align:middle line:84%
That's when you press
the button on your modem

00:06:30.210 --> 00:06:33.550 align:middle line:84%
or your router, your
wireless access point,

00:06:33.550 --> 00:06:37.500 align:middle line:84%
and then you can do
WPS on your machine.

00:06:37.500 --> 00:06:42.520 align:middle line:84%
So which access point, which
SSID has that turned on?

00:06:42.520 --> 00:06:45.190 align:middle line:90%


00:06:45.190 --> 00:06:49.220 align:middle line:84%
Well, there is a
filter for that.

00:06:49.220 --> 00:06:52.810 align:middle line:84%
Well, it says, is it
enabled on Amazon Wood?

00:06:52.810 --> 00:06:55.480 align:middle line:90%


00:06:55.480 --> 00:06:57.407 align:middle line:84%
So let's look at a
beacon from Amazon Wood,

00:06:57.407 --> 00:06:58.990 align:middle line:84%
because that's where
it would show it.

00:06:58.990 --> 00:07:03.480 align:middle line:90%


00:07:03.480 --> 00:07:05.420 align:middle line:90%
We want to know if it has WPS.

00:07:05.420 --> 00:07:08.510 align:middle line:90%
And, bam, it does.

00:07:08.510 --> 00:07:11.090 align:middle line:90%
It has WPS.

00:07:11.090 --> 00:07:13.520 align:middle line:90%
So Amazon Wood does have WPS.

00:07:13.520 --> 00:07:14.315 align:middle line:90%
That is a yes.

00:07:14.315 --> 00:07:17.240 align:middle line:90%


00:07:17.240 --> 00:07:20.150 align:middle line:84%
And then what is the total count
of packets which were either

00:07:20.150 --> 00:07:23.240 align:middle line:84%
transmitted or received by
the device with a MAC address

00:07:23.240 --> 00:07:27.208 align:middle line:90%
of E8:DE:27--

00:07:27.208 --> 00:07:28.750 align:middle line:90%
all the way to 18?

00:07:28.750 --> 00:07:40.242 align:middle line:84%
Well, we're going
to look at this guy.

00:07:40.242 --> 00:07:48.340 align:middle line:84%
WLAN transmitted to that
e8:de:27:16:87:18 or received--

00:07:48.340 --> 00:07:51.690 align:middle line:84%
so transmitted or
received by that guy.

00:07:51.690 --> 00:08:01.230 align:middle line:84%
And change our display and
we are displaying 5,701.

00:08:01.230 --> 00:08:06.090 align:middle line:84%
That is how many packets were
either transmitted or received

00:08:06.090 --> 00:08:06.990 align:middle line:90%
by that MAC address.

00:08:06.990 --> 00:08:11.830 align:middle line:90%


00:08:11.830 --> 00:08:12.520 align:middle line:90%
All right.

00:08:12.520 --> 00:08:16.930 align:middle line:84%
What is the MAC address of the
station which exchange data

00:08:16.930 --> 00:08:21.040 align:middle line:90%
with SSID SecurityTube_Open?

00:08:21.040 --> 00:08:30.300 align:middle line:90%
Well, I want to find a beacon.

00:08:30.300 --> 00:08:31.905 align:middle line:84%
What is
SecurityTube_Open called?

00:08:31.905 --> 00:08:40.200 align:middle line:90%


00:08:40.200 --> 00:08:43.866 align:middle line:90%
Contains SecurityTube_Open.

00:08:43.866 --> 00:08:52.162 align:middle line:90%


00:08:52.162 --> 00:08:53.470 align:middle line:90%
Ooh, all sorts of packets.

00:08:53.470 --> 00:08:59.720 align:middle line:90%


00:08:59.720 --> 00:09:01.060 align:middle line:90%
It is case-sensitive.

00:09:01.060 --> 00:09:09.580 align:middle line:90%


00:09:09.580 --> 00:09:10.080 align:middle line:90%
There we go.

00:09:10.080 --> 00:09:14.080 align:middle line:90%


00:09:14.080 --> 00:09:17.110 align:middle line:84%
So what is the actual
physical address of this guy?

00:09:17.110 --> 00:09:31.710 align:middle line:90%


00:09:31.710 --> 00:09:37.770 align:middle line:90%
There we go, E8:DE:27:16:87:18.

00:09:37.770 --> 00:09:41.640 align:middle line:84%
Oh, hey, that's the one
we were just looking at.

00:09:41.640 --> 00:09:46.050 align:middle line:90%
OK, so that's SecurityTube_Open.

00:09:46.050 --> 00:09:48.400 align:middle line:90%
So now let's do a filter.

00:09:48.400 --> 00:09:50.070 align:middle line:90%
Let's look for that BSSID.

00:09:50.070 --> 00:09:52.940 align:middle line:90%


00:09:52.940 --> 00:09:56.210 align:middle line:84%
And we'll also look
for data types--

00:09:56.210 --> 00:10:00.940 align:middle line:84%
or subtypes of
data, which is a 20.

00:10:00.940 --> 00:10:05.060 align:middle line:90%
So it looks like this.

00:10:05.060 --> 00:10:13.765 align:middle line:84%
E8:D3:27:16:87:18 and
our subtype of 0x0020.

00:10:13.765 --> 00:10:14.920 align:middle line:90%
It's [INAUDIBLE] 20.

00:10:14.920 --> 00:10:15.740 align:middle line:90%
There's a hex.

00:10:15.740 --> 00:10:20.950 align:middle line:90%
So yeah.

00:10:20.950 --> 00:10:23.500 align:middle line:84%
But, in here, we want to see
who was talking to this guy.

00:10:23.500 --> 00:10:26.710 align:middle line:90%
Well, we have our E8.

00:10:26.710 --> 00:10:29.170 align:middle line:90%
The other one talking is 5C.

00:10:29.170 --> 00:10:31.473 align:middle line:90%


00:10:31.473 --> 00:10:33.140 align:middle line:84%
And if you go through
all these packets,

00:10:33.140 --> 00:10:35.830 align:middle line:90%
it's going to be the same.

00:10:35.830 --> 00:10:37.080 align:middle line:90%
Here's one of the neat things.

00:10:37.080 --> 00:10:38.910 align:middle line:84%
If you highlight a
parameter, then you

00:10:38.910 --> 00:10:44.160 align:middle line:84%
go to a different packet,
it will find that parameter.

00:10:44.160 --> 00:10:46.667 align:middle line:84%
See how it's obviously
different packets

00:10:46.667 --> 00:10:48.375 align:middle line:84%
because the rest of
the data is changing?

00:10:48.375 --> 00:10:52.830 align:middle line:90%


00:10:52.830 --> 00:10:56.238 align:middle line:84%
But this destination
address is not changing.

00:10:56.238 --> 00:10:57.030 align:middle line:90%
That's how we know.

00:10:57.030 --> 00:11:01.620 align:middle line:90%


00:11:01.620 --> 00:11:03.870 align:middle line:84%
So from the last
question, we know

00:11:03.870 --> 00:11:07.740 align:middle line:84%
that a station was connected
to SSID SecurityTube_Open.

00:11:07.740 --> 00:11:08.910 align:middle line:90%
Yes.

00:11:08.910 --> 00:11:13.320 align:middle line:84%
Provide the TSF timestamp
of the association response

00:11:13.320 --> 00:11:16.590 align:middle line:84%
sent from the access
point to the station.

00:11:16.590 --> 00:11:21.420 align:middle line:84%
So we're looking for
traffic from 5C to 38,

00:11:21.420 --> 00:11:26.100 align:middle line:84%
and we're looking for
a subtype of 0x0001.

00:11:26.100 --> 00:11:31.120 align:middle line:90%
That is a association response.

00:11:31.120 --> 00:11:37.320 align:middle line:90%


00:11:37.320 --> 00:11:38.580 align:middle line:90%
There should only be one.

00:11:38.580 --> 00:11:42.360 align:middle line:84%
See how it says Association
Response in the Frame Control

00:11:42.360 --> 00:11:43.570 align:middle line:90%
Field?

00:11:43.570 --> 00:11:44.790 align:middle line:90%
I'm sorry.

00:11:44.790 --> 00:11:52.570 align:middle line:90%
The Subtype is 0001.

00:11:52.570 --> 00:11:53.740 align:middle line:90%
They're known things.

00:11:53.740 --> 00:11:55.150 align:middle line:90%
They mean something.

00:11:55.150 --> 00:11:58.240 align:middle line:90%
We'll get into it-- the course--

00:11:58.240 --> 00:12:00.880 align:middle line:84%
in another pathway,
explaining all of that.

00:12:00.880 --> 00:12:07.330 align:middle line:84%
But if you follow on this, you
should get the same answer.

00:12:07.330 --> 00:12:10.440 align:middle line:84%
And you can see just how
you can pull things out

00:12:10.440 --> 00:12:15.840 align:middle line:84%
of Wireshark, which is what
I want you to be able to do.

00:12:15.840 --> 00:12:18.360 align:middle line:84%
I hope you got something
out of this lab

00:12:18.360 --> 00:12:22.690 align:middle line:84%
and learned a little bit,
at least had a little fun.

00:12:22.690 --> 00:12:26.070 align:middle line:90%
We're going to dive even--

00:12:26.070 --> 00:12:30.120 align:middle line:84%
we're going to dive even
deeper in the next lesson,

00:12:30.120 --> 00:12:34.470 align:middle line:84%
the next lab, and try
some other things.

00:12:34.470 --> 00:12:36.630 align:middle line:84%
For Wi-Fi pen testing,
you would want

00:12:36.630 --> 00:12:40.860 align:middle line:84%
to identify all these pieces
that we're pulling out now.

00:12:40.860 --> 00:12:44.310 align:middle line:84%
And then you can use those
again later, especially

00:12:44.310 --> 00:12:47.340 align:middle line:84%
the open network, maybe
the ones using just WPA.

00:12:47.340 --> 00:12:50.440 align:middle line:84%
If it's got WPA2, it's
going to be a little harder.

00:12:50.440 --> 00:12:52.900 align:middle line:84%
But there's things that
we can do there, too.

00:12:52.900 --> 00:12:56.500 align:middle line:90%
So I hope this was fun.

00:12:56.500 --> 00:12:57.000 align:middle line:90%