Re: OSX zenmap -f or zenmap --file Problem
Daniel Miller <[email protected]>
| Newsgroups | gmane.comp.security.nmap.devel |
|---|---|
| Message-ID | <CABmvJnP=DQ9+c0jB-NRWCAn2+EGai0wp7Xf3P4QSbqze_XrzvA@mail.gmail.com> |
Paul, Thanks for reporting this. I've entered a bug description in our tracker at http://issues.nmap.org/839 . The problem is that command-line options are not being passed down the execution chain. I hope we can have this fixed soon. Regarding your task, it is possible to open all the XML files in a directory in a single merged Zenmap view. Of course, this is different than opening each in serial, so it might not meet your need. Also, you have to have enough memory to be able to hold all the results at once. Luckily, most of Zenmap's memory use is usually tied up in displaying the plain text output, which won't be present in your Nmap XML files. To do this, choose Scan -> Open... and navigate to the directory containing your scans. Then click "Open Directory" instead of "Open." Note that Zenmap will attempt to open all files in the directory, not only the ones with .xml extension. Nothing should crash, but you'll have an error popup for each incorrect file it tries, which is irritating. Probably we can fix that in the future, too. Dan On Tue, Apr 11, 2017 at 11:45 AM, Paul Barrett <[email protected]> wrote: > Platform: OSX Yosemite, Python Version: 2.7.11 > > I have multiple nmap output xml files in a directory and was trying to > iterate through them for firewall compliance checking. The following > also fails to open any files I get blank/empty zenmap instances. > > for f in WS*.x.xml;do sudo > /Applications/Zenmap.app/Contents/MacOS/Zenmap -f $f;done > > The following reports error or opens Zenmap but doesn't load file. > Example error output -v makes no difference. Its almost like the options > are not being parsed at all. > sudo /Applications/Zenmap.app/Contents/MacOS/Zenmap > --file=WS10.10.10.x.xml > 2017-04-11 08:58:25.048 Zenmap[63730:5144935] > /Applications/Zenmap.app/Contents/MacOS/zenmap.bin > 2017-04-11 08:58:25.112 Zenmap[63730:5144935] failure! > 2017-04-11 08:58:25.113 Zenmap[63730:5144935] total failure! > > > I tried to follow the sourcecode for the app.py and the > zenmapcore/umitoptparser.py but unfortunately I don't see the problem > and my python fu is not good enough yet. > > -- > Sincerely, > > Paul J Barrett > > > _______________________________________________ > Sent through the dev mailing list > https://nmap.org/mailman/listinfo/dev > Archived at http://seclists.org/nmap-dev/ > _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/