WEBVTT - This file was automatically generated by VIMEO

0
00:00:05.500 --> 00:00:08.600
Hello everyone in this video. We are

1
00:00:08.600 --> 00:00:11.600
 going to see how you can modify the source

2
00:00:11.600 --> 00:00:14.900
 Port while us scanning any particular Target.

3
00:00:15.800 --> 00:00:18.800
So the syntax of doing this particular scan is nmap.

4
00:00:18.800 --> 00:00:21.300
 The target IP address followed by

5
00:00:21.300 --> 00:00:24.300
 a flag, which is hyphen hyphen Source hyphen Port

6
00:00:24.300 --> 00:00:27.600
 through which you can give or specify any

7
00:00:27.600 --> 00:00:29.100
 port number that you like.

8
00:00:30.100 --> 00:00:33.900
The target server will see this particular Port from

9
00:00:33.900 --> 00:00:35.600
 where the request is coming from.

10
00:00:37.500 --> 00:00:40.600
So you can use any custom port to scan the

11
00:00:40.600 --> 00:00:42.300
 victims IP address.

12
00:00:43.300 --> 00:00:46.500
You can always add hyphen V to see the output in

13
00:00:46.500 --> 00:00:47.400
 verbose mode.

14
00:00:48.500 --> 00:00:51.300
Here at the bottom. The example is given

15
00:00:51.300 --> 00:00:54.500
 that how you can perform this particular scan.

16
00:00:56.500 --> 00:00:59.200
And it is the Practical time. Let's see how you

17
00:00:59.200 --> 00:01:02.300
 can do this particular scan. You can see on

18
00:01:02.300 --> 00:01:05.500
 the screen The nmap Source port scan command

19
00:01:05.500 --> 00:01:05.900
 as being

20
00:01:07.300 --> 00:01:10.900
here you can see it is written nmap the target IP address followed

21
00:01:10.900 --> 00:01:11.000
 by

22
00:01:12.600 --> 00:01:15.300
Hyphen, hyphen Source hyphen port and the random port

23
00:01:15.300 --> 00:01:18.300
 number that we want to give so we have chosen a port

24
00:01:18.300 --> 00:01:21.300
 number. That is 7 8 9 0 followed by

25
00:01:21.300 --> 00:01:24.400
 hyphen V to see the output in verbose mode

26
00:01:24.400 --> 00:01:27.800
 and we are going to scan two particular ports

27
00:01:27.800 --> 00:01:30.800
 of the target server which are Port 22

28
00:01:30.800 --> 00:01:32.100
 and to a port 25.

29
00:01:34.200 --> 00:01:36.400
So let us copy this and go to the terminal.

30
00:01:37.200 --> 00:01:38.600
before going to the terminal

31
00:01:39.600 --> 00:01:40.100
let's

32
00:01:41.100 --> 00:01:43.900
create the filter into the wire shock.

33
00:01:44.700 --> 00:01:47.200
So you can see I have created a filter to capture the

34
00:01:47.200 --> 00:01:47.600
 request.

35
00:01:49.400 --> 00:01:52.400
as you can see I am going to scan my target machine and

36
00:01:52.400 --> 00:01:55.600
 the target machine IP address is 102 and the

37
00:01:55.600 --> 00:01:58.000
 nmap Machine IP addresses 1 0 3

38
00:02:01.600 --> 00:02:04.200
you can see I have just started the scan with

39
00:02:04.200 --> 00:02:07.300
 the port number 7 8 9 0 I'm going

40
00:02:07.300 --> 00:02:10.200
 to again run the scan with hyphen p and this

41
00:02:10.200 --> 00:02:10.300
 time.

42
00:02:12.300 --> 00:02:14.200
let us go in Wireshark and

43
00:02:15.700 --> 00:02:18.300
you can see we have identified the 422 is

44
00:02:18.300 --> 00:02:18.600
 filtered.

45
00:02:19.300 --> 00:02:20.400
Let's see the output.

46
00:02:21.600 --> 00:02:25.000
Over here for Port 22, but here

47
00:02:24.300 --> 00:02:27.500
 you should notice that the source Port

48
00:02:27.500 --> 00:02:30.600
 should be 7 8 9 0

49
00:02:30.600 --> 00:02:31.400
 that we have decided.

50
00:02:32.200 --> 00:02:35.200
Perfect as you can see over here in this particular request.

51
00:02:36.700 --> 00:02:39.700
You can see the source Port is given

52
00:02:39.700 --> 00:02:42.400
 as 7 8 9 0 over

53
00:02:42.400 --> 00:02:46.300
 here. Also, if you see over here the port

54
00:02:45.300 --> 00:02:48.200
 which is Target Port which

55
00:02:48.200 --> 00:02:52.500
 is scanned is Port 22 from The Source sport 7890

56
00:02:51.500 --> 00:02:54.800
 from the machine 103 and

57
00:02:54.800 --> 00:02:57.600
 map machine to the Target machine 1 0 2

58
00:02:59.300 --> 00:03:02.400
perfect. This port was again used to

59
00:03:02.400 --> 00:03:05.700
 retransmit a request that way that's why

60
00:03:05.700 --> 00:03:06.400
 it showed.

61
00:03:07.200 --> 00:03:08.300
Port reused again

62
00:03:08.900 --> 00:03:11.300
As you can see TCP port number used to

63
00:03:11.300 --> 00:03:12.400
 send again the request.

64
00:03:13.700 --> 00:03:16.700
So here we are able to send a

65
00:03:16.700 --> 00:03:19.800
 particular request onto the target server

66
00:03:19.800 --> 00:03:22.700
 through a custom Port that we decided

67
00:03:22.700 --> 00:03:25.500
 and the port was 7 8 9 0

68
00:03:25.500 --> 00:03:29.200
 this particular scan is very useful when

69
00:03:28.200 --> 00:03:31.800
 the target server is blocking

70
00:03:31.800 --> 00:03:35.200
 request from some of the specific ports in

71
00:03:34.200 --> 00:03:38.000
 that case. You can just specify a

72
00:03:37.300 --> 00:03:41.000
 random Port that you want and you can successfully

73
00:03:40.600 --> 00:03:42.500
 scan the target machine.

74
00:03:43.500 --> 00:03:46.400
So I hope you guys understood how you can perform this

75
00:03:46.400 --> 00:03:48.000
 type of scan. Thank you.
