Package IDAscope :: Package idascope :: Package widgets :: Module CryptoIdentificationWidget :: Class CryptoIdentificationWidget
[hide private]
[frames] | no frames]

Class CryptoIdentificationWidget

source code

PySide.QtGui.QMainWindow --+
                           |
                          CryptoIdentificationWidget

Instance Methods [hide private]
 
__init__(self, parent) source code
 
createGui(self)
Setup function for the full GUI of this widget.
source code
 
create_toolbar(self)
Creates the toolbar, containing buttons to control the widget.
source code
 
create_scan_action(self)
Create an action for the scan button of the toolbar and connect it.
source code
 
onScanButtonClicked(self)
The logic of the scan button from the toolbar.
source code
 
create_aritlog_widget(self)
Create the widget for the arithmetic/logic heuristic.
source code
 
create_aritlog_table(self)
Create the result table for displaying results of the arithmetic/logic heuristic.
source code
 
populate_aritlog_table(self)
Populate the result table for the arithmetic/logic table.
source code
 
set_aritlog_result_label(self, num_hits, is_grouped)
Update the label displaying the current number of result entries (basic blocks or functions) after filtering.
source code
 
calculate_aritlog_table_data(self, aritlog_blocks, is_grouped)
Prepare data for display in the result table for the arithmetic/logic heuristic.
source code
 
set_aritlog_table_header_labels(self, is_grouped)
Set the header labels for the arithmetic/logic result table.
source code
 
get_aritlog_table_item(self, data_item, column_index, is_grouped)
Transform a data item for display in the arithmetic/logic result table
source code
 
onAritlogResultDoubleClicked(self, mi)
The action to perform when an entry in the arithmetic/logic table is double clicked.
source code
 
create_signature_widget(self)
Create the widget for the signature part.
source code
 
populate_signature_tree(self)
populate the TreeWidget for display of the signature scanning results.
source code
 
SignatureTreeItemDoubleClicked(self, item, column)
The action to perform when an entry in the signature TreeWIdget is double clicked.
source code
Method Details [hide private]

onScanButtonClicked(self)

source code 

The logic of the scan button from the toolbar. Uses the scanning functions o CryptoIdentifier and updates the elements displaying the results.

populate_aritlog_table(self)

source code 

Populate the result table for the arithmetic/logic table. Called everytime control parameters or scan results change.

set_aritlog_result_label(self, num_hits, is_grouped)

source code 

Update the label displaying the current number of result entries (basic blocks or functions) after filtering.

Parameters:
  • num_hits (int) - the number to display
  • is_grouped (boolean) - decides whether to display in basic block or functions mode

calculate_aritlog_table_data(self, aritlog_blocks, is_grouped)

source code 

Prepare data for display in the result table for the arithmetic/logic heuristic. If display is grouped to functions, data is transformed accordingly, otherwise the input is returned without manipulation.

Parameters:
  • aritlog_blocks - the blocks to transform for display
  • is_grouped - decides whether preparation shall be made for functionally grouped or basic block display.
Returns:
(a list of elements) where elements are either AritLogBasicBlocks or temporary dictionaries

set_aritlog_table_header_labels(self, is_grouped)

source code 

Set the header labels for the arithmetic/logic result table.

Parameters:
  • is_grouped - decides whether header labels shall be created for functionally grouped or basic block display.

get_aritlog_table_item(self, data_item, column_index, is_grouped)

source code 

Transform a data item for display in the arithmetic/logic result table

Parameters:
  • data_item (either a AritLogBasicBlock or a dictionary for a function) - the item to prepare for display
  • column_index (int) - the column to prepare the item for
  • is_grouped - decides whether the item shall be prepared for functionally grouped or basic block display.
Returns:
the prepared item

onAritlogResultDoubleClicked(self, mi)

source code 

The action to perform when an entry in the arithmetic/logic table is double clicked. Changes IDA View either to the function or basic block, depending on the column clicked.

SignatureTreeItemDoubleClicked(self, item, column)

source code 

The action to perform when an entry in the signature TreeWIdget is double clicked. Changes IDA View either to location clicked.