Exemplo n.º 1
0
    def OnCreate(self, form):
        # Get parent widget

        self.parent = qt.formtowidget(self, form)
        self.calls = []
        self.call_categories = set()
        self.cuckoo_version = "Unknown"
        self.impts = []

        # Create tab control
        self.tabs = qt.qtabwidget()()
        self.tabs.setTabsClosable(False)

        self._widgets = {}

        # create
        for widget in self.ENABLED_WIDGETS:
            w = widget(self)
            self._widgets[widget.short_name] = w
            tab, tab_name = w.getTacoTab()
            self.tabs.addTab(tab, tab_name)

        layout = qt.qvboxlayout()()
        layout.addWidget(self.tabs)
        self.parent.setLayout(layout)
        self.loadNonCuckooTabs()
Exemplo n.º 2
0
    def OnCreate(self, form):
        # Get parent widget

        self.parent = qt.formtowidget(self, form)
        self.calls = []
        self.call_categories = set()
        self.cuckoo_version = "Unknown"
        self.impts = []

        # Create tab control
        self.tabs = qt.qtabwidget()()
        self.tabs.setTabsClosable(False)

        self._widgets = {}

        # create
        for widget in self.ENABLED_WIDGETS:
            w = widget(self)
            self._widgets[widget.short_name] = w
            tab, tab_name = w.getTacoTab()
            self.tabs.addTab(tab, tab_name)

        layout = qt.qvboxlayout()()
        layout.addWidget(self.tabs)
        self.parent.setLayout(layout)
        self.loadNonCuckooTabs()
Exemplo n.º 3
0
 def initLayout(self):
     call_table_layout = qt.qvboxlayout()()
     filter_layout = qt.qhboxlayout()()
     markup_layout = qt.qhboxlayout()()
     markup_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     markup_layout.addWidget(qt.qlabel()("Choose Color: "))
     markup_layout.addWidget(self._color_button)
     markup_layout.addWidget(qt.qlabel()("Choose Function Color: "))
     markup_layout.addWidget(self._func_color_button)
     markup_layout.addWidget(qt.qlabel()("\t\t\tMarkup: "))
     markup_category_button = qt.qpushbutton()("Selected")
     markup_category_button.clicked.connect(self.markupCategories)
     markup_all_button = qt.qpushbutton()("All")
     markup_all_button.clicked.connect(self.markupAll)
     markup_remove_button = qt.qpushbutton()("Remove")
     markup_remove_button.clicked.connect(self.removeAllMarkup)
     markup_layout.addWidget(markup_category_button)
     markup_layout.addWidget(markup_all_button)
     markup_layout.addWidget(markup_remove_button)
     call_table_layout.addLayout(markup_layout)
     self._checkbox_layout = qt.qhboxlayout()()
     self._checkbox_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     self._checkbox_layout.addWidget(qt.qlabel()("Categories: "))
     call_table_layout.addLayout(self._checkbox_layout)
     self._filter_box = qt.qlineedit()()
     self._filter_box.setMaxLength(80)
     _filter_button = qt.qpushbutton()("Filter")
     _filter_button.clicked.connect(self.filterCallData)
     filter_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     filter_layout.addWidget(qt.qlabel()("Select: "))
     b_all = qt.qpushbutton()("All")
     width = b_all.fontMetrics().boundingRect("All").width() + 9
     b_all.setMaximumWidth(width)
     b_all.clicked.connect(self.selectAll)
     b_none = qt.qpushbutton()("None")
     width = b_all.fontMetrics().boundingRect("None").width() + 9
     b_none.setMaximumWidth(width)
     b_none.clicked.connect(self.selectNone)
     filter_layout.addWidget(b_all)
     filter_layout.addWidget(b_none)
     filter_layout.addWidget(qt.qlabel()("Filter Calls: "))
     filter_layout.addWidget(self._filter_box)
     filter_layout.addWidget(_filter_button)
     call_table_layout.addLayout(filter_layout)
     call_table_layout.addWidget(self._call_table)
     self.setLayout(call_table_layout)
