Add relro in the dashboard #105

This commit is contained in:
sergiodmn 2017-06-02 18:35:26 +02:00 committed by radare
parent f35ce99495
commit 5931097b66
2 changed files with 35 additions and 6 deletions

View File

@ -72,6 +72,10 @@ void Dashboard::updateContents()
this->ui->compiledEdit->setText(item2["compiled"].toString()); this->ui->compiledEdit->setText(item2["compiled"].toString());
this->ui->bitsEdit->setText(QString::number(item2["bits"].toDouble())); this->ui->bitsEdit->setText(QString::number(item2["bits"].toDouble()));
QString relro=item2["relro"].toString().split(" ").at(0);
relro[0]=item2["relro"].toString().split(" ").at(0)[0].toUpper();
this->ui->relroEdit->setText(relro);
this->ui->baddrEdit->setText(QString::number(item2["baddr"].toDouble())); this->ui->baddrEdit->setText(QString::number(item2["baddr"].toDouble()));
if (item2["va"].toBool() == true) if (item2["va"].toBool() == true)

View File

@ -56,7 +56,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1055</width> <width>1055</width>
<height>977</height> <height>974</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_5"> <layout class="QHBoxLayout" name="horizontalLayout_5">
@ -417,6 +417,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<widget class="QLineEdit" name="baddrEdit">
<property name="text">
<string>--</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_21"> <widget class="QLabel" name="label_21">
<property name="font"> <property name="font">
@ -560,8 +573,21 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="8" column="0">
<widget class="QLineEdit" name="staticEdit"> <widget class="QLabel" name="label_34">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Relro:</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QLineEdit" name="relroEdit">
<property name="text"> <property name="text">
<string>--</string> <string>--</string>
</property> </property>
@ -573,8 +599,8 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="7" column="1">
<widget class="QLineEdit" name="baddrEdit"> <widget class="QLineEdit" name="staticEdit">
<property name="text"> <property name="text">
<string>--</string> <string>--</string>
</property> </property>
@ -1144,7 +1170,6 @@ QTabBar::tab:hover {
</spacer> </spacer>
</item> </item>
</layout> </layout>
<zorder>polarWebView</zorder>
</widget> </widget>
</widget> </widget>
</item> </item>