Solved

NMAP command line

Posted on 2014-01-21
4
2,176 Views
Last Modified: 2014-01-27
I am getting an error while trying to save the output to an output file using nmap through command line.  The GUI keeps crashing on me so I am trying to the command line to see if it works but I get the following error:


C:\Program Files (x86)\Nmap>nmap -T4 -F 172.16.0.0/16 -oX myscan.xml
Failed to open XML output file myscan.xml for writing
QUITTING!

Does anyone know what the issue might be related to?

LN
0
Comment
Question by:LateNaite
4 Comments
 
LVL 9

Assisted Solution

by:BigPapaGotti
BigPapaGotti earned 166 total points
ID: 39797999
does the myscan.xml file exist in the directory you are running nmap from? If not I would try creating it and ensuring you have the appropriate permissions to the file for writing. You may also specify the direct path to your XML file such as "C:\nmap\Myscan.xml"
0
 
LVL 19

Assisted Solution

by:Patricksr1972
Patricksr1972 earned 167 total points
ID: 39798038
BigPapa is right, it is complaining the file is not there, your command is good.

Zenmap is even easier, just scan and save scan to XML.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 167 total points
ID: 39798834
An other issue might be that typically a normal user can't update anything in C:\Program Files (x86) or under it.

I would try:

nmap -T4 -F 172.16.0.0/16 -oX c:\users\xxxxxx\myscan.xml

Where xxxxx is your userid, or run command prompt as Admin.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ESXI home lab network setup (KISS) 12 160
Fortigate 100D NTP Issue 4 78
Help logging in to my router 12 48
PCI Scan on IIS Remediation not working 1 5
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Ransomware continues to be a growing problem for both personal and business users alike and Antivirus companies are still struggling to find a reliable way to protect you from this dangerous threat.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question