WEBVTT - This file was automatically generated by VIMEO

0
00:00:05.900 --> 00:00:08.800
In this video. We are going to see how can

1
00:00:08.800 --> 00:00:11.400
 we save grippable output to

2
00:00:11.400 --> 00:00:13.200
 a file using nmap?

3
00:00:14.500 --> 00:00:17.800
So to do this we have to type the syntax and

4
00:00:17.800 --> 00:00:20.700
 map the target IP address followed by

5
00:00:20.700 --> 00:00:23.200
 hyphen OG and the file name

6
00:00:23.200 --> 00:00:24.000
 that you want to give.

7
00:00:25.300 --> 00:00:28.500
By giving this type of grippable output

8
00:00:28.500 --> 00:00:31.500
 it is easy and convenient for us.

9
00:00:32.300 --> 00:00:35.700
If we want to search and filter out some important thing

10
00:00:35.700 --> 00:00:38.400
 from our output of the nmap.

11
00:00:39.700 --> 00:00:42.300
Remember you can always add a hyphen V

12
00:00:42.300 --> 00:00:43.900
 to see the verbose output.

13
00:00:44.600 --> 00:00:45.800
Onto your terminal.

14
00:00:46.600 --> 00:00:49.700
the example of doing this scan is nmap the target

15
00:00:49.700 --> 00:00:52.600
 IP address followed by hyphen OG

16
00:00:52.600 --> 00:00:55.000
 and the file name that you want to

17
00:00:55.300 --> 00:00:55.600
 give as

18
00:00:56.400 --> 00:00:59.200
so, let's see this in Practical as you can see on

19
00:00:59.200 --> 00:01:02.300
 the screen. I'm going to type the command, which is nmap.

20
00:01:04.200 --> 00:01:06.300
followed by our Target IP address

21
00:01:12.600 --> 00:01:15.000
Hyphen, P hyphen to scan all the ports.

22
00:01:16.700 --> 00:01:17.500
hyphen V

23
00:01:18.100 --> 00:01:19.800
To see the output in verbose mode.

24
00:01:20.300 --> 00:01:22.500
hyphen, OG which stands for

25
00:01:23.400 --> 00:01:26.300
output in grepable format and the file name.

26
00:01:26.300 --> 00:01:29.200
 I already have a file name. So I'm going to make

27
00:01:29.200 --> 00:01:33.500
 a new file with grepable output 1.txt, as

28
00:01:32.500 --> 00:01:35.600
 you can see the scan has been started successfully.

29
00:01:36.900 --> 00:01:38.400
Let's wait for the scan to complete.

30
00:01:47.500 --> 00:01:49.800
As you can see the scan has been completed successfully.

31
00:01:51.200 --> 00:01:54.300
And we have identified that these are the five ports which

32
00:01:54.300 --> 00:01:55.100
 are opened.

33
00:01:56.700 --> 00:01:59.700
Let's see the output that we saved into the grepable

34
00:01:59.700 --> 00:02:01.100
 format as you can see over here.

35
00:02:04.300 --> 00:02:07.200
Let me just copy this file first to my folder, which is

36
00:02:07.200 --> 00:02:07.900
 unmap.

37
00:02:08.600 --> 00:02:11.300
Okay, so I have copied the file over here and you

38
00:02:11.300 --> 00:02:13.600
 can see the capable output that we saved.

39
00:02:14.500 --> 00:02:17.100
Let's try to see and read the output.

40
00:02:18.200 --> 00:02:20.800
So I'll just perform cat and the file name.

41
00:02:21.400 --> 00:02:24.400
Perfect, as you can see we have got the output over

42
00:02:24.400 --> 00:02:24.600
 here.

43
00:02:25.600 --> 00:02:28.700
This is the target IP which is the host and

44
00:02:28.700 --> 00:02:31.900
 these are the ports which are found to be open. So if

45
00:02:31.900 --> 00:02:34.500
 you want to filter out results from this particular file,

46
00:02:34.500 --> 00:02:36.000
 you can just grab.

47
00:02:37.300 --> 00:02:40.800
The particular port number if you want to for example 22 if

48
00:02:40.800 --> 00:02:43.300
 you want to grab Port 80, if you want to grab

49
00:02:43.300 --> 00:02:46.200
 open if you want to grab SSH, then you

50
00:02:46.200 --> 00:02:49.400
 can just simply grab that and get the output from this

51
00:02:49.400 --> 00:02:50.200
 particular file.

52
00:02:51.200 --> 00:02:54.300
I hope you guys understood how to perform this type of scan. Thank

53
00:02:54.300 --> 00:02:54.500
 you.
