WEBVTT - This file was automatically generated by VIMEO

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

1
00:00:07.700 --> 00:00:10.700
 are going to see how we can save the

2
00:00:10.700 --> 00:00:13.400
 output of a nmap scan into a

3
00:00:13.400 --> 00:00:15.900
 file very easily and quickly.

4
00:00:17.200 --> 00:00:20.300
Whenever you run a scan using nmap, you can see the

5
00:00:20.300 --> 00:00:23.200
 output onto your terminal but you cannot save it

6
00:00:23.200 --> 00:00:26.200
 into a file in case you come back and you want

7
00:00:26.200 --> 00:00:27.500
 to say see the output.

8
00:00:28.700 --> 00:00:31.900
although nmap has specific options to

9
00:00:31.900 --> 00:00:34.400
 do that and to save the output into a

10
00:00:34.400 --> 00:00:38.200
 file which we are going to cover in the further sections, but

11
00:00:37.200 --> 00:00:40.000
 for now, we will see a quick

12
00:00:41.100 --> 00:00:44.200
And a easy way to save the output into a file.

13
00:00:45.200 --> 00:00:48.500
As you can see on the screen, I have given the command which is

14
00:00:48.500 --> 00:00:51.200
 nmap the target IP address that I

15
00:00:51.200 --> 00:00:54.600
 want to scan with a fast scan with a pipe and

16
00:00:54.600 --> 00:00:58.000
 I'm going to type grep open. So pipe

17
00:00:57.000 --> 00:00:58.100
 means

18
00:00:59.200 --> 00:01:02.500
You want to take the output of the First Command that

19
00:01:02.500 --> 00:01:05.700
 is this and give it as an input to the second command.

20
00:01:05.700 --> 00:01:07.100
 So I'm going to filter.

21
00:01:07.900 --> 00:01:10.500
Open from the output and then

22
00:01:10.500 --> 00:01:14.100
 again a pipe and it says cat which

23
00:01:13.100 --> 00:01:16.700
 means I'm going to read the output and I'm

24
00:01:16.700 --> 00:01:19.900
 going to save the output in results dot

25
00:01:19.900 --> 00:01:20.900
 txt file.

26
00:01:27.100 --> 00:01:28.200
So I will hit enter.

27
00:01:29.200 --> 00:01:31.300
And let's wait for the scan to complete.

28
00:01:33.100 --> 00:01:36.200
As you can see it has completed. Let me see if a

29
00:01:36.200 --> 00:01:39.800
 file has been created or Not by reading the file. So

30
00:01:39.800 --> 00:01:42.600
 I will just type catresults.txt and

31
00:01:42.600 --> 00:01:46.400
 you can see I have got the results of the open ports

32
00:01:45.400 --> 00:01:48.500
 from the nmap scan

33
00:01:48.500 --> 00:01:48.900
 output.

34
00:01:50.500 --> 00:01:50.900
Perfect.

35
00:01:51.800 --> 00:01:52.000
now

36
00:01:53.200 --> 00:01:54.800
what you can do is you can

37
00:01:56.400 --> 00:01:59.500
instead of using get you can also use

38
00:01:59.500 --> 00:02:02.400
 T to save the output into

39
00:02:02.400 --> 00:02:02.800
 the file.

40
00:02:03.800 --> 00:02:06.700
This time. Can you see instead of using this?

41
00:02:09.800 --> 00:02:12.900
Brackets double I'm using only single

42
00:02:12.900 --> 00:02:15.300
 this means to save the output into

43
00:02:15.300 --> 00:02:18.600
 a file and this means to append if

44
00:02:18.600 --> 00:02:21.500
 you are using them twice. So this time I'm

45
00:02:21.500 --> 00:02:24.200
 going to override the output which was

46
00:02:24.200 --> 00:02:27.800
 saved already and I'm going to save the new output using

47
00:02:27.800 --> 00:02:29.200
 the single bracket.

48
00:02:34.400 --> 00:02:37.200
As you can see the scan has been completed. Let's try

49
00:02:37.200 --> 00:02:38.100
 to read this file.

50
00:02:38.700 --> 00:02:41.900
As you can see the output has been overwritten into

51
00:02:41.900 --> 00:02:45.200
 this file. Now. I'm going to append again

52
00:02:44.200 --> 00:02:47.300
 the output and let's see the results.

53
00:02:49.600 --> 00:02:52.200
Let me see the result and you can see the scan has

54
00:02:52.200 --> 00:02:55.700
 been completed two times and we can see the output has

55
00:02:55.700 --> 00:02:58.800
 been pasted twice. So we have appended the

56
00:02:58.800 --> 00:03:01.400
 output you can always do this when you

57
00:03:01.400 --> 00:03:04.100
 are scanning multiple targets and you want to

58
00:03:04.100 --> 00:03:07.400
 retain the output of each Target into that

59
00:03:07.400 --> 00:03:10.500
 file. So you can just append the output

60
00:03:10.500 --> 00:03:13.500
 into any file using this particular.

61
00:03:14.500 --> 00:03:16.200
Symbol twice. Thank you.
