How to save Nmap output to file Example

Hi and welcome again!

I am happy to see you here on my blog, I hope you will love my articles and help me to write better articles by commenting blew. This article will cover to save nmap output to file example in different methods.

You are reading an article part of nmap network scanning series 

  1. introduction to scanning phase of penetration-testing
  2. Examples of Network Scanning for Live Host by Kali Linux
  3. important nmap commands in Kali Linux with Example
  4. Techniques of Nmap port scanner – Scanning
  5. Nmap Timing Templates – You should know
  6. <You are HERE>
  7. Nmap Scripts in Kali Linux

How to save nmap output to file example

There are ordinarily that the penetration tester does not need the Nmap scan to be output to the screen but instead saved Nmap output to file example. This is possible by redirecting with the pipe command (j), yet for this part the Nmap scan output choices will be described. These include ordinary, XML, and Grepable. For these examples, the metasploitable target at will be utilized and the fitting broadening will be utilized with the document name “metascan”.

-oN Normal nmap Output to file example

The –oN option will create a text file that can be used to examine the scan results or use as target file for other tools.

#nmap –oN /Destination_Location/metascan.txt

-oN Normal Output in Nmap

-oX Extensible Markup Language (XML) Output

This –oX option is used to input into a number of different tools for evaluating or processing

#namp –oX /Destination_Location/metascan.xml

-oX Extensible Markup Language (XML) Output in Nmap

-oG GREPable Output

Grepable yield is regularly utilized by penetration testing to permit further examination utilizing tools like GREP, however can additionally be looked utilizing apparatuses like AWK, SED, and DIFF.

#nmap –oG /Destination_Location/metascan.txt

-oS ScRipt Kidd|# Output in Nmap

-oS ScRipt Kidd|# Output

While not utilized for genuine penetration testing, the script kiddie output can be enjoyable to use now and again. This output technique ought not be utilized for genuine outputs as it uses the “leet” talk utilized by numerous that generally penetration tester would call “script Kiddies.”

#nmap –oG /Destination_Location/metascan.txt

-oG GREPable Output in Nmap

You have learnt How to save Nmap output to file Example Thanks for reading, Please comment what imporvement would be done in this articles. I am waiting for your comments!


1 thought on “How to save Nmap output to file Example

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.