hardsploit_gui 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Hardsploit_gui.rb +4 -5
- data/lib/class/Chip_clone.rb +70 -0
- data/lib/class/Chip_editor.rb +1 -0
- data/lib/class/Chip_management.rb +73 -52
- data/lib/class/ErrorMsg.rb +1 -0
- data/lib/class/Firmware.rb +1 -1
- data/lib/class/Progress_bar.rb +1 -1
- data/lib/class/Wire_helper.rb +6 -3
- data/lib/class/{I2C → i2c}/I2c_command.rb +0 -0
- data/lib/class/{I2C/I2c_export.rb → i2c/I2c_read.rb} +15 -15
- data/lib/class/{I2C → i2c}/I2c_scanner.rb +2 -1
- data/lib/class/{I2C → i2c}/I2c_settings.rb +1 -0
- data/lib/class/{I2C/I2c_import.rb → i2c/I2c_write.rb} +13 -12
- data/lib/class/{PARALLEL/Parallel_export.rb → parallel/Parallel_read.rb} +17 -18
- data/lib/class/{PARALLEL → parallel}/Parallel_settings.rb +0 -0
- data/lib/class/{PARALLEL/Parallel_import.rb → parallel/Parallel_write.rb} +11 -10
- data/lib/class/{SPI/Spi_export.rb → spi/Spi_read.rb} +15 -15
- data/lib/class/{SPI → spi}/Spi_settings.rb +0 -0
- data/lib/class/{SPI → spi}/Spi_sniffer.rb +2 -1
- data/lib/class/{SPI/Spi_import.rb → spi/Spi_write.rb} +13 -12
- data/lib/class/swd/Swd.rb +10 -10
- data/lib/class/swd/Swd_scanner.rb +2 -1
- data/lib/class/uart/Uart_baudrate.rb +1 -1
- data/lib/class/uart/Uart_console.rb +1 -1
- data/lib/class/uart/Uart_settings.rb +1 -0
- data/lib/db/development.sqlite3 +0 -0
- data/lib/gui/gui_chip_clone.rb +87 -0
- data/lib/gui/gui_chip_editor.rb +349 -349
- data/lib/gui/gui_chip_management.rb +378 -377
- data/lib/gui/gui_command_editor.rb +219 -219
- data/lib/gui/gui_export.rb +132 -132
- data/lib/gui/gui_export_manager.rb +93 -93
- data/lib/gui/gui_generic_commands.rb +202 -202
- data/lib/gui/gui_generic_read.rb +185 -0
- data/lib/gui/gui_generic_write.rb +142 -0
- data/lib/gui/gui_i2c_command.rb +116 -116
- data/lib/gui/gui_i2c_settings.rb +242 -230
- data/lib/gui/gui_import.rb +131 -131
- data/lib/gui/gui_parallel_settings.rb +195 -195
- data/lib/gui/gui_progress_bar.rb +85 -85
- data/lib/gui/gui_signal_mapper.rb +121 -121
- data/lib/gui/gui_signal_scanner.rb +146 -146
- data/lib/gui/gui_spi_settings.rb +313 -313
- data/lib/gui/gui_spi_sniffer.rb +112 -112
- data/lib/gui/gui_swd_settings.rb +166 -166
- data/lib/gui/gui_uart_baudrate.rb +114 -114
- data/lib/gui/gui_uart_console.rb +164 -164
- data/lib/gui/gui_uart_settings.rb +243 -243
- data/lib/gui/gui_wire_helper.rb +99 -99
- data/lib/gui_designer/compile_to_ruby.sh +14 -0
- data/lib/gui_designer/gui_chip_clone.ui +96 -0
- data/lib/gui_designer/gui_chip_management.ui +25 -22
- data/lib/gui_designer/{gui_generic_export.ui → gui_generic_read.ui} +152 -72
- data/lib/gui_designer/{gui_generic_import.ui → gui_generic_write.ui} +47 -47
- data/lib/gui_designer/gui_i2c_settings.ui +68 -60
- data/lib/hardsploit-api/Examples/swdProgrammer.rb +76 -0
- data/lib/hardsploit-api/Examples/testI2C.rb +183 -0
- data/lib/hardsploit-api/Examples/testNRF24L01.rb +122 -0
- data/lib/hardsploit-api/Examples/testParralel.rb +84 -0
- data/lib/hardsploit-api/Examples/testSPI.rb +113 -0
- data/lib/hardsploit-api/Examples/testSPISniffer.rb +91 -0
- data/lib/hardsploit-api/Examples/testSWD.rb +224 -0
- data/lib/hardsploit-api/Examples/testUARTBufferOverflow.rb +113 -0
- data/lib/hardsploit-api/Examples/testUARTConsole.rb +74 -0
- data/lib/hardsploit-api/Examples/testUARTFuzzer.rb +109 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/VersionFPGA.rb +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/UC/VersionUC.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_CONSTANT.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_ERROR.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_FIRMWARE.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_PROGRESS.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_USB_COMMUNICATION.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/I2C/HardsploitAPI_I2C.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SPI/HardsploitAPI_SPI.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_STM32.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/TEST/HardsploitAPI_TEST_INTERACT.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/UART/HardsploitAPI_UART.rb +0 -0
- data/lib/hardsploit-api/LICENSE.txt +674 -0
- data/lib/hardsploit-api/README.md +22 -0
- data/lib/hardsploit-api/TRADEMARK +3 -0
- data/lib/logs/error.log +80 -0
- metadata +65 -49
- data/lib/gui/gui_generic_export.rb +0 -164
- data/lib/gui/gui_generic_import.rb +0 -142
- data/lib/gui/gui_spi_import.rb +0 -126
data/lib/gui/gui_wire_helper.rb
CHANGED
@@ -1,99 +1,99 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_wire_helper.ui'
|
3
|
-
**
|
4
|
-
** Created:
|
5
|
-
** by: Qt User Interface Compiler version 4.8.
|
6
|
-
**
|
7
|
-
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
-
=end
|
9
|
-
|
10
|
-
class Ui_Wire_helper
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :vl
|
13
|
-
attr_reader :lbl_advice
|
14
|
-
attr_reader :lbl_chip
|
15
|
-
attr_reader :gView
|
16
|
-
attr_reader :hl
|
17
|
-
attr_reader :hs
|
18
|
-
attr_reader :btn_cancel
|
19
|
-
attr_reader :btn_rotate
|
20
|
-
|
21
|
-
def setupUi(wire_helper)
|
22
|
-
if wire_helper.objectName.nil?
|
23
|
-
wire_helper.objectName = "wire_helper"
|
24
|
-
end
|
25
|
-
wire_helper.resize(581, 560)
|
26
|
-
wire_helper.styleSheet = ""
|
27
|
-
@gridLayout = Qt::GridLayout.new(wire_helper)
|
28
|
-
@gridLayout.objectName = "gridLayout"
|
29
|
-
@vl = Qt::VBoxLayout.new()
|
30
|
-
@vl.objectName = "vl"
|
31
|
-
@lbl_advice = Qt::Label.new(wire_helper)
|
32
|
-
@lbl_advice.objectName = "lbl_advice"
|
33
|
-
|
34
|
-
@vl.addWidget(@lbl_advice)
|
35
|
-
|
36
|
-
@lbl_chip = Qt::Label.new(wire_helper)
|
37
|
-
@lbl_chip.objectName = "lbl_chip"
|
38
|
-
|
39
|
-
@vl.addWidget(@lbl_chip)
|
40
|
-
|
41
|
-
@gView = Qt::GraphicsView.new(wire_helper)
|
42
|
-
@gView.objectName = "gView"
|
43
|
-
@gView.styleSheet = "Qt::GraphicsTextItem{outline: 0;}"
|
44
|
-
|
45
|
-
@vl.addWidget(@gView)
|
46
|
-
|
47
|
-
@hl = Qt::HBoxLayout.new()
|
48
|
-
@hl.objectName = "hl"
|
49
|
-
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
50
|
-
|
51
|
-
@hl.addItem(@hs)
|
52
|
-
|
53
|
-
@btn_cancel = Qt::PushButton.new(wire_helper)
|
54
|
-
@btn_cancel.objectName = "btn_cancel"
|
55
|
-
|
56
|
-
@hl.addWidget(@btn_cancel)
|
57
|
-
|
58
|
-
@btn_rotate = Qt::PushButton.new(wire_helper)
|
59
|
-
@btn_rotate.objectName = "btn_rotate"
|
60
|
-
|
61
|
-
@hl.addWidget(@btn_rotate)
|
62
|
-
|
63
|
-
|
64
|
-
@vl.addLayout(@hl)
|
65
|
-
|
66
|
-
|
67
|
-
@gridLayout.addLayout(@vl, 1, 0, 1, 1)
|
68
|
-
|
69
|
-
|
70
|
-
retranslateUi(wire_helper)
|
71
|
-
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), wire_helper, SLOT('close()'))
|
72
|
-
Qt::Object.connect(@btn_rotate, SIGNAL('clicked()'), wire_helper, SLOT('rotate_scene()'))
|
73
|
-
|
74
|
-
Qt::MetaObject.connectSlotsByName(wire_helper)
|
75
|
-
end # setupUi
|
76
|
-
|
77
|
-
def setup_ui(wire_helper)
|
78
|
-
setupUi(wire_helper)
|
79
|
-
end
|
80
|
-
|
81
|
-
def retranslateUi(wire_helper)
|
82
|
-
wire_helper.windowTitle = Qt::Application.translate("Wire_helper", "Harsploit - Wiring helper", nil, Qt::Application::UnicodeUTF8)
|
83
|
-
@lbl_advice.text = Qt::Application.translate("Wire_helper", "Click on a pin number or signal name to turn ON the corresponding LED", nil, Qt::Application::UnicodeUTF8)
|
84
|
-
@lbl_chip.text = Qt::Application.translate("Wire_helper", "Your chip:", nil, Qt::Application::UnicodeUTF8)
|
85
|
-
@btn_cancel.text = Qt::Application.translate("Wire_helper", "Close", nil, Qt::Application::UnicodeUTF8)
|
86
|
-
@btn_rotate.text = Qt::Application.translate("Wire_helper", "Rotate", nil, Qt::Application::UnicodeUTF8)
|
87
|
-
end # retranslateUi
|
88
|
-
|
89
|
-
def retranslate_ui(wire_helper)
|
90
|
-
retranslateUi(wire_helper)
|
91
|
-
end
|
92
|
-
|
93
|
-
end
|
94
|
-
|
95
|
-
module Ui
|
96
|
-
class Wire_helper < Ui_Wire_helper
|
97
|
-
end
|
98
|
-
end # module Ui
|
99
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_wire_helper.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:10 2017
|
5
|
+
** by: Qt User Interface Compiler version 4.8.7
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Wire_helper
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :vl
|
13
|
+
attr_reader :lbl_advice
|
14
|
+
attr_reader :lbl_chip
|
15
|
+
attr_reader :gView
|
16
|
+
attr_reader :hl
|
17
|
+
attr_reader :hs
|
18
|
+
attr_reader :btn_cancel
|
19
|
+
attr_reader :btn_rotate
|
20
|
+
|
21
|
+
def setupUi(wire_helper)
|
22
|
+
if wire_helper.objectName.nil?
|
23
|
+
wire_helper.objectName = "wire_helper"
|
24
|
+
end
|
25
|
+
wire_helper.resize(581, 560)
|
26
|
+
wire_helper.styleSheet = ""
|
27
|
+
@gridLayout = Qt::GridLayout.new(wire_helper)
|
28
|
+
@gridLayout.objectName = "gridLayout"
|
29
|
+
@vl = Qt::VBoxLayout.new()
|
30
|
+
@vl.objectName = "vl"
|
31
|
+
@lbl_advice = Qt::Label.new(wire_helper)
|
32
|
+
@lbl_advice.objectName = "lbl_advice"
|
33
|
+
|
34
|
+
@vl.addWidget(@lbl_advice)
|
35
|
+
|
36
|
+
@lbl_chip = Qt::Label.new(wire_helper)
|
37
|
+
@lbl_chip.objectName = "lbl_chip"
|
38
|
+
|
39
|
+
@vl.addWidget(@lbl_chip)
|
40
|
+
|
41
|
+
@gView = Qt::GraphicsView.new(wire_helper)
|
42
|
+
@gView.objectName = "gView"
|
43
|
+
@gView.styleSheet = "Qt::GraphicsTextItem{outline: 0;}"
|
44
|
+
|
45
|
+
@vl.addWidget(@gView)
|
46
|
+
|
47
|
+
@hl = Qt::HBoxLayout.new()
|
48
|
+
@hl.objectName = "hl"
|
49
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
50
|
+
|
51
|
+
@hl.addItem(@hs)
|
52
|
+
|
53
|
+
@btn_cancel = Qt::PushButton.new(wire_helper)
|
54
|
+
@btn_cancel.objectName = "btn_cancel"
|
55
|
+
|
56
|
+
@hl.addWidget(@btn_cancel)
|
57
|
+
|
58
|
+
@btn_rotate = Qt::PushButton.new(wire_helper)
|
59
|
+
@btn_rotate.objectName = "btn_rotate"
|
60
|
+
|
61
|
+
@hl.addWidget(@btn_rotate)
|
62
|
+
|
63
|
+
|
64
|
+
@vl.addLayout(@hl)
|
65
|
+
|
66
|
+
|
67
|
+
@gridLayout.addLayout(@vl, 1, 0, 1, 1)
|
68
|
+
|
69
|
+
|
70
|
+
retranslateUi(wire_helper)
|
71
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), wire_helper, SLOT('close()'))
|
72
|
+
Qt::Object.connect(@btn_rotate, SIGNAL('clicked()'), wire_helper, SLOT('rotate_scene()'))
|
73
|
+
|
74
|
+
Qt::MetaObject.connectSlotsByName(wire_helper)
|
75
|
+
end # setupUi
|
76
|
+
|
77
|
+
def setup_ui(wire_helper)
|
78
|
+
setupUi(wire_helper)
|
79
|
+
end
|
80
|
+
|
81
|
+
def retranslateUi(wire_helper)
|
82
|
+
wire_helper.windowTitle = Qt::Application.translate("Wire_helper", "Harsploit - Wiring helper", nil, Qt::Application::UnicodeUTF8)
|
83
|
+
@lbl_advice.text = Qt::Application.translate("Wire_helper", "Click on a pin number or signal name to turn ON the corresponding LED", nil, Qt::Application::UnicodeUTF8)
|
84
|
+
@lbl_chip.text = Qt::Application.translate("Wire_helper", "Your chip:", nil, Qt::Application::UnicodeUTF8)
|
85
|
+
@btn_cancel.text = Qt::Application.translate("Wire_helper", "Close", nil, Qt::Application::UnicodeUTF8)
|
86
|
+
@btn_rotate.text = Qt::Application.translate("Wire_helper", "Rotate", nil, Qt::Application::UnicodeUTF8)
|
87
|
+
end # retranslateUi
|
88
|
+
|
89
|
+
def retranslate_ui(wire_helper)
|
90
|
+
retranslateUi(wire_helper)
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
94
|
+
|
95
|
+
module Ui
|
96
|
+
class Wire_helper < Ui_Wire_helper
|
97
|
+
end
|
98
|
+
end # module Ui
|
99
|
+
|
@@ -0,0 +1,96 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>Chip_clone</class>
|
4
|
+
<widget class="QWidget" name="Chip_clone">
|
5
|
+
<property name="geometry">
|
6
|
+
<rect>
|
7
|
+
<x>0</x>
|
8
|
+
<y>0</y>
|
9
|
+
<width>178</width>
|
10
|
+
<height>90</height>
|
11
|
+
</rect>
|
12
|
+
</property>
|
13
|
+
<property name="windowTitle">
|
14
|
+
<string>Chip clone</string>
|
15
|
+
</property>
|
16
|
+
<layout class="QGridLayout" name="gridLayout">
|
17
|
+
<item row="0" column="0">
|
18
|
+
<layout class="QVBoxLayout" name="verticalLayout">
|
19
|
+
<item>
|
20
|
+
<widget class="QLabel" name="lbl_clone">
|
21
|
+
<property name="text">
|
22
|
+
<string>Clone name</string>
|
23
|
+
</property>
|
24
|
+
</widget>
|
25
|
+
</item>
|
26
|
+
<item>
|
27
|
+
<widget class="QLineEdit" name="lie_reference">
|
28
|
+
<property name="maxLength">
|
29
|
+
<number>30</number>
|
30
|
+
</property>
|
31
|
+
</widget>
|
32
|
+
</item>
|
33
|
+
<item>
|
34
|
+
<layout class="QHBoxLayout" name="horizontalLayout">
|
35
|
+
<item>
|
36
|
+
<widget class="QPushButton" name="btn_cancel">
|
37
|
+
<property name="text">
|
38
|
+
<string>Cancel</string>
|
39
|
+
</property>
|
40
|
+
</widget>
|
41
|
+
</item>
|
42
|
+
<item>
|
43
|
+
<widget class="QPushButton" name="btn_clone">
|
44
|
+
<property name="text">
|
45
|
+
<string>Clone</string>
|
46
|
+
</property>
|
47
|
+
<property name="default">
|
48
|
+
<bool>true</bool>
|
49
|
+
</property>
|
50
|
+
</widget>
|
51
|
+
</item>
|
52
|
+
</layout>
|
53
|
+
</item>
|
54
|
+
</layout>
|
55
|
+
</item>
|
56
|
+
</layout>
|
57
|
+
</widget>
|
58
|
+
<resources/>
|
59
|
+
<connections>
|
60
|
+
<connection>
|
61
|
+
<sender>btn_cancel</sender>
|
62
|
+
<signal>clicked()</signal>
|
63
|
+
<receiver>Chip_clone</receiver>
|
64
|
+
<slot>close()</slot>
|
65
|
+
<hints>
|
66
|
+
<hint type="sourcelabel">
|
67
|
+
<x>22</x>
|
68
|
+
<y>68</y>
|
69
|
+
</hint>
|
70
|
+
<hint type="destinationlabel">
|
71
|
+
<x>67</x>
|
72
|
+
<y>84</y>
|
73
|
+
</hint>
|
74
|
+
</hints>
|
75
|
+
</connection>
|
76
|
+
<connection>
|
77
|
+
<sender>btn_clone</sender>
|
78
|
+
<signal>clicked()</signal>
|
79
|
+
<receiver>Chip_clone</receiver>
|
80
|
+
<slot>clone()</slot>
|
81
|
+
<hints>
|
82
|
+
<hint type="sourcelabel">
|
83
|
+
<x>152</x>
|
84
|
+
<y>69</y>
|
85
|
+
</hint>
|
86
|
+
<hint type="destinationlabel">
|
87
|
+
<x>159</x>
|
88
|
+
<y>85</y>
|
89
|
+
</hint>
|
90
|
+
</hints>
|
91
|
+
</connection>
|
92
|
+
</connections>
|
93
|
+
<slots>
|
94
|
+
<slot>clone()</slot>
|
95
|
+
</slots>
|
96
|
+
</ui>
|
@@ -66,7 +66,7 @@
|
|
66
66
|
<widget class="QComboBox" name="cbx_manufacturer">
|
67
67
|
<property name="minimumSize">
|
68
68
|
<size>
|
69
|
-
<width>
|
69
|
+
<width>87</width>
|
70
70
|
<height>0</height>
|
71
71
|
</size>
|
72
72
|
</property>
|
@@ -87,7 +87,7 @@
|
|
87
87
|
<widget class="QComboBox" name="cbx_type">
|
88
88
|
<property name="minimumSize">
|
89
89
|
<size>
|
90
|
-
<width>
|
90
|
+
<width>87</width>
|
91
91
|
<height>0</height>
|
92
92
|
</size>
|
93
93
|
</property>
|
@@ -210,9 +210,12 @@
|
|
210
210
|
<item row="4" column="0">
|
211
211
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
212
212
|
<item>
|
213
|
-
<widget class="
|
213
|
+
<widget class="QPushButton" name="btn_show_console">
|
214
214
|
<property name="text">
|
215
|
-
<string>Console
|
215
|
+
<string>Console</string>
|
216
|
+
</property>
|
217
|
+
<property name="checkable">
|
218
|
+
<bool>true</bool>
|
216
219
|
</property>
|
217
220
|
<property name="checked">
|
218
221
|
<bool>true</bool>
|
@@ -220,7 +223,7 @@
|
|
220
223
|
</widget>
|
221
224
|
</item>
|
222
225
|
<item>
|
223
|
-
<widget class="QPushButton" name="
|
226
|
+
<widget class="QPushButton" name="btn_clear_console">
|
224
227
|
<property name="text">
|
225
228
|
<string>Clear</string>
|
226
229
|
</property>
|
@@ -618,22 +621,6 @@
|
|
618
621
|
</hint>
|
619
622
|
</hints>
|
620
623
|
</connection>
|
621
|
-
<connection>
|
622
|
-
<sender>check_console</sender>
|
623
|
-
<signal>toggled(bool)</signal>
|
624
|
-
<receiver>Chip_management</receiver>
|
625
|
-
<slot>console_view()</slot>
|
626
|
-
<hints>
|
627
|
-
<hint type="sourcelabel">
|
628
|
-
<x>43</x>
|
629
|
-
<y>449</y>
|
630
|
-
</hint>
|
631
|
-
<hint type="destinationlabel">
|
632
|
-
<x>7</x>
|
633
|
-
<y>319</y>
|
634
|
-
</hint>
|
635
|
-
</hints>
|
636
|
-
</connection>
|
637
624
|
<connection>
|
638
625
|
<sender>btn_add</sender>
|
639
626
|
<signal>clicked()</signal>
|
@@ -747,7 +734,7 @@
|
|
747
734
|
</hints>
|
748
735
|
</connection>
|
749
736
|
<connection>
|
750
|
-
<sender>
|
737
|
+
<sender>btn_clear_console</sender>
|
751
738
|
<signal>clicked()</signal>
|
752
739
|
<receiver>tbl_console</receiver>
|
753
740
|
<slot>clearContents()</slot>
|
@@ -858,6 +845,22 @@
|
|
858
845
|
</hint>
|
859
846
|
</hints>
|
860
847
|
</connection>
|
848
|
+
<connection>
|
849
|
+
<sender>btn_show_console</sender>
|
850
|
+
<signal>toggled(bool)</signal>
|
851
|
+
<receiver>Chip_management</receiver>
|
852
|
+
<slot>console_view()</slot>
|
853
|
+
<hints>
|
854
|
+
<hint type="sourcelabel">
|
855
|
+
<x>27</x>
|
856
|
+
<y>439</y>
|
857
|
+
</hint>
|
858
|
+
<hint type="destinationlabel">
|
859
|
+
<x>6</x>
|
860
|
+
<y>428</y>
|
861
|
+
</hint>
|
862
|
+
</hints>
|
863
|
+
</connection>
|
861
864
|
</connections>
|
862
865
|
<slots>
|
863
866
|
<slot>load_tree(int,int)</slot>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<ui version="4.0">
|
3
|
-
<class>
|
4
|
-
<widget class="QWidget" name="
|
3
|
+
<class>Generic_read</class>
|
4
|
+
<widget class="QWidget" name="Generic_read">
|
5
5
|
<property name="windowModality">
|
6
6
|
<enum>Qt::ApplicationModal</enum>
|
7
7
|
</property>
|
@@ -9,12 +9,24 @@
|
|
9
9
|
<rect>
|
10
10
|
<x>0</x>
|
11
11
|
<y>0</y>
|
12
|
-
<width>
|
13
|
-
<height>
|
12
|
+
<width>280</width>
|
13
|
+
<height>221</height>
|
14
14
|
</rect>
|
15
15
|
</property>
|
16
|
+
<property name="minimumSize">
|
17
|
+
<size>
|
18
|
+
<width>5</width>
|
19
|
+
<height>0</height>
|
20
|
+
</size>
|
21
|
+
</property>
|
22
|
+
<property name="maximumSize">
|
23
|
+
<size>
|
24
|
+
<width>16777211</width>
|
25
|
+
<height>16777215</height>
|
26
|
+
</size>
|
27
|
+
</property>
|
16
28
|
<property name="windowTitle">
|
17
|
-
<string>Hardsploit -
|
29
|
+
<string>Hardsploit - Read</string>
|
18
30
|
</property>
|
19
31
|
<layout class="QGridLayout" name="gridLayout">
|
20
32
|
<item row="0" column="0">
|
@@ -22,16 +34,16 @@
|
|
22
34
|
<item>
|
23
35
|
<layout class="QHBoxLayout" name="hl2">
|
24
36
|
<item>
|
25
|
-
<widget class="QLabel" name="
|
37
|
+
<widget class="QLabel" name="lbl_read">
|
26
38
|
<property name="text">
|
27
|
-
<string>
|
39
|
+
<string>Read from</string>
|
28
40
|
</property>
|
29
41
|
</widget>
|
30
42
|
</item>
|
31
43
|
<item>
|
32
|
-
<widget class="QLabel" name="
|
44
|
+
<widget class="QLabel" name="lbl_chip">
|
33
45
|
<property name="text">
|
34
|
-
<string>
|
46
|
+
<string>[CHIP]</string>
|
35
47
|
</property>
|
36
48
|
</widget>
|
37
49
|
</item>
|
@@ -51,66 +63,96 @@
|
|
51
63
|
</layout>
|
52
64
|
</item>
|
53
65
|
<item>
|
54
|
-
<layout class="QFormLayout" name="
|
55
|
-
<item row="
|
56
|
-
<widget class="QLabel" name="
|
66
|
+
<layout class="QFormLayout" name="formLayout">
|
67
|
+
<item row="0" column="0">
|
68
|
+
<widget class="QLabel" name="lbl_file">
|
57
69
|
<property name="text">
|
58
|
-
<string>
|
70
|
+
<string>Result file:</string>
|
59
71
|
</property>
|
60
72
|
</widget>
|
61
73
|
</item>
|
62
|
-
<item row="
|
63
|
-
<widget class="
|
64
|
-
<property name="
|
65
|
-
<
|
74
|
+
<item row="0" column="1">
|
75
|
+
<widget class="QPushButton" name="btn_file">
|
76
|
+
<property name="text">
|
77
|
+
<string>File...</string>
|
66
78
|
</property>
|
67
79
|
</widget>
|
68
80
|
</item>
|
69
|
-
<item row="
|
70
|
-
<widget class="QLabel" name="
|
81
|
+
<item row="1" column="0">
|
82
|
+
<widget class="QLabel" name="lbl_selected">
|
71
83
|
<property name="text">
|
72
|
-
<string>
|
84
|
+
<string>Selected file:</string>
|
85
|
+
</property>
|
86
|
+
</widget>
|
87
|
+
</item>
|
88
|
+
<item row="1" column="1">
|
89
|
+
<widget class="QLabel" name="lbl_selected_file">
|
90
|
+
<property name="maximumSize">
|
91
|
+
<size>
|
92
|
+
<width>250</width>
|
93
|
+
<height>16777215</height>
|
94
|
+
</size>
|
95
|
+
</property>
|
96
|
+
<property name="text">
|
97
|
+
<string>None</string>
|
98
|
+
</property>
|
99
|
+
</widget>
|
100
|
+
</item>
|
101
|
+
<item row="2" column="0">
|
102
|
+
<widget class="QLabel" name="lbl_type">
|
103
|
+
<property name="text">
|
104
|
+
<string>Type:</string>
|
105
|
+
</property>
|
106
|
+
</widget>
|
107
|
+
</item>
|
108
|
+
<item row="2" column="1">
|
109
|
+
<widget class="QRadioButton" name="rbn_full">
|
110
|
+
<property name="text">
|
111
|
+
<string>Full read</string>
|
112
|
+
</property>
|
113
|
+
<property name="checked">
|
114
|
+
<bool>true</bool>
|
73
115
|
</property>
|
74
116
|
</widget>
|
75
117
|
</item>
|
76
118
|
<item row="3" column="1">
|
77
|
-
<widget class="
|
78
|
-
<property name="
|
79
|
-
<
|
119
|
+
<widget class="QRadioButton" name="rbn_range">
|
120
|
+
<property name="text">
|
121
|
+
<string>Range</string>
|
80
122
|
</property>
|
81
123
|
</widget>
|
82
124
|
</item>
|
83
125
|
<item row="4" column="0">
|
84
|
-
<widget class="QLabel" name="
|
126
|
+
<widget class="QLabel" name="lbl_start">
|
85
127
|
<property name="text">
|
86
|
-
<string>
|
128
|
+
<string>Start address:</string>
|
87
129
|
</property>
|
88
130
|
</widget>
|
89
131
|
</item>
|
90
132
|
<item row="4" column="1">
|
91
|
-
<widget class="
|
92
|
-
<property name="
|
93
|
-
<
|
133
|
+
<widget class="QLineEdit" name="lie_start">
|
134
|
+
<property name="enabled">
|
135
|
+
<bool>false</bool>
|
136
|
+
</property>
|
137
|
+
<property name="maxLength">
|
138
|
+
<number>20</number>
|
94
139
|
</property>
|
95
140
|
</widget>
|
96
141
|
</item>
|
97
142
|
<item row="5" column="0">
|
98
|
-
<widget class="QLabel" name="
|
143
|
+
<widget class="QLabel" name="lbl_stop">
|
99
144
|
<property name="text">
|
100
|
-
<string>
|
145
|
+
<string>Stop address:</string>
|
101
146
|
</property>
|
102
147
|
</widget>
|
103
148
|
</item>
|
104
149
|
<item row="5" column="1">
|
105
|
-
<widget class="
|
106
|
-
<property name="
|
107
|
-
<
|
108
|
-
<width>250</width>
|
109
|
-
<height>16777215</height>
|
110
|
-
</size>
|
150
|
+
<widget class="QLineEdit" name="lie_stop">
|
151
|
+
<property name="enabled">
|
152
|
+
<bool>false</bool>
|
111
153
|
</property>
|
112
|
-
<property name="
|
113
|
-
<
|
154
|
+
<property name="maxLength">
|
155
|
+
<number>20</number>
|
114
156
|
</property>
|
115
157
|
</widget>
|
116
158
|
</item>
|
@@ -119,22 +161,12 @@
|
|
119
161
|
<item>
|
120
162
|
<layout class="QHBoxLayout" name="hl">
|
121
163
|
<item>
|
122
|
-
<widget class="QPushButton" name="
|
123
|
-
<property name="enabled">
|
124
|
-
<bool>false</bool>
|
125
|
-
</property>
|
126
|
-
<property name="text">
|
127
|
-
<string>Export</string>
|
128
|
-
</property>
|
129
|
-
</widget>
|
130
|
-
</item>
|
131
|
-
<item>
|
132
|
-
<widget class="QPushButton" name="btn_full_export">
|
164
|
+
<widget class="QPushButton" name="btn_read">
|
133
165
|
<property name="enabled">
|
134
166
|
<bool>false</bool>
|
135
167
|
</property>
|
136
168
|
<property name="text">
|
137
|
-
<string>
|
169
|
+
<string>Read</string>
|
138
170
|
</property>
|
139
171
|
</widget>
|
140
172
|
</item>
|
@@ -147,14 +179,14 @@
|
|
147
179
|
<resources/>
|
148
180
|
<connections>
|
149
181
|
<connection>
|
150
|
-
<sender>
|
182
|
+
<sender>btn_read</sender>
|
151
183
|
<signal>clicked()</signal>
|
152
|
-
<receiver>
|
153
|
-
<slot>
|
184
|
+
<receiver>Generic_read</receiver>
|
185
|
+
<slot>read()</slot>
|
154
186
|
<hints>
|
155
187
|
<hint type="sourcelabel">
|
156
|
-
<x>
|
157
|
-
<y>
|
188
|
+
<x>111</x>
|
189
|
+
<y>209</y>
|
158
190
|
</hint>
|
159
191
|
<hint type="destinationlabel">
|
160
192
|
<x>122</x>
|
@@ -163,40 +195,88 @@
|
|
163
195
|
</hints>
|
164
196
|
</connection>
|
165
197
|
<connection>
|
166
|
-
<sender>
|
198
|
+
<sender>btn_file</sender>
|
167
199
|
<signal>clicked()</signal>
|
168
|
-
<receiver>
|
169
|
-
<slot>
|
200
|
+
<receiver>Generic_read</receiver>
|
201
|
+
<slot>select_read_file()</slot>
|
170
202
|
<hints>
|
171
203
|
<hint type="sourcelabel">
|
172
|
-
<x>
|
173
|
-
<y>
|
204
|
+
<x>203</x>
|
205
|
+
<y>61</y>
|
174
206
|
</hint>
|
175
207
|
<hint type="destinationlabel">
|
176
|
-
<x>
|
177
|
-
<y>
|
208
|
+
<x>85</x>
|
209
|
+
<y>0</y>
|
178
210
|
</hint>
|
179
211
|
</hints>
|
180
212
|
</connection>
|
181
213
|
<connection>
|
182
|
-
<sender>
|
183
|
-
<signal>
|
184
|
-
<receiver>
|
185
|
-
<slot>
|
214
|
+
<sender>rbn_range</sender>
|
215
|
+
<signal>toggled(bool)</signal>
|
216
|
+
<receiver>lie_start</receiver>
|
217
|
+
<slot>setEnabled(bool)</slot>
|
186
218
|
<hints>
|
187
219
|
<hint type="sourcelabel">
|
188
|
-
<x>
|
189
|
-
<y>
|
220
|
+
<x>133</x>
|
221
|
+
<y>119</y>
|
190
222
|
</hint>
|
191
223
|
<hint type="destinationlabel">
|
192
|
-
<x>
|
193
|
-
<y
|
224
|
+
<x>148</x>
|
225
|
+
<y>144</y>
|
226
|
+
</hint>
|
227
|
+
</hints>
|
228
|
+
</connection>
|
229
|
+
<connection>
|
230
|
+
<sender>rbn_range</sender>
|
231
|
+
<signal>toggled(bool)</signal>
|
232
|
+
<receiver>lie_stop</receiver>
|
233
|
+
<slot>setEnabled(bool)</slot>
|
234
|
+
<hints>
|
235
|
+
<hint type="sourcelabel">
|
236
|
+
<x>260</x>
|
237
|
+
<y>117</y>
|
238
|
+
</hint>
|
239
|
+
<hint type="destinationlabel">
|
240
|
+
<x>253</x>
|
241
|
+
<y>174</y>
|
242
|
+
</hint>
|
243
|
+
</hints>
|
244
|
+
</connection>
|
245
|
+
<connection>
|
246
|
+
<sender>rbn_full</sender>
|
247
|
+
<signal>toggled(bool)</signal>
|
248
|
+
<receiver>lie_start</receiver>
|
249
|
+
<slot>setDisabled(bool)</slot>
|
250
|
+
<hints>
|
251
|
+
<hint type="sourcelabel">
|
252
|
+
<x>104</x>
|
253
|
+
<y>95</y>
|
254
|
+
</hint>
|
255
|
+
<hint type="destinationlabel">
|
256
|
+
<x>108</x>
|
257
|
+
<y>146</y>
|
258
|
+
</hint>
|
259
|
+
</hints>
|
260
|
+
</connection>
|
261
|
+
<connection>
|
262
|
+
<sender>rbn_full</sender>
|
263
|
+
<signal>toggled(bool)</signal>
|
264
|
+
<receiver>lie_stop</receiver>
|
265
|
+
<slot>setDisabled(bool)</slot>
|
266
|
+
<hints>
|
267
|
+
<hint type="sourcelabel">
|
268
|
+
<x>181</x>
|
269
|
+
<y>96</y>
|
270
|
+
</hint>
|
271
|
+
<hint type="destinationlabel">
|
272
|
+
<x>182</x>
|
273
|
+
<y>167</y>
|
194
274
|
</hint>
|
195
275
|
</hints>
|
196
276
|
</connection>
|
197
277
|
</connections>
|
198
278
|
<slots>
|
199
|
-
<slot>
|
200
|
-
<slot>
|
279
|
+
<slot>read()</slot>
|
280
|
+
<slot>select_read_file()</slot>
|
201
281
|
</slots>
|
202
282
|
</ui>
|