WEBVTT

00:00.090 --> 00:09.060
In this lecture, we will learn to save the animal scan, result into a file by default, and a map

00:09.090 --> 00:12.960
displays the scan result in the terminal.

00:13.020 --> 00:13.530
Right.

00:13.560 --> 00:23.910
It is a good if you want to analyze scan result instantly, but if you want to analyze scan result sometime

00:23.910 --> 00:33.960
later or if you are scanning multiple networks or a large network, then a MAP scan result might span

00:33.960 --> 00:35.730
into many pages.

00:35.760 --> 00:41.550
In such cases, saving result into a file is always recommended.

00:41.640 --> 00:44.670
Now let's get into the practical.

00:44.700 --> 00:46.550
So type and map.

00:46.560 --> 00:49.260
Now let me conduct a fast scan.

00:49.620 --> 00:56.010
There are multiple ways that you can use to save the and map scan result.

00:56.040 --> 01:04.520
One is we can redirect output of the scan result into a file with output redirection.

01:04.530 --> 01:05.870
Operator All right.

01:05.880 --> 01:07.620
So type greater than symbol.

01:07.620 --> 01:14.020
Now specify the destination where you want to save the file.

01:14.040 --> 01:24.240
I am saving file in my current directory, so I am just going to write the file name result dot txt

01:24.270 --> 01:25.020
hit enter.

01:25.020 --> 01:26.610
So what a map will do.

01:26.610 --> 01:33.030
It will take result of this scan, then save that into this file.

01:33.330 --> 01:41.820
As you can see, the scan is complete at this time and the map did not display the scan result in terminal

01:41.820 --> 01:48.870
because output was saved or redirected to the result a dot text file.

01:48.930 --> 01:54.310
Right now let's check the contents of result dot txt file.

01:54.480 --> 01:57.210
As you can see, file has been created.

01:57.210 --> 01:59.850
So let me check its contents.

02:01.680 --> 02:11.760
As you can see guys, so here we have the result of and map scan saved into this file and we can also

02:12.390 --> 02:16.750
use hyphen or parameter hyphen oh means output.

02:16.770 --> 02:22.080
It also saves scan result into a file now.

02:22.080 --> 02:22.620
Right.

02:22.740 --> 02:28.920
The file name where you want to save the scan result or output.

02:30.840 --> 02:37.380
This command is also going to save the scan result into the file result.

02:38.280 --> 02:47.850
The only difference is that when you use output redirection operator to save output, then it does not

02:47.910 --> 02:51.340
display the scan result in the terminal.

02:51.360 --> 03:01.260
Output is directly saved into the file, whereas hyphen parameter not only saves the scan result into

03:01.260 --> 03:06.720
a file, it also displays the scan result in the terminal.

03:06.750 --> 03:08.610
That's the only difference.

03:08.790 --> 03:09.270
Right.

03:09.270 --> 03:13.320
So let me check the contents of the file.

03:13.350 --> 03:23.280
As you can see here, we have the scan result saved in the file and the map allows us to save scan result

03:23.400 --> 03:29.310
in multiple formats such as dot, txt and XML.

03:29.340 --> 03:38.190
We have already covered dot txt format right now we will save output in xml format.

03:38.190 --> 03:39.810
So type and map.

03:42.370 --> 03:45.800
Type O means output, x means XML.

03:46.000 --> 03:52.160
Now specify the destination where you want to save the file.

03:52.180 --> 03:54.610
So I'm going to save in my current directory.

03:54.610 --> 04:00.630
So I'm just specifying the file name scan xml dot.

04:00.640 --> 04:04.210
Now write the xml extension x m l.

04:04.240 --> 04:07.660
Now hit enter scan is complete.

04:07.670 --> 04:13.300
Now let me check the contents of scan xml file.

04:13.330 --> 04:17.950
As you can see, we have contents in the XML format.

04:17.980 --> 04:28.000
Now, XML is an extremely important extension because most of the applications read data from XML files.

04:28.030 --> 04:37.630
Sometimes we have to share the AMP scan result with other applications as well, and most of the third

04:37.630 --> 04:42.670
party applications read data in XML format.

04:42.820 --> 04:51.160
This is why it is important to know how to save and MAP scan result in XML format.
