In this lecture, we will learn to save the animal scan, result into a file by default, and a map
displays the scan result in the terminal.
Right.
It is a good if you want to analyze scan result instantly, but if you want to analyze scan result sometime
later or if you are scanning multiple networks or a large network, then a MAP scan result might span
into many pages.
In such cases, saving result into a file is always recommended.
Now let's get into the practical.
So type and map.
Now let me conduct a fast scan.
There are multiple ways that you can use to save the and map scan result.
One is we can redirect output of the scan result into a file with output redirection.
Operator All right.
So type greater than symbol.
Now specify the destination where you want to save the file.
I am saving file in my current directory, so I am just going to write the file name result dot txt
hit enter.
So what a map will do.
It will take result of this scan, then save that into this file.
As you can see, the scan is complete at this time and the map did not display the scan result in terminal
because output was saved or redirected to the result a dot text file.
Right now let's check the contents of result dot txt file.
As you can see, file has been created.
So let me check its contents.
As you can see guys, so here we have the result of and map scan saved into this file and we can also
use hyphen or parameter hyphen oh means output.
It also saves scan result into a file now.
Right.
The file name where you want to save the scan result or output.
This command is also going to save the scan result into the file result.
The only difference is that when you use output redirection operator to save output, then it does not
display the scan result in the terminal.
Output is directly saved into the file, whereas hyphen parameter not only saves the scan result into
a file, it also displays the scan result in the terminal.
That's the only difference.
Right.
So let me check the contents of the file.
As you can see here, we have the scan result saved in the file and the map allows us to save scan result
in multiple formats such as dot, txt and XML.
We have already covered dot txt format right now we will save output in xml format.
So type and map.
Type O means output, x means XML.
Now specify the destination where you want to save the file.
So I'm going to save in my current directory.
So I'm just specifying the file name scan xml dot.
Now write the xml extension x m l.
Now hit enter scan is complete.
Now let me check the contents of scan xml file.
As you can see, we have contents in the XML format.
Now, XML is an extremely important extension because most of the applications read data from XML files.
Sometimes we have to share the AMP scan result with other applications as well, and most of the third
party applications read data in XML format.
This is why it is important to know how to save and MAP scan result in XML format.