In this video. We are going to see how can
we save grippable output to
a file using nmap?
So to do this we have to type the syntax and
map the target IP address followed by
hyphen OG and the file name
that you want to give.
By giving this type of grippable output
it is easy and convenient for us.
If we want to search and filter out some important thing
from our output of the nmap.
Remember you can always add a hyphen V
to see the verbose output.
Onto your terminal.
the example of doing this scan is nmap the target
IP address followed by hyphen OG
and the file name that you want to
give as
so, let's see this in Practical as you can see on
the screen. I'm going to type the command, which is nmap.
followed by our Target IP address
Hyphen, P hyphen to scan all the ports.
hyphen V
To see the output in verbose mode.
hyphen, OG which stands for
output in grepable format and the file name.
I already have a file name. So I'm going to make
a new file with grepable output 1.txt, as
you can see the scan has been started successfully.
Let's wait for the scan to complete.
As you can see the scan has been completed successfully.
And we have identified that these are the five ports which
are opened.
Let's see the output that we saved into the grepable
format as you can see over here.
Let me just copy this file first to my folder, which is
unmap.
Okay, so I have copied the file over here and you
can see the capable output that we saved.
Let's try to see and read the output.
So I'll just perform cat and the file name.
Perfect, as you can see we have got the output over
here.
This is the target IP which is the host and
these are the ports which are found to be open. So if
you want to filter out results from this particular file,
you can just grab.
The particular port number if you want to for example 22 if
you want to grab Port 80, if you want to grab
open if you want to grab SSH, then you
can just simply grab that and get the output from this
particular file.
I hope you guys understood how to perform this type of scan. Thank
you.