mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
* Add information from aai to Dashboard
This commit is contained in:
parent
88553ae7d9
commit
d69dee7225
@ -74,11 +74,22 @@ void Dashboard::updateContents()
|
|||||||
setBool(this->ui->strippedEdit, item2, "stripped");
|
setBool(this->ui->strippedEdit, item2, "stripped");
|
||||||
setBool(this->ui->relocsEdit, item2, "relocs");
|
setBool(this->ui->relocsEdit, item2, "relocs");
|
||||||
|
|
||||||
// Add file hashes and libraries
|
// Add file hashes, analysis info and libraries
|
||||||
QJsonObject hashes = Core()->cmdj("itj").object();
|
QJsonObject hashes = Core()->cmdj("itj").object();
|
||||||
setPlainText(ui->md5Edit, hashes["md5"].toString());
|
setPlainText(ui->md5Edit, hashes["md5"].toString());
|
||||||
setPlainText(ui->sha1Edit, hashes["sha1"].toString());
|
setPlainText(ui->sha1Edit, hashes["sha1"].toString());
|
||||||
|
|
||||||
|
QJsonObject analinfo = Core()->cmdj("aaij").object();
|
||||||
|
setPlainText(ui->functionsLineEdit, QString::number(analinfo["fcns"].toInt()));
|
||||||
|
setPlainText(ui->xRefsLineEdit, QString::number(analinfo["xrefs"].toInt()));
|
||||||
|
setPlainText(ui->callsLineEdit, QString::number(analinfo["calls"].toInt()));
|
||||||
|
setPlainText(ui->stringsLineEdit, QString::number(analinfo["strings"].toInt()));
|
||||||
|
setPlainText(ui->symbolsLineEdit, QString::number(analinfo["symbols"].toInt()));
|
||||||
|
setPlainText(ui->importsLineEdit, QString::number(analinfo["imports"].toInt()));
|
||||||
|
setPlainText(ui->coverageLineEdit, QString::number(analinfo["covrage"].toInt()) + " bytes");
|
||||||
|
setPlainText(ui->codeSizeLineEdit, QString::number(analinfo["codesz"].toInt()) + " bytes");
|
||||||
|
setPlainText(ui->percentageLineEdit, QString::number(analinfo["percent"].toInt()) + "%");
|
||||||
|
|
||||||
QStringList libs = Core()->cmdList("il");
|
QStringList libs = Core()->cmdList("il");
|
||||||
if (!libs.isEmpty()) {
|
if (!libs.isEmpty()) {
|
||||||
libs.removeFirst();
|
libs.removeFirst();
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1055</width>
|
<width>1055</width>
|
||||||
<height>982</height>
|
<height>980</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||||
@ -973,99 +973,334 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QFormLayout" name="formLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
<property name="fieldGrowthPolicy">
|
<item>
|
||||||
<enum>QFormLayout::ExpandingFieldsGrow</enum>
|
<layout class="QFormLayout" name="formLayout_2">
|
||||||
</property>
|
<property name="fieldGrowthPolicy">
|
||||||
<property name="labelAlignment">
|
<enum>QFormLayout::ExpandingFieldsGrow</enum>
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
</property>
|
||||||
</property>
|
<property name="labelAlignment">
|
||||||
<property name="verticalSpacing">
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
<number>3</number>
|
</property>
|
||||||
</property>
|
<property name="verticalSpacing">
|
||||||
<item row="0" column="0">
|
<number>3</number>
|
||||||
<widget class="QLabel" name="label_32">
|
</property>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_32">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>MD5:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="md5Edit">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_33">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>SHA1:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLineEdit" name="sha1Edit">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_8">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Entropy:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLabel" name="lblEntropy">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_9">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<pointsize>17</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>MD5:</string>
|
<string>Analysis info</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item>
|
||||||
<widget class="QLineEdit" name="md5Edit">
|
<layout class="QFormLayout" name="formLayout_5">
|
||||||
<property name="text">
|
<property name="fieldGrowthPolicy">
|
||||||
<string/>
|
<enum>QFormLayout::ExpandingFieldsGrow</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frame">
|
<property name="verticalSpacing">
|
||||||
<bool>false</bool>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="readOnly">
|
<item row="0" column="0">
|
||||||
<bool>true</bool>
|
<widget class="QLabel" name="functionsLabel">
|
||||||
</property>
|
<property name="font">
|
||||||
</widget>
|
<font>
|
||||||
</item>
|
<weight>75</weight>
|
||||||
<item row="1" column="0">
|
<bold>true</bold>
|
||||||
<widget class="QLabel" name="label_33">
|
</font>
|
||||||
<property name="font">
|
</property>
|
||||||
<font>
|
<property name="text">
|
||||||
<weight>75</weight>
|
<string>Functions:</string>
|
||||||
<bold>true</bold>
|
</property>
|
||||||
</font>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="text">
|
<item row="0" column="1">
|
||||||
<string>SHA1:</string>
|
<widget class="QLineEdit" name="functionsLineEdit">
|
||||||
</property>
|
<property name="frame">
|
||||||
</widget>
|
<bool>false</bool>
|
||||||
</item>
|
</property>
|
||||||
<item row="1" column="1">
|
<property name="readOnly">
|
||||||
<widget class="QLineEdit" name="sha1Edit">
|
<bool>true</bool>
|
||||||
<property name="text">
|
</property>
|
||||||
<string/>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="frame">
|
<item row="1" column="0">
|
||||||
<bool>false</bool>
|
<widget class="QLabel" name="xRefsLabel">
|
||||||
</property>
|
<property name="font">
|
||||||
<property name="readOnly">
|
<font>
|
||||||
<bool>true</bool>
|
<weight>75</weight>
|
||||||
</property>
|
<bold>true</bold>
|
||||||
</widget>
|
</font>
|
||||||
</item>
|
</property>
|
||||||
<item row="2" column="0">
|
<property name="text">
|
||||||
<widget class="QLabel" name="label_8">
|
<string>X-Refs:</string>
|
||||||
<property name="sizePolicy">
|
</property>
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
</widget>
|
||||||
<horstretch>0</horstretch>
|
</item>
|
||||||
<verstretch>0</verstretch>
|
<item row="1" column="1">
|
||||||
</sizepolicy>
|
<widget class="QLineEdit" name="xRefsLineEdit">
|
||||||
</property>
|
<property name="frame">
|
||||||
<property name="font">
|
<bool>false</bool>
|
||||||
<font>
|
</property>
|
||||||
<weight>75</weight>
|
<property name="readOnly">
|
||||||
<bold>true</bold>
|
<bool>true</bool>
|
||||||
</font>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="text">
|
</item>
|
||||||
<string>Entropy:</string>
|
<item row="2" column="0">
|
||||||
</property>
|
<widget class="QLabel" name="callsLabel">
|
||||||
</widget>
|
<property name="font">
|
||||||
</item>
|
<font>
|
||||||
<item row="2" column="1">
|
<weight>75</weight>
|
||||||
<widget class="QLabel" name="lblEntropy">
|
<bold>true</bold>
|
||||||
<property name="sizePolicy">
|
</font>
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
</property>
|
||||||
<horstretch>0</horstretch>
|
<property name="text">
|
||||||
<verstretch>0</verstretch>
|
<string>Calls:</string>
|
||||||
</sizepolicy>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="text">
|
</item>
|
||||||
<string notr="true"/>
|
<item row="2" column="1">
|
||||||
</property>
|
<widget class="QLineEdit" name="callsLineEdit">
|
||||||
</widget>
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="stringsLabel">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Strings:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLineEdit" name="stringsLineEdit">
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="symbolsLabel">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Symbols:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QLineEdit" name="symbolsLineEdit">
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="importsLabel">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Imports:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QLineEdit" name="importsLineEdit">
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="coverageLabel">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Analysis coverage:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="1">
|
||||||
|
<widget class="QLineEdit" name="coverageLineEdit">
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0">
|
||||||
|
<widget class="QLabel" name="codeSizeLabel">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Code size:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="1">
|
||||||
|
<widget class="QLineEdit" name="codeSizeLineEdit">
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="0">
|
||||||
|
<widget class="QLabel" name="percentageLabel">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Coverage percent:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="1">
|
||||||
|
<widget class="QLineEdit" name="percentageLineEdit">
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user