WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.900 --> 00:00:07.100
Hello everyone. So in

1
00:00:07.100 --> 00:00:10.600
 this video we are going to see how you can scan

2
00:00:10.600 --> 00:00:13.300
 using specific scripts in nmap.

3
00:00:14.200 --> 00:00:17.800
So the syntax of running this particular scan is nmap the

4
00:00:17.800 --> 00:00:21.000
 target IP address followed by hyphen hyphen

5
00:00:20.100 --> 00:00:23.200
 script equals to the script name.

6
00:00:24.100 --> 00:00:27.900
Remember it is not necessary to add dot NSE

7
00:00:27.900 --> 00:00:30.600
 at the end of the script. Although you

8
00:00:30.600 --> 00:00:33.400
 can also run the script with adding it or without

9
00:00:33.400 --> 00:00:34.200
 adding it.

10
00:00:35.600 --> 00:00:38.600
NSE stands for nmap scripting engine

11
00:00:40.400 --> 00:00:43.600
so you can scan a Target by simply giving

12
00:00:43.600 --> 00:00:46.400
 an IP address and specifying the script name and

13
00:00:46.400 --> 00:00:49.000
 enmap will run the script and will give you

14
00:00:49.300 --> 00:00:51.300
 the output onto your terminal.

15
00:00:51.900 --> 00:00:54.400
You can always add hyphen V to see the output

16
00:00:54.400 --> 00:00:57.500
 inverse mode the example of doing this can be

17
00:00:57.500 --> 00:01:00.800
 and map the target IP address followed by

18
00:01:00.800 --> 00:01:01.700
 hyphen SV.

19
00:01:03.200 --> 00:01:06.200
-script equals to the script name that you

20
00:01:06.200 --> 00:01:07.600
 want to use for scanning.

21
00:01:08.500 --> 00:01:11.400
So it is the Practical time and let's see this scan

22
00:01:11.400 --> 00:01:12.000
 in action.

23
00:01:13.100 --> 00:01:17.300
As you can see on my screen. I have already identified by

24
00:01:16.300 --> 00:01:19.600
 running this particular scan. That is

25
00:01:19.600 --> 00:01:22.000
 nmap the target IP hyphen SV.

26
00:01:23.100 --> 00:01:26.100
- P 9 9 9 to identify what is

27
00:01:26.100 --> 00:01:30.000
 running on this specific port and I have identified that

28
00:01:29.300 --> 00:01:32.400
 FTP is running onto this

29
00:01:32.400 --> 00:01:33.500
 particular port.

30
00:01:35.700 --> 00:01:38.500
Now I'm going to attack the FTB using

31
00:01:38.500 --> 00:01:41.700
 the script, which is FTP brute

32
00:01:41.700 --> 00:01:43.100
 as you can see over here.

33
00:01:49.500 --> 00:01:50.700
So I'm going to hit enter.

34
00:01:51.800 --> 00:01:52.000
and

35
00:01:53.300 --> 00:01:56.000
this particular FTP brute script

36
00:01:56.700 --> 00:01:57.600
is going to start.

37
00:01:59.300 --> 00:02:02.300
And it will find a valid credentials for

38
00:02:02.300 --> 00:02:05.100
 logging into the FTP the scan

39
00:02:05.100 --> 00:02:08.400
 is going to take couple of time. So I'm just going to skip this.

40
00:02:11.300 --> 00:02:14.200
And I will bring you to the results as you

41
00:02:14.200 --> 00:02:17.200
 can see. These are the results of the script which has

42
00:02:17.200 --> 00:02:20.900
 run as you can see FTP brute output and

43
00:02:20.900 --> 00:02:23.500
 nmap was able to identify two

44
00:02:23.500 --> 00:02:26.500
 valid credentials first is admin

45
00:02:26.500 --> 00:02:29.500
 admin and second is sysadmin. I

46
00:02:29.500 --> 00:02:32.900
 love you though and map is able to successfully find

47
00:02:32.900 --> 00:02:35.300
 out two valid credentials, which are

48
00:02:35.300 --> 00:02:38.800
 these two valid credentials. Let's verify

49
00:02:38.800 --> 00:02:41.800
 are these credentials right or

50
00:02:41.800 --> 00:02:42.400
 wrong?

51
00:02:44.200 --> 00:02:45.200
So what we are going to do is

52
00:02:46.300 --> 00:02:49.300
we are going to quickly go on to the Target server.

53
00:02:50.400 --> 00:02:53.700
We're going to log into the target server and here. Let's

54
00:02:53.700 --> 00:02:55.700
 verify are those credentials, right?

55
00:02:56.400 --> 00:02:59.200
Let me open up Etc past WD and we can see

56
00:02:59.200 --> 00:03:02.700
 here Yep. This is right. This admin

57
00:03:02.700 --> 00:03:05.200
 is a user for which we have find out a

58
00:03:05.200 --> 00:03:08.400
 password. Let's see is admin a user. Yes. Admin is

59
00:03:08.400 --> 00:03:11.300
 also a user which means the usernames that

60
00:03:11.300 --> 00:03:13.200
 we have identified are correct.

61
00:03:15.500 --> 00:03:17.700
So I hope you guys understood this. Thank you.
