def timerFunc(self): self.controller.timer() self.updateResults() self.updatePluginStatus() self.updateCrawlInfo() self.updateLogData() reqs=self.controller.getNewRequests() if reqs: a=self.tableWidget.rowCount() for i in reqs: self.tableWidget.insertRow(a) self.tableWidget.setItem(a,0,QtGui.QTableWidgetItem(i.method)) self.tableWidget.setItem(a,1,QtGui.QTableWidgetItem(i.urlWithoutPath)) self.tableWidget.setItem(a,2,QtGui.QTableWidgetItem(i.pathWithVariables)) if i["Cookie"]: self.tableWidget.setItem(a,3,QtGui.QTableWidgetItem(i["Cookie"])) self.updateCombos(i) a+=1 self.updateTable() self.tableWidget.setRowCount(self.numRequests) a=self.comboBox.currentText() b=self.comboBox_2.currentText() self.targetSelected(a) self.pathSelected(b) indexpath=self.comboBox_2.findText(b) indextarget=self.comboBox.findText(a) self.comboBox.setCurrentIndex(indextarget) self.comboBox_2.setCurrentIndex(indexpath) if self.controller.interceptON(): r=self.controller.getIntercepted() if r: dialog = QtGui.QDialog() inj=Injector() inj.setupUi(dialog) inj.setReq(r.getRawRequest()) dialog.exec_() state=inj.getState() if state=="drop": self.controller.destroyIntercepted(r) elif state=="follow": str=inj.getRawReq() r.setRawRequest(str) self.controller.processIntercepted(r) else: self.controller.processIntercepted(r) self.interceptCheck.setChecked(False)