Skip to content

Commit

Permalink
Fixed - Auto Save and Create checklist bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Anof-cyber committed Aug 2, 2023
1 parent 5345129 commit e519f14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions PentestMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def registerExtenderCallbacks(self, callbacks):

# Creating a output after loading
callbacks.printOutput("Author: Sourav Kalal Aka AnoF")
callbacks.printOutput("Version: 1.7.2")
callbacks.printOutput("Version: 1.7.3")
callbacks.printOutput("https://github.com/Anof-cyber/Pentest-Mapper")

callbacks.registerContextMenuFactory(self)
Expand Down Expand Up @@ -310,9 +310,9 @@ def registerExtenderCallbacks(self, callbacks):
#comboColumn.setCellEditor(DefaultCellEditor(self.comboBox))


editor = AutocompleteTableCellEditor(self.combolist,self.table3)
self.editor = AutocompleteTableCellEditor(self.combolist,self.table3)
comboColumn = self.table3.getColumnModel().getColumn(2)
comboColumn.setCellEditor(editor)
comboColumn.setCellEditor(self.editor)



Expand Down Expand Up @@ -745,7 +745,7 @@ def registerExtenderCallbacks(self, callbacks):
#self.comboBox.addItem(str(title))
self.combolist.append(str(title))
combo_model = DefaultComboBoxModel(self.combolist)
editor.comboBox.setModel(combo_model)
self.editor.comboBox.setModel(combo_model)
f.close()
self.Checklistfilepath.setText(self.checklistpath)

Expand Down Expand Up @@ -1223,7 +1223,7 @@ def importchecklist(self, e):
self.comboBox.addItem(str(title))
self.combolist.append(str(title))
combo_model = DefaultComboBoxModel(self.combolist)
editor.comboBox.setModel(combo_model)
self.editor.comboBox.setModel(combo_model)
f.close()


Expand All @@ -1245,7 +1245,7 @@ def addrow(self, e):
self.comboBox.addItem(str(title))
self.combolist.append(str(title))
combo_model = DefaultComboBoxModel(self.combolist)
editor.comboBox.setModel(combo_model)
self.editor.comboBox.setModel(combo_model)
self.dataModel.addRow(obj)
if not self.checklistpath == None:
# Writing the new entry in file
Expand Down
4 changes: 2 additions & 2 deletions pentestmapper/autosave.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def run(self):
paramter = self._handlingoutput.dataModel2.getValueAt(int(row),1)
Vulnerability = self._handlingoutput.dataModel2.getValueAt(int(row),2)
Severity = self._handlingoutput.dataModel2.getValueAt(int(row),3)
Request = self._handlingoutput.dataModel2.getValueA(int(row),4)
Response = self._handlingoutput.dataModel2.getValueA(int(row),5)
Request = self._handlingoutput.dataModel2.getValueAt(int(row),4)
Response = self._handlingoutput.dataModel2.getValueAt(int(row),5)
#self.callbacks.printOutput(str(url))

#self.callbacks.printOutput(str(logEntry._sr))
Expand Down

0 comments on commit e519f14

Please sign in to comment.