Hello everyone. So we saw.
How can we save nmap output into different file
formats. We also saw how can we
convert those file formats into HTML format for
better readability. We also
saw how can we convert that particular format to
CSV for our Recon purposes?
But in this video we are going to see that how
can you save all the types of output through
one command?
For that we are going to run this particular syntax, which
is nmap the target IP address hyphen. OA
- OA stands for
output in all formats with a file name that
you want to give.
So you can scan a Target by simply giving an
IP address and specify The Hyphen OA flight which
is used for saving all types of output to a
file for later use.
You can always add hyphen V to see the output inverse
mode the example of doing this scan is
nmap the target IP hyphen, OA followed
by the file name that you want to give.
So it will create all file formats with the
base name as all outputs file. You can
choose any name that you want. I have chosen the name which is all
output file.
So, let's see this how can you perform this type
of scam as you can see on my terminal first. I'm
going to type the command that is mkdir all
first time making a folder and I'm going
to make all the files into the specific folder. I
will quickly navigate inside that folder and now
I'm going to run this particular scan.
So nmap my target IP address.
Let's say I want to scan.
First 200 ports hyphen V to see
the output in verbose hyphen, OA to save
all the outputs.
Of all the major formats and the file name I
have given is all files base as you can
see the scan is completed successfully and I have identified there
are three open ports.
If I do a LS, you can see the output has
been saved into these file formats.
The first is all file based dot
gnmap, which is the grepable format all filebase
Dot and map which is the normal format. And
the last one is all files based or XML, which
is the XML format.
Let's try to read the first one which is
the grepable format. As you can see we can easily grip
whatever we want from this specific file. The
next is the normal output.
Which looks something like this?
And the last one is the XML output so you
can just read it.
And you will be able to see this file saves the output in
XML format.
I hope you guys understood this how you can convert the
output in all the major formats. Thank
you.