diff --git a/README.md b/README.md index f45bc89..043b2f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -SPARTA v1.0.3 BETA (http://sparta.secforce.com) +SPARTA v1.0.4 BETA (http://sparta.secforce.com) == Authors: diff --git a/ui/view.py b/ui/view.py index 9301687..3617399 100644 --- a/ui/view.py +++ b/ui/view.py @@ -395,10 +395,8 @@ def connectImportNmap(self): def importNmap(self): self.ui.statusbar.showMessage('Importing nmap xml..', msecs=1000) - filename = QtGui.QFileDialog.getOpenFileName(self.ui.centralwidget, 'Choose nmap file', self.controller.getCWD(), filter='XML file (*.xml)') - - if not filename == '': - + filenames = QtGui.QFileDialog.getOpenFileNames(self.ui.centralwidget, 'Choose nmap file', self.controller.getCWD(), filter='XML file (*.xml)') + for filename in filenames: if not os.access(filename, os.R_OK): # check for read permissions on the xml file print '[-] Insufficient permissions to read this file.' reply = QtGui.QMessageBox.warning(self.ui.centralwidget, 'Warning', "You don't have the necessary permissions to read this file.","Ok") @@ -409,9 +407,8 @@ def importNmap(self): self.controller.nmapImporter.start() self.controller.copyNmapXMLToOutputFolder(str(filename)) self.importProgressWidget.show() - - else: - print '\t[-] No file chosen..' + + self.controller.nmapImporter.wait() ###