예제 #1
0
 def launchGuiInput(self):
     self.logger.debug('Launching dialog')
     dlg = ShellcodeWidget(self.dbstore, self.params)
     #disable script timeout -> otherwise cancel script dialog pops up
     oldTo = idaapi.set_script_timeout(0)
     res = dlg.exec_()
     #restore the timeout
     idaapi.set_script_timeout(oldTo)
     if res == QtGui.QDialog.DialogCode.Accepted:
         self.logger.debug('Dialog result: accepted')
     elif res == QtGui.QDialog.DialogCode.Rejected:
         self.logger.debug('Dialog result: rejected')
         raise RejectionException()
     else:
         self.logger.debug('Unknown result')
         raise RuntimeError('Dialog unknown result')
예제 #2
0
 def launchGuiInput(self):
     logger.debug('Launching dialog')
     dlg = ShellcodeWidget(self.dbstore, self.params)
     #disable script timeout -> otherwise cancel script dialog pops up
     oldTo = idaapi.set_script_timeout(0)
     res = dlg.exec_()
     #restore the timeout
     idaapi.set_script_timeout(oldTo)
     if res == QtWidgets.QDialog.Accepted:
         logger.debug('Dialog result: accepted')
     elif res == QtWidgets.QDialog.Rejected:
         logger.debug('Dialog result: rejected')
         raise RejectionException()
     else:
         logger.debug('Unknown result')
         raise RuntimeError('Dialog unknown result')