Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

NMAP command line

Posted on 2014-01-21
4
2,238 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 20

Assisted Solution

by:Patrick Bogers
Patrick Bogers 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

SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Transferring data across the virtual world became simpler but protecting it is becoming a real security challenge.  How to approach cyber security  in today's business world!
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…

860 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