Exemplo n.º 4
0
 def initLayout(self):
     call_table_layout = qt.qvboxlayout()()
     filter_layout = qt.qhboxlayout()()
     markup_layout = qt.qhboxlayout()()
     markup_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     markup_layout.addWidget(qt.qlabel()("Choose Color: "))
     markup_layout.addWidget(self._color_button)
     markup_layout.addWidget(qt.qlabel()("Choose Function Color: "))
     markup_layout.addWidget(self._func_color_button)
     markup_layout.addWidget(qt.qlabel()("\t\t\tMarkup: "))
     markup_category_button = qt.qpushbutton()("Selected")
     markup_category_button.clicked.connect(self.markupCategories)
     markup_all_button = qt.qpushbutton()("All")
     markup_all_button.clicked.connect(self.markupAll)
     markup_remove_button = qt.qpushbutton()("Remove")
     markup_remove_button.clicked.connect(self.removeAllMarkup)
     markup_layout.addWidget(markup_category_button)
     markup_layout.addWidget(markup_all_button)
     markup_layout.addWidget(markup_remove_button)
     call_table_layout.addLayout(markup_layout)
     self._checkbox_layout = qt.qhboxlayout()()
     self._checkbox_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     self._checkbox_layout.addWidget(qt.qlabel()("Categories: "))
     call_table_layout.addLayout(self._checkbox_layout)
     self._filter_box = qt.qlineedit()()
     self._filter_box.setMaxLength(80)
     _filter_button = qt.qpushbutton()("Filter")
     _filter_button.clicked.connect(self.filterCallData)
     filter_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     filter_layout.addWidget(qt.qlabel()("Select: "))
     b_all = qt.qpushbutton()("All")
     width = b_all.fontMetrics().boundingRect("All").width() + 9
     b_all.setMaximumWidth(width)
     b_all.clicked.connect(self.selectAll)
     b_none = qt.qpushbutton()("None")
     width = b_all.fontMetrics().boundingRect("None").width() + 9
     b_none.setMaximumWidth(width)
     b_none.clicked.connect(self.selectNone)
     filter_layout.addWidget(b_all)
     filter_layout.addWidget(b_none)
     filter_layout.addWidget(qt.qlabel()("Filter Calls: "))
     filter_layout.addWidget(self._filter_box)
     filter_layout.addWidget(_filter_button)
     call_table_layout.addLayout(filter_layout)
     call_table_layout.addWidget(self._call_table)
     self.setLayout(call_table_layout)
Exemplo n.º 5
0
 def initLayout(self):
     loader_vlayout = qt.qvboxlayout()()
     loader_hlayout = qt.qhboxlayout()()
     loader_hlayout.addWidget(qt.qlabel()("JSON File"))
     b = qt.qpushbutton()("Open File")
     b1 = qt.qpushbutton()("Process File")
     b.clicked.connect(self.getFileName)
     b1.clicked.connect(self.loadJsonFile)
     loader_hlayout.addWidget(self._fpath)
     loader_hlayout.addWidget(b)
     loader_hlayout.addWidget(b1)
     loader_vlayout.addLayout(loader_hlayout)
     #loader_hlayout2 = QtGui.QHBoxLayout()
     b2 = qt.qpushbutton()("Load Data for Selected Process")
     b2.clicked.connect(self.parent.loadProcessData)
     loader_vlayout.addWidget(b2)
     loader_vlayout.addWidget(self._proc_tree)
     self.setLayout(loader_vlayout)
Exemplo n.º 6
0
 def getTacoTab(self):
     taco_tab = qt.qwidget()()
     layout = qt.qvboxlayout()()
     layout.addWidget(self)
     taco_tab.setLayout(layout)
     return taco_tab, self.name
Exemplo n.º 7
0
 def initLayout(self):
     layout = qt.qvboxlayout()()
     layout.addWidget(self._interesting_xor_table)
     self.setLayout(layout)
Exemplo n.º 8
0
 def initLayout(self):
     impt_table_layout = qt.qvboxlayout()()
     impt_table_layout.addWidget(self._import_table)
     self.setLayout(impt_table_layout)
Exemplo n.º 9
0
 def initLayout(self):
     layout = qt.qvboxlayout()()
     layout.addWidget(self._switch_tree)
     self.setLayout(layout)
Exemplo n.º 10
0
 def initLayout(self):
     layout = qt.qvboxlayout()()
     layout.addWidget(self._bytestring_table)
     self.setLayout(layout)
Exemplo n.º 11
0
 def initLayout(self):
     sig_table_layout = qt.qvboxlayout()()
     sig_table_layout.addWidget(self._signature_table)
     self.setLayout(sig_table_layout)
Exemplo n.º 12
0
 def initLayout(self):
     sig_table_layout = qt.qvboxlayout()()
     sig_table_layout.addWidget(self._signature_table)
     self.setLayout(sig_table_layout)
Exemplo n.º 13
0
 def initLayout(self):
     layout = qt.qvboxlayout()()
     layout.addWidget(self._bytestring_table)
     self.setLayout(layout)
Exemplo n.º 14
0
 def initLayout(self):
     impt_table_layout = qt.qvboxlayout()()
     impt_table_layout.addWidget(self._import_table)
     self.setLayout(impt_table_layout)
Exemplo n.º 15
0
 def initLayout(self):
     layout = qt.qvboxlayout()()
     layout.addWidget(self._interesting_xor_table)
     self.setLayout(layout)