WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.800 --> 00:00:07.300
Hello everyone in this video.

1
00:00:07.300 --> 00:00:10.700
 We are going to see how you can use nmap to

2
00:00:10.700 --> 00:00:13.600
 select your custom interface to scan the

3
00:00:13.600 --> 00:00:14.300
 target machine.

4
00:00:15.200 --> 00:00:18.700
The syntax of doing this particular scan is nmap followed by

5
00:00:18.700 --> 00:00:21.500
 the Target IP and then hyphen e

6
00:00:21.500 --> 00:00:24.700
 to select the interface that you want to use from your

7
00:00:24.700 --> 00:00:26.900
 device to scan the target machine.

8
00:00:27.900 --> 00:00:30.300
You can scan a Target by simply giving an

9
00:00:30.300 --> 00:00:33.300
 IP address and specify The Hyphen e flag to

10
00:00:33.300 --> 00:00:36.300
 select the interface. You can also choose the adapter you

11
00:00:36.300 --> 00:00:37.900
 want to use for scanning the target.

12
00:00:39.300 --> 00:00:42.300
For example, you can use any other app adapter to scan the victim.

13
00:00:43.200 --> 00:00:46.900
You can add a hyphen V to see the output inverse mode. The example

14
00:00:46.900 --> 00:00:47.900
 is given below.

15
00:00:48.700 --> 00:00:51.400
Now how will you know the adapter which

16
00:00:51.400 --> 00:00:53.000
 are installed into your computer?

17
00:00:53.800 --> 00:00:56.400
So for windows-based computers, you can simply type

18
00:00:56.400 --> 00:00:59.300
 ipconfig and you will get a list

19
00:00:59.300 --> 00:01:02.500
 of adapters for Linux computers. Just type

20
00:01:02.500 --> 00:01:05.600
 i, f config and you will again get a

21
00:01:05.600 --> 00:01:06.700
 list of adapters.

22
00:01:07.400 --> 00:01:10.200
So it is the Practical time and let's see

23
00:01:10.200 --> 00:01:13.900
 how you can perform this particular scan in action.

24
00:01:15.800 --> 00:01:18.300
See on the screen. I'm going to type this

25
00:01:18.300 --> 00:01:21.600
 command to choose the network adapter and you

26
00:01:21.600 --> 00:01:24.400
 can see I have chosen e and 0

27
00:01:24.400 --> 00:01:27.300
 adapter. Let me just show you I have

28
00:01:27.300 --> 00:01:30.600
 a Linux machine and I have typed the command that is I have

29
00:01:30.600 --> 00:01:33.900
 config and you can see there are many such

30
00:01:33.900 --> 00:01:36.400
 adapters like you turn 0 you

31
00:01:36.400 --> 00:01:40.000
 turn 0 which are the tunnel adapters Bridge zero.

32
00:01:40.800 --> 00:01:42.500
en4 en3

33
00:01:43.700 --> 00:01:45.300
en2 e n 1

34
00:01:46.300 --> 00:01:49.600
and P2P en0. So I'm

35
00:01:49.600 --> 00:01:50.100
 going to see.

36
00:01:51.100 --> 00:01:54.800
E n 0's IP address and I'm going to choose this particular IP

37
00:01:54.800 --> 00:01:57.400
 address for performing this scan as you

38
00:01:57.400 --> 00:02:01.300
 can see the IP address of e n 0 is 192

39
00:02:00.300 --> 00:02:04.200
 168 0.102.

40
00:02:06.500 --> 00:02:06.900
All right.

41
00:02:08.000 --> 00:02:08.200
so

42
00:02:11.200 --> 00:02:14.500
we are going to use this particular IP to scan this particular

43
00:02:14.500 --> 00:02:17.600
 Target, which is 1 0 3 as you

44
00:02:17.600 --> 00:02:19.500
 can see over here in the command.

45
00:02:21.300 --> 00:02:24.400
I have initiated the scan as you can see this

46
00:02:24.400 --> 00:02:27.200
 is the target machine which I am running the

47
00:02:27.200 --> 00:02:27.800
 scan on.

48
00:02:28.800 --> 00:02:31.500
Let us just quickly open up Wireshark and

49
00:02:31.500 --> 00:02:34.600
 let's see what happens. Let me start listening on

50
00:02:34.600 --> 00:02:36.400
 the et80 adapter.

51
00:02:37.100 --> 00:02:40.300
Let's type A filter of Ip. So let's

52
00:02:40.300 --> 00:02:44.000
 say IP dot addr equals equals

53
00:02:43.600 --> 00:02:46.300
 the connection is coming from the

54
00:02:47.400 --> 00:02:50.800
the attacker machine and its IP address was 1 0

55
00:02:50.800 --> 00:02:51.300
 3.

56
00:02:52.700 --> 00:02:54.500
I'm sorry. It was 1 0 2.

57
00:02:55.400 --> 00:02:58.400
And you can see here. The request has

58
00:02:58.400 --> 00:03:00.000
 been coming continuously.

59
00:03:01.900 --> 00:03:04.400
Yep this so I will run the scan

60
00:03:04.400 --> 00:03:07.900
 again and you can see again. The request has started coming here.

61
00:03:07.900 --> 00:03:10.300
 All this requests are coming from

62
00:03:10.300 --> 00:03:12.900
 the IP address. That is 102.

63
00:03:14.400 --> 00:03:14.900
I will just

64
00:03:16.600 --> 00:03:19.600
specify the port number this time. So let's say you want to scan Port 22

65
00:03:19.600 --> 00:03:22.200
 and the scan is done. Let's see if we get

66
00:03:22.200 --> 00:03:23.300
 a request of Port 22.

67
00:03:24.500 --> 00:03:27.200
Yep, we can see here. These are the requests

68
00:03:27.200 --> 00:03:28.100
 for Port 22.

69
00:03:28.800 --> 00:03:31.300
from the machine 102 to the

70
00:03:31.300 --> 00:03:32.500
 machine 103

71
00:03:33.200 --> 00:03:36.300
Let's again specify some more ports. And let's

72
00:03:36.300 --> 00:03:38.400
 see this 23 2580

73
00:03:39.600 --> 00:03:42.400
And let's see if we got a request over here.

74
00:03:42.400 --> 00:03:45.200
 So as you can see here, it is

75
00:03:45.200 --> 00:03:49.200
 80 25 and 23 from the

76
00:03:48.200 --> 00:03:51.100
 machine 1 0 2

77
00:03:52.700 --> 00:03:55.900
2 1 0 3 I hope you guys understood how

78
00:03:55.900 --> 00:03:56.800
 you can specify.

79
00:03:58.300 --> 00:04:01.500
Your custom adapter that you want to use in this case. We

80
00:04:01.500 --> 00:04:04.500
 choose the adapter. That was e n 0 which

81
00:04:04.500 --> 00:04:06.700
 had the IP address 102

82
00:04:07.500 --> 00:04:10.800
you can also change that after that you want and specify any

83
00:04:10.800 --> 00:04:13.300
 adapter that you want to use to perform the

84
00:04:13.300 --> 00:04:14.600
 scan on the target.

85
00:04:15.600 --> 00:04:17.400
I hope you guys understood. Thank you.
