Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
sl2/gui: Warn user on wizard failure
Browse files Browse the repository at this point in the history
Additionally, disable the fuzzing button if are no wizard results
to target.
  • Loading branch information
woodruffw committed Sep 18, 2018
1 parent bb55edd commit 983bdce
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sl2/gui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def __init__(self):

# Set up fuzzer button
self.fuzzer_button = QtWidgets.QPushButton("Fuzz selected targets")
if not self.target_data.target_list:
self.fuzzer_button.setEnabled(False)

# Create checkboxes for continuous mode
self.continuous_mode_cbox = QtWidgets.QCheckBox("Continuous")
Expand Down Expand Up @@ -522,8 +524,13 @@ def checksec_finished(self, checksec_output):

def wizard_finished(self, wizard_output):
""" Dump the results of a wizard run to the target file and rebuild the tree """
self.target_data.set_target_list(wizard_output)
self.build_func_tree()
if wizard_output:
self.target_data.set_target_list(wizard_output)
self.build_func_tree()
self.fuzzer_button.setEnabled(True)
else:
QtWidgets.QMessageBox.critical(None, "Wizard failure",
"No wizard results; is the target 64-bit?")

def save_crashes(self):
""" Saves a csv of crash data """
Expand Down

0 comments on commit 983bdce

Please sign in to comment.