From 63e460bfe49180442e7a4a8f9c60eebf3fc66c88 Mon Sep 17 00:00:00 2001 From: Anof-cyber Date: Tue, 30 Aug 2022 19:22:15 +0530 Subject: [PATCH] V1.6.4 --- PentestMapper.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/PentestMapper.py b/PentestMapper.py index d77cfc3..ffe0385 100644 --- a/PentestMapper.py +++ b/PentestMapper.py @@ -44,7 +44,7 @@ def registerExtenderCallbacks(self, callbacks): # Creating a output after loading callbacks.printOutput("Author: AnoF") - callbacks.printOutput("Version: 1.6.3") + callbacks.printOutput("Version: 1.6.4") callbacks.printOutput("https://github.com/Anof-cyber/Pentest-Mapper") callbacks.registerContextMenuFactory(self) @@ -73,8 +73,9 @@ def registerExtenderCallbacks(self, callbacks): # adding the import button with onclick action which refers to the function below self.ChecklistbuttonPanel.add(JButton( "Import CheckList", actionPerformed=self.importchecklist)) - self.ChecklistbuttonPanel.add(JButton( - "Create CheckList", actionPerformed=self.createtestcases)) + self.createchecklistbutton = JButton("Create CheckList", actionPerformed=self.createtestcases) + #self.ChecklistbuttonPanel.add(JButton("Create CheckList", actionPerformed=self.createtestcases)) + self.ChecklistbuttonPanel.add(self.createchecklistbutton) self.firstTab.add(self.ChecklistbuttonPanel, BorderLayout.PAGE_START) @@ -933,14 +934,15 @@ def sendRepeaterItem(self,event): # function will handle, delete the row from api mapper def deleterow(self,event): row = self.logTable.getSelectedRows() - for rows in row: + + for rows in sorted(row, reverse=True): self._log.pop(rows) self.fireTableDataChanged() # delete row from the vulnerability table def deletevuln(self,e): totalvulnrows = self.table3.getSelectedRows() - for rows in totalvulnrows: + for rows in sorted(totalvulnrows, reverse=True): self.dataModel2.removeRow(rows) @@ -1177,6 +1179,7 @@ def importchecklist(self, e): # creating a function that will be called when user clicks on the create button this function will show the input field in UI for checklist taB def createtestcases(self, e): + self.createchecklistbutton.setEnabled(False) self.textfield1 = JTextField('', 15) self.ChecklistbuttonPanel.add(self.textfield1) self.ChecklistbuttonPanel.add(JButton(