WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.800 --> 00:00:07.700
Hello everyone. So in this video we

1
00:00:07.700 --> 00:00:10.100
 are going to see the fin type of scan.

2
00:00:10.900 --> 00:00:14.100
The syntax of doing this scan is nmap hyphen

3
00:00:13.100 --> 00:00:16.600
 S capital F the target IP

4
00:00:16.600 --> 00:00:18.700
 address and the port number.

5
00:00:19.500 --> 00:00:22.800
This is another very stealthy scan that sets

6
00:00:22.800 --> 00:00:25.200
 all the TCP header Flags to fin.

7
00:00:26.500 --> 00:00:29.500
Ally sneaks through State Electric firewalls and

8
00:00:29.500 --> 00:00:32.500
 packet filters by turning on different TCP Flags

9
00:00:32.500 --> 00:00:33.200
 like fin.

10
00:00:34.200 --> 00:00:37.600
However for non-window servers protected by a

11
00:00:37.600 --> 00:00:40.200
 firewall this can be a way to get

12
00:00:40.200 --> 00:00:40.400
 through.

13
00:00:41.300 --> 00:00:44.500
Remember in fins. Can the fin

14
00:00:44.500 --> 00:00:47.500
 flag is been set successfully note.

15
00:00:48.300 --> 00:00:51.800
The port is closed. It replies with reset act and

16
00:00:51.800 --> 00:00:54.000
 if it is open it replies with fin.

17
00:00:55.600 --> 00:00:58.200
So what actually happens in fin type of scan?

18
00:00:58.800 --> 00:01:01.300
As you can see on the left hand side is the end map

19
00:01:01.300 --> 00:01:03.800
 machine through which we are going to perform the scan.

20
00:01:04.500 --> 00:01:07.100
On the right hand side is the server which we are going

21
00:01:07.100 --> 00:01:07.600
 to scan.

22
00:01:09.100 --> 00:01:12.600
So the nmap sense are request, which is fin type.

23
00:01:13.700 --> 00:01:16.400
and if it receives a reset tag

24
00:01:17.300 --> 00:01:19.300
Which means the port is closed.

25
00:01:21.500 --> 00:01:24.500
So, let's see what kind of responses can we

26
00:01:24.500 --> 00:01:26.400
 receive and based on that?

27
00:01:27.300 --> 00:01:29.100
What is the state of the sports?

28
00:01:29.800 --> 00:01:32.700
So if we receive no response, even

29
00:01:32.700 --> 00:01:35.500
 after Transmissions, then the state is assigned

30
00:01:35.500 --> 00:01:37.400
 as open or filtered.

31
00:01:38.500 --> 00:01:41.700
If you receive TCP reset packet, then the

32
00:01:41.700 --> 00:01:42.700
 port is closed.

33
00:01:44.300 --> 00:01:47.100
If we receive icmp and reachable, then the port is

34
00:01:47.100 --> 00:01:49.200
 assigned the status of filtered.

35
00:01:50.800 --> 00:01:53.900
Let's see the Wireshark packet breakdown quickly and understand

36
00:01:53.900 --> 00:01:56.200
 what actually happens in the background.

37
00:01:57.500 --> 00:02:00.400
So as you can see a fin type of request is sent for

38
00:02:00.400 --> 00:02:03.000
 the port 22 as well as Port 23.

39
00:02:04.200 --> 00:02:07.300
On Port 23 a reset Act is received which means

40
00:02:07.300 --> 00:02:08.800
 this port is closed.

41
00:02:12.700 --> 00:02:15.200
So what are the advantages and disadvantages of this

42
00:02:15.200 --> 00:02:15.700
 can?

43
00:02:16.300 --> 00:02:19.500
As you can see the desert Advantage is it

44
00:02:19.500 --> 00:02:22.700
 is unreliable and the advantage is it is

45
00:02:22.700 --> 00:02:26.300
 still the and it can bypass some firewalls

46
00:02:25.300 --> 00:02:27.200
 and packet filters.

47
00:02:29.200 --> 00:02:32.500
So it is the Practical time and let's see fin scan

48
00:02:32.500 --> 00:02:33.000
 in action.

49
00:02:33.900 --> 00:02:36.400
As you can see onto the screen. I'm going

50
00:02:36.400 --> 00:02:39.300
 to type the command into my terminal that is

51
00:02:39.300 --> 00:02:39.900
 nmap.

52
00:02:42.400 --> 00:02:45.500
Hyphen, SF. Let's start

53
00:02:45.500 --> 00:02:48.300
 for fin scan the target IP address.

54
00:02:50.700 --> 00:02:53.700
And hyphen V to see the output in verbose mode

55
00:02:53.700 --> 00:02:55.100
 as you can see over here.

56
00:02:56.300 --> 00:02:58.400
It has initiated a fin scan.

57
00:03:05.500 --> 00:03:08.300
Now we have got the output as we

58
00:03:08.300 --> 00:03:11.700
 can see our all the three ports are marked as

59
00:03:11.700 --> 00:03:13.200
 open and filtered.

60
00:03:14.600 --> 00:03:18.200
And the host is up. This is because nmap is

61
00:03:18.200 --> 00:03:21.400
 not able to identify the correct Port status

62
00:03:21.400 --> 00:03:24.700
 as it has received reset act

63
00:03:24.700 --> 00:03:26.500
 for all the three ports.

64
00:03:27.600 --> 00:03:30.700
As you can see into the Wireshark packets,

65
00:03:30.700 --> 00:03:33.600
 if you look closely for all the packets

66
00:03:33.600 --> 00:03:36.300
 a fin was sent and reset Act is

67
00:03:36.300 --> 00:03:37.100
 received.
