Skip to content

Commit

Permalink
Fix multiple Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Anof-cyber committed Aug 3, 2022
1 parent a779275 commit a46cc0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions Checklist.CSV
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@
50,Captcha Bypass
51,Price Manipulation
52,Internal IP Disclosed
53,Login Bypass
Expand Down
17 changes: 9 additions & 8 deletions PentestMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from javax.swing import (JMenuItem, JTable, JButton, JTextField, GroupLayout, JTabbedPane, JTextPane, RowFilter
,JScrollPane, JSplitPane, JLabel, JPopupMenu, JComboBox, DefaultCellEditor, JToggleButton, JTextArea
,JPanel, JFileChooser, JSeparator,LayoutStyle )
,JPanel, JFileChooser, JSeparator,LayoutStyle, Box )

from javax.swing.table import ( DefaultTableModel, AbstractTableModel, TableRowSorter )
from javax.swing.SwingConstants import VERTICAL
Expand Down Expand Up @@ -44,7 +44,7 @@ def registerExtenderCallbacks(self, callbacks):

# Creating a output after loading
callbacks.printOutput("Author: AnoF")
callbacks.printOutput("Version: 1.6")
callbacks.printOutput("Version: 1.6.2")
callbacks.printOutput("https://github.com/Anof-cyber/Pentest-Mapper")

callbacks.registerContextMenuFactory(self)
Expand Down Expand Up @@ -621,8 +621,7 @@ def registerExtenderCallbacks(self, callbacks):
self.timerbox.setText(self.time)
self.autosavepath.setText(self.path)

self.callbacks.printOutput("\nAuto Save Time = " + self.time)
self.callbacks.printOutput("Auto Save Path = " + self.path +"\n")


self.autoloadchecklist = 0
self.autosavelocation = 0
Expand All @@ -636,7 +635,7 @@ def registerExtenderCallbacks(self, callbacks):
self.Excludefiletextfield.setText(self.loadexcludefiles)

if self.time == None:
self.time = 1
self.time = 10
self.timerbox.setText(str(self.time))
else:
pass
Expand All @@ -647,6 +646,8 @@ def registerExtenderCallbacks(self, callbacks):
else:
pass

self.callbacks.printOutput("\nAuto Save Time = " + str(self.time))
self.callbacks.printOutput("Auto Save Path = " + self.path +"\n")


# Loading the checkling if auto load checklist configured
Expand Down Expand Up @@ -1177,10 +1178,10 @@ 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.textfield1 = JTextField('', 15)
self.buttonPanel.add(self.textfield1)
self.buttonPanel.add(JButton(
self.ChecklistbuttonPanel.add(self.textfield1)
self.ChecklistbuttonPanel.add(JButton(
"Submit", actionPerformed=self.addrow))
self.buttonPanel.add(Box.createVerticalGlue())
self.ChecklistbuttonPanel.add(Box.createVerticalGlue())

# this function will be called as soon as user click on suBmit Button of add row UI input
def addrow(self, e):
Expand Down

0 comments on commit a46cc0b

Please sign in to comment.