Solved

NMAP command line

Posted on 2014-01-21
4
2,002 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A brand new malware strain was recently discovered by security researchers at Palo Alto Networks dubbed “AceDeceiver.” This new strain of iOS malware can successfully infect non-jailbroken devices and jailbroken devices alike.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now