WEBVTT

00:06.320 --> 00:08.660
Hello, guys, and welcome to another video

00:08.690 --> 00:15.500
for this chapter in ports scanning the
is open ports, closed and filtered port

00:15.530 --> 00:20.540
open port means that the port is up and
running a service for further service.

00:20.570 --> 00:25.860
Closed port means that the port is
closed and not running any services.

00:25.890 --> 00:29.180
Filter port means that your probe

00:29.210 --> 00:33.420
to those specific port is
all dropped by the Firewall.

00:33.450 --> 00:40.500
For this task we are going to use nmap to
scan one of our Windows systems

00:40.530 --> 00:45.060
and we are going to use the
nmap command with the flag

00:45.090 --> 00:48.140
dash capital F not this confusion port.

00:48.170 --> 00:52.220
And so you guys, how the results that

00:52.250 --> 01:01.740
the nmap will present to us
unfair fear articulated in in Wireshark.

01:01.770 --> 01:04.800
So let us go ahead and type the nmap

01:04.830 --> 01:10.770
command with the flag dash capital F
and then we are going to type

01:10.800 --> 01:15.080
the IP address of our Windows
system before we press.

01:15.110 --> 01:18.620
Enter and start with scanning nmap we hit.

01:18.650 --> 01:26.340
We select our network, we interface, start
capturing the packets, we hit enter nmap

01:26.370 --> 01:31.850
and now we can go ahead and stop
the capturing on Wireshark.

01:31.880 --> 01:37.570
So as you can see here, nmap
presented us with some results.

01:37.600 --> 01:39.680
From what came back from the target

01:39.710 --> 01:46.760
machine, but there are a few ports open,
so let's see how that is translated in

01:46.790 --> 01:56.700
Wireshark and we can see also how the
closed port is translated in Wireshark.

01:56.730 --> 02:03.780
And where are the rest of these packets
go when they're hitting other ports?

02:03.810 --> 02:09.730
So as you can see here on Wireshark,
let's start from the beginning.

02:09.760 --> 02:14.600
So there is from the moment that we
pressed enter on the nmap command, we sent

02:14.630 --> 02:21.170
a lot of we sent packages
to each port through targeted machine.

02:21.200 --> 02:24.320
So we can you can see that from this is

02:24.350 --> 02:28.400
our port here and we are sending a SIEM
packet to each of these port

02:28.430 --> 02:32.540
targeted machine
when there is traffic like that,

02:32.570 --> 02:37.610
it means that there is no reply
at all from the target machine.

02:37.640 --> 02:43.900
We are just sending the packet
and we don't receive an answer.

02:43.930 --> 02:50.900
This means that the probe packet, we send
is not even reaching the port that we are

02:50.930 --> 02:56.340
sending it, and that is because
it's dropped by the Firewall.

02:56.360 --> 02:58.080
So when you see traffic like that, it

02:58.110 --> 03:04.980
means that the that our packet
is dropped by the Firewall.

03:05.010 --> 03:08.200
So as you can see also from our nmap

03:08.230 --> 03:13.020
results, there is quite a few open ports
know in our target machine.

03:13.050 --> 03:15.300
So let's see, how is that translated?

03:15.330 --> 03:17.820
What is the response that

03:17.850 --> 03:23.820
we get from that machine
in our Wireshark in order to get

03:23.850 --> 03:29.420
in order to realize that this port,
this port is open?

03:29.450 --> 03:36.640
So let's go through the results
and you can see here that.

03:38.680 --> 03:42.940
We have an RST reply.

03:42.970 --> 03:47.600
So you can see here that when we are
sending a SIEM package to the port one

03:47.630 --> 03:55.740
thirty five, we receive an RST
reply, which means that the

03:55.770 --> 04:00.020
port is open, as you can see,
and it's in the same manner.

04:00.050 --> 04:07.060
We have the same RST on port one 139.

04:07.090 --> 04:10.300
And we can see the same for, yes,

04:10.330 --> 04:17.380
the PORT 33, eight, nine and four, four,
five when we are sending the same packet

04:17.410 --> 04:23.380
and we have this RST and
these parts are open.

04:23.410 --> 04:28.440
So even if we are capturing some
network traffic and we don't know there is

04:28.470 --> 04:34.740
an nmap going on,
we can pretty much see it here.

04:34.770 --> 04:42.580
So when there is RST, this this port here
is open and the rest of it, by the way.

04:42.600 --> 04:43.600
So let us go ahead.

04:43.630 --> 04:46.680
And how the closed port in this case, 14

04:46.710 --> 04:51.820
nine one five five is being
translated into Wireshark.

04:51.840 --> 04:57.480
So as you can see here, if we scroll down
and we find the

04:57.560 --> 05:06.720
forty nine one five five, we can see that
it sent to our port to us.

05:07.240 --> 05:09.120
This is our local IP address.

05:09.150 --> 05:11.440
This is the target

05:11.680 --> 05:19.020
machine so isn't an rst ach,
which means that these port is closed.

05:19.040 --> 05:20.640
So that was it for this video.

05:20.660 --> 05:22.340
I hope you enjoyed it.

05:22.360 --> 05:24.320
You can go ahead now when you're ready to

05:24.340 --> 05:29.840
click on the next video and understand a
lot more about nmap scan with Wireshark.

