Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SPARTA v1.0.3 BETA (http://sparta.secforce.com)
SPARTA v1.0.4 BETA (http://sparta.secforce.com)
==

Authors:
Expand Down
11 changes: 4 additions & 7 deletions ui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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()

###

Expand Down