hardsploit_gui 2.2 → 2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/hardsploit_gui +2 -2
- data/lib/{Firmware → Firmwares}/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
- data/lib/{Firmware/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd → Firmwares/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd} +0 -0
- data/lib/Firmwares/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
- data/lib/{Firmware/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd → Firmwares/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd} +0 -0
- data/lib/Firmwares/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
- data/lib/{Firmware → Firmwares}/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
- data/lib/Firmwares/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
- data/lib/{Firmware → Firmwares}/FPGA/VersionFPGA.rb +1 -1
- data/lib/{Firmware → Firmwares}/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
- data/lib/{Firmware → Firmwares}/UC/VersionUC.rb +1 -1
- data/lib/HardsploitAPI/Core/HardsploitAPI.rb +210 -0
- data/lib/HardsploitAPI/Core/HardsploitAPI_CONSTANT.rb +150 -0
- data/lib/HardsploitAPI/Core/HardsploitAPI_ERROR.rb +109 -0
- data/lib/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb +305 -0
- data/lib/HardsploitAPI/{HardsploitAPI_PROGRESS.rb → Core/HardsploitAPI_PROGRESS.rb} +0 -0
- data/lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb +166 -0
- data/lib/HardsploitAPI/Modules/I2C/HardsploitAPI_I2C.rb +356 -0
- data/lib/HardsploitAPI/{HardsploitAPI_NO_MUX_PARALLELE_MEMORY.rb → Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb} +26 -49
- data/lib/HardsploitAPI/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +306 -0
- data/lib/HardsploitAPI/Modules/SPI/HardsploitAPI_SPI.rb +340 -0
- data/lib/HardsploitAPI/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +83 -0
- data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD.rb +367 -0
- data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +89 -0
- data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +61 -0
- data/lib/HardsploitAPI/{SWD → Modules/SWD}/HardsploitAPI_SWD_STM32.rb +32 -15
- data/lib/HardsploitAPI/{HardsploitAPI_TEST_INTERACT.rb → Modules/TEST/HardsploitAPI_TEST_INTERACT.rb} +1 -1
- data/lib/HardsploitAPI/Modules/UART/HardsploitAPI_UART.rb +196 -0
- data/lib/Hardsploit_gui.rb +96 -0
- data/lib/class/Chip_editor.rb +186 -330
- data/lib/class/Chip_management.rb +496 -0
- data/lib/class/Command_editor.rb +130 -182
- data/lib/class/Command_table.rb +16 -22
- data/lib/class/Console.rb +0 -2
- data/lib/class/ErrorMsg.rb +312 -0
- data/lib/class/Export.rb +140 -0
- data/lib/class/Export_manager.rb +43 -43
- data/lib/class/Firmware.rb +52 -11
- data/lib/class/Generic_commands.rb +180 -190
- data/lib/class/Import.rb +193 -0
- data/lib/class/Progress_bar.rb +1 -0
- data/lib/class/Signal_mapper.rb +120 -0
- data/lib/class/Wire_helper.rb +132 -148
- data/lib/class/{I2C → i2c}/I2c_command.rb +16 -13
- data/lib/class/i2c/I2c_export.rb +95 -0
- data/lib/class/i2c/I2c_import.rb +117 -0
- data/lib/class/i2c/I2c_scanner.rb +114 -0
- data/lib/class/i2c/I2c_settings.rb +148 -0
- data/lib/class/parallel/Parallel_export.rb +118 -0
- data/lib/class/parallel/Parallel_import.rb +113 -0
- data/lib/class/parallel/Parallel_settings.rb +81 -0
- data/lib/class/spi/Spi_export.rb +108 -0
- data/lib/class/spi/Spi_import.rb +159 -0
- data/lib/class/spi/Spi_settings.rb +108 -0
- data/lib/class/spi/Spi_sniffer.rb +101 -0
- data/lib/class/swd/Swd.rb +125 -0
- data/lib/class/swd/Swd_scanner.rb +121 -0
- data/lib/class/swd/Swd_settings.rb +76 -0
- data/lib/class/uart/Uart_baudrate.rb +62 -0
- data/lib/class/uart/Uart_console.rb +115 -0
- data/lib/class/uart/Uart_settings.rb +102 -0
- data/lib/db/associations.rb +42 -29
- data/lib/db/database.rb +4 -0
- data/lib/db/development.sqlite3 +0 -0
- data/lib/db/migrate/004_create_manufacturers.rb +13 -0
- data/lib/db/migrate/005_create_packages.rb +13 -0
- data/lib/db/migrate/006_create_chip_types.rb +11 -0
- data/lib/db/migrate/007_create_buses.rb +11 -0
- data/lib/db/migrate/008_create_signals.rb +14 -0
- data/lib/db/migrate/009_create_chips.rb +25 -0
- data/lib/db/migrate/010_create_commands.rb +21 -0
- data/lib/db/migrate/011_create_bytes.rb +19 -0
- data/lib/db/migrate/012_create_i2c_settings.rb +21 -0
- data/lib/db/migrate/013_create_spi_settings.rb +26 -0
- data/lib/db/migrate/014_create_parallel_settings.rb +21 -0
- data/lib/db/migrate/015_create_pins.rb +19 -0
- data/lib/db/migrate/016_create_uses.rb +17 -0
- data/lib/db/migrate/017_create_swd_settings.rb +19 -0
- data/lib/db/migrate/018_create_uart_settings.rb +22 -0
- data/lib/db/schema.rb +157 -0
- data/lib/db/seeds.rb +161 -0
- data/lib/gui/gui_chip_editor.rb +23 -22
- data/lib/gui/gui_chip_management.rb +43 -38
- data/lib/gui/gui_command_editor.rb +2 -1
- data/lib/gui/gui_export.rb +132 -0
- data/lib/gui/gui_generic_commands.rb +69 -31
- data/lib/gui/gui_generic_export.rb +18 -2
- data/lib/gui/gui_generic_import.rb +18 -2
- data/lib/gui/gui_i2c_command.rb +2 -1
- data/lib/gui/gui_i2c_settings.rb +2 -2
- data/lib/gui/gui_import.rb +131 -0
- data/lib/gui/gui_parallel_settings.rb +2 -1
- data/lib/gui/gui_progress_bar.rb +2 -1
- data/lib/gui/gui_signal_mapper.rb +121 -0
- data/lib/gui/gui_signal_scanner.rb +146 -0
- data/lib/gui/gui_spi_settings.rb +6 -2
- data/lib/gui/gui_spi_sniffer.rb +112 -0
- data/lib/gui/gui_swd_settings.rb +166 -0
- data/lib/gui/gui_uart_baudrate.rb +114 -0
- data/lib/gui/gui_uart_console.rb +164 -0
- data/lib/gui/gui_uart_settings.rb +243 -0
- data/lib/gui_designer/gui_chip_editor.ui +9 -6
- data/lib/gui_designer/gui_chip_management.ui +79 -35
- data/lib/gui_designer/gui_command_editor.ui +3 -0
- data/lib/gui_designer/gui_export.ui +171 -0
- data/lib/gui_designer/gui_generic_commands.ui +274 -190
- data/lib/gui_designer/gui_generic_export.ui +24 -1
- data/lib/gui_designer/gui_generic_import.ui +25 -2
- data/lib/gui_designer/gui_i2c_command.ui +3 -0
- data/lib/gui_designer/gui_i2c_settings.ui +2 -2
- data/lib/gui_designer/gui_import.ui +168 -0
- data/lib/gui_designer/gui_parallel_settings.ui +4 -1
- data/lib/gui_designer/gui_progress_bar.ui +3 -0
- data/lib/gui_designer/gui_signal_mapper.ui +179 -0
- data/lib/gui_designer/gui_signal_scanner.ui +261 -0
- data/lib/gui_designer/gui_spi_settings.ui +15 -2
- data/lib/gui_designer/gui_spi_sniffer.ui +156 -0
- data/lib/gui_designer/gui_swd_settings.ui +189 -0
- data/lib/gui_designer/gui_uart_baudrate.ui +161 -0
- data/lib/gui_designer/gui_uart_console.ui +284 -0
- data/lib/gui_designer/gui_uart_settings.ui +280 -0
- data/lib/logs/error.log +63 -0
- data/lib/models/bus.rb +19 -0
- data/lib/models/byte.rb +29 -0
- data/lib/models/chip.rb +41 -0
- data/lib/models/chip_type.rb +14 -0
- data/lib/models/command.rb +20 -0
- data/lib/models/i2c_setting.rb +41 -0
- data/lib/models/manufacturer.rb +14 -0
- data/lib/models/package.rb +26 -0
- data/lib/models/parallel_setting.rb +37 -0
- data/lib/models/pin.rb +14 -0
- data/lib/models/signall.rb +20 -0
- data/lib/models/spi_setting.rb +67 -0
- data/lib/models/swd_setting.rb +25 -0
- data/lib/models/uart_setting.rb +52 -0
- data/lib/models/use.rb +6 -0
- data/lib/startHardsploit.rb +2 -2
- metadata +106 -41
- data/lib/Firmware/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
- data/lib/HardsploitAPI/HardsploitAPI.rb +0 -133
- data/lib/HardsploitAPI/HardsploitAPI_CONSTANT.rb +0 -145
- data/lib/HardsploitAPI/HardsploitAPI_ERROR.rb +0 -38
- data/lib/HardsploitAPI/HardsploitAPI_FIRMWARE.rb +0 -311
- data/lib/HardsploitAPI/HardsploitAPI_I2C.rb +0 -360
- data/lib/HardsploitAPI/HardsploitAPI_SPI.rb +0 -369
- data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +0 -148
- data/lib/HardsploitAPI/LICENSE.txt +0 -674
- data/lib/HardsploitAPI/README.md +0 -22
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD.rb +0 -249
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_DEBUG.rb +0 -102
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_MEM_AP.rb +0 -78
- data/lib/HardsploitAPI/TRADEMARK +0 -3
- data/lib/class/HardsploitGUI.rb +0 -463
- data/lib/class/I2C/I2c_export.rb +0 -118
- data/lib/class/I2C/I2c_import.rb +0 -79
- data/lib/class/I2C/I2c_settings.rb +0 -129
- data/lib/class/PARALLEL/Parallel_export.rb +0 -146
- data/lib/class/PARALLEL/Parallel_import.rb +0 -88
- data/lib/class/PARALLEL/Parallel_settings.rb +0 -102
- data/lib/class/SPI/Spi_export.rb +0 -138
- data/lib/class/SPI/Spi_import.rb +0 -113
- data/lib/class/SPI/Spi_settings.rb +0 -134
- data/lib/db/hs.db +0 -0
- data/lib/hardsploit.rb +0 -131
@@ -0,0 +1,189 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>Swd_settings</class>
|
4
|
+
<widget class="QWidget" name="Swd_settings">
|
5
|
+
<property name="windowModality">
|
6
|
+
<enum>Qt::ApplicationModal</enum>
|
7
|
+
</property>
|
8
|
+
<property name="geometry">
|
9
|
+
<rect>
|
10
|
+
<x>0</x>
|
11
|
+
<y>0</y>
|
12
|
+
<width>400</width>
|
13
|
+
<height>179</height>
|
14
|
+
</rect>
|
15
|
+
</property>
|
16
|
+
<property name="windowTitle">
|
17
|
+
<string>Hardsploit - SWD settings</string>
|
18
|
+
</property>
|
19
|
+
<layout class="QGridLayout" name="gridLayout">
|
20
|
+
<item row="0" column="0">
|
21
|
+
<layout class="QVBoxLayout" name="verticalLayout">
|
22
|
+
<item>
|
23
|
+
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
24
|
+
<item>
|
25
|
+
<widget class="QLabel" name="lbl_chip">
|
26
|
+
<property name="text">
|
27
|
+
<string>[CHIP]</string>
|
28
|
+
</property>
|
29
|
+
</widget>
|
30
|
+
</item>
|
31
|
+
<item>
|
32
|
+
<widget class="QLabel" name="lbl_parameters">
|
33
|
+
<property name="text">
|
34
|
+
<string>PARAMETERS</string>
|
35
|
+
</property>
|
36
|
+
</widget>
|
37
|
+
</item>
|
38
|
+
<item>
|
39
|
+
<spacer name="horizontalSpacer_2">
|
40
|
+
<property name="orientation">
|
41
|
+
<enum>Qt::Horizontal</enum>
|
42
|
+
</property>
|
43
|
+
<property name="sizeHint" stdset="0">
|
44
|
+
<size>
|
45
|
+
<width>40</width>
|
46
|
+
<height>20</height>
|
47
|
+
</size>
|
48
|
+
</property>
|
49
|
+
</spacer>
|
50
|
+
</item>
|
51
|
+
</layout>
|
52
|
+
</item>
|
53
|
+
<item>
|
54
|
+
<layout class="QFormLayout" name="formLayout">
|
55
|
+
<item row="0" column="0">
|
56
|
+
<widget class="QLabel" name="label_2">
|
57
|
+
<property name="text">
|
58
|
+
<string>Memory start address:</string>
|
59
|
+
</property>
|
60
|
+
</widget>
|
61
|
+
</item>
|
62
|
+
<item row="0" column="1">
|
63
|
+
<widget class="QLineEdit" name="lie_start_address">
|
64
|
+
<property name="text">
|
65
|
+
<string/>
|
66
|
+
</property>
|
67
|
+
<property name="placeholderText">
|
68
|
+
<string>eg 1ffff7e0</string>
|
69
|
+
</property>
|
70
|
+
</widget>
|
71
|
+
</item>
|
72
|
+
<item row="1" column="0">
|
73
|
+
<widget class="QLabel" name="label_3">
|
74
|
+
<property name="text">
|
75
|
+
<string>Memory size address:</string>
|
76
|
+
</property>
|
77
|
+
</widget>
|
78
|
+
</item>
|
79
|
+
<item row="1" column="1">
|
80
|
+
<widget class="QLineEdit" name="lie_size_address">
|
81
|
+
<property name="placeholderText">
|
82
|
+
<string>eg 08000000</string>
|
83
|
+
</property>
|
84
|
+
</widget>
|
85
|
+
</item>
|
86
|
+
<item row="2" column="0">
|
87
|
+
<widget class="QLabel" name="label_4">
|
88
|
+
<property name="text">
|
89
|
+
<string>CPU ID address:</string>
|
90
|
+
</property>
|
91
|
+
</widget>
|
92
|
+
</item>
|
93
|
+
<item row="3" column="0">
|
94
|
+
<widget class="QLabel" name="label_5">
|
95
|
+
<property name="text">
|
96
|
+
<string>Device ID address:</string>
|
97
|
+
</property>
|
98
|
+
</widget>
|
99
|
+
</item>
|
100
|
+
<item row="2" column="1">
|
101
|
+
<widget class="QLineEdit" name="lie_cpu_id_address">
|
102
|
+
<property name="placeholderText">
|
103
|
+
<string>eg E000ED00</string>
|
104
|
+
</property>
|
105
|
+
</widget>
|
106
|
+
</item>
|
107
|
+
<item row="3" column="1">
|
108
|
+
<widget class="QLineEdit" name="lie_device_id_address">
|
109
|
+
<property name="placeholderText">
|
110
|
+
<string>eg 1FFFF7E8</string>
|
111
|
+
</property>
|
112
|
+
</widget>
|
113
|
+
</item>
|
114
|
+
</layout>
|
115
|
+
</item>
|
116
|
+
<item>
|
117
|
+
<layout class="QHBoxLayout" name="horizontalLayout">
|
118
|
+
<item>
|
119
|
+
<spacer name="horizontalSpacer">
|
120
|
+
<property name="orientation">
|
121
|
+
<enum>Qt::Horizontal</enum>
|
122
|
+
</property>
|
123
|
+
<property name="sizeHint" stdset="0">
|
124
|
+
<size>
|
125
|
+
<width>40</width>
|
126
|
+
<height>20</height>
|
127
|
+
</size>
|
128
|
+
</property>
|
129
|
+
</spacer>
|
130
|
+
</item>
|
131
|
+
<item>
|
132
|
+
<widget class="QPushButton" name="btn_cancel">
|
133
|
+
<property name="text">
|
134
|
+
<string>Cancel</string>
|
135
|
+
</property>
|
136
|
+
</widget>
|
137
|
+
</item>
|
138
|
+
<item>
|
139
|
+
<widget class="QPushButton" name="btn_save">
|
140
|
+
<property name="text">
|
141
|
+
<string>Save</string>
|
142
|
+
</property>
|
143
|
+
</widget>
|
144
|
+
</item>
|
145
|
+
</layout>
|
146
|
+
</item>
|
147
|
+
</layout>
|
148
|
+
</item>
|
149
|
+
</layout>
|
150
|
+
</widget>
|
151
|
+
<resources/>
|
152
|
+
<connections>
|
153
|
+
<connection>
|
154
|
+
<sender>btn_save</sender>
|
155
|
+
<signal>clicked()</signal>
|
156
|
+
<receiver>Swd_settings</receiver>
|
157
|
+
<slot>save_settings()</slot>
|
158
|
+
<hints>
|
159
|
+
<hint type="sourcelabel">
|
160
|
+
<x>378</x>
|
161
|
+
<y>155</y>
|
162
|
+
</hint>
|
163
|
+
<hint type="destinationlabel">
|
164
|
+
<x>399</x>
|
165
|
+
<y>155</y>
|
166
|
+
</hint>
|
167
|
+
</hints>
|
168
|
+
</connection>
|
169
|
+
<connection>
|
170
|
+
<sender>btn_cancel</sender>
|
171
|
+
<signal>clicked()</signal>
|
172
|
+
<receiver>Swd_settings</receiver>
|
173
|
+
<slot>close()</slot>
|
174
|
+
<hints>
|
175
|
+
<hint type="sourcelabel">
|
176
|
+
<x>248</x>
|
177
|
+
<y>155</y>
|
178
|
+
</hint>
|
179
|
+
<hint type="destinationlabel">
|
180
|
+
<x>228</x>
|
181
|
+
<y>174</y>
|
182
|
+
</hint>
|
183
|
+
</hints>
|
184
|
+
</connection>
|
185
|
+
</connections>
|
186
|
+
<slots>
|
187
|
+
<slot>save_settings()</slot>
|
188
|
+
</slots>
|
189
|
+
</ui>
|
@@ -0,0 +1,161 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>Uart_baudrate</class>
|
4
|
+
<widget class="QWidget" name="Uart_baudrate">
|
5
|
+
<property name="geometry">
|
6
|
+
<rect>
|
7
|
+
<x>0</x>
|
8
|
+
<y>0</y>
|
9
|
+
<width>259</width>
|
10
|
+
<height>114</height>
|
11
|
+
</rect>
|
12
|
+
</property>
|
13
|
+
<property name="windowTitle">
|
14
|
+
<string>Hardsploit - Baudrate autodetect</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_tip">
|
21
|
+
<property name="text">
|
22
|
+
<string>Push "Start", restart your target then click "Stop"</string>
|
23
|
+
</property>
|
24
|
+
</widget>
|
25
|
+
</item>
|
26
|
+
<item>
|
27
|
+
<layout class="QHBoxLayout" name="horizontalLayout">
|
28
|
+
<item>
|
29
|
+
<widget class="QPushButton" name="btn_start">
|
30
|
+
<property name="text">
|
31
|
+
<string>Start</string>
|
32
|
+
</property>
|
33
|
+
</widget>
|
34
|
+
</item>
|
35
|
+
<item>
|
36
|
+
<widget class="QPushButton" name="btn_stop">
|
37
|
+
<property name="enabled">
|
38
|
+
<bool>false</bool>
|
39
|
+
</property>
|
40
|
+
<property name="text">
|
41
|
+
<string>Stop</string>
|
42
|
+
</property>
|
43
|
+
</widget>
|
44
|
+
</item>
|
45
|
+
</layout>
|
46
|
+
</item>
|
47
|
+
<item>
|
48
|
+
<widget class="QLabel" name="lbl_baudrate">
|
49
|
+
<property name="text">
|
50
|
+
<string>Baud rate detected:</string>
|
51
|
+
</property>
|
52
|
+
</widget>
|
53
|
+
</item>
|
54
|
+
<item>
|
55
|
+
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
56
|
+
<item>
|
57
|
+
<spacer name="horizontalSpacer">
|
58
|
+
<property name="orientation">
|
59
|
+
<enum>Qt::Horizontal</enum>
|
60
|
+
</property>
|
61
|
+
<property name="sizeHint" stdset="0">
|
62
|
+
<size>
|
63
|
+
<width>40</width>
|
64
|
+
<height>20</height>
|
65
|
+
</size>
|
66
|
+
</property>
|
67
|
+
</spacer>
|
68
|
+
</item>
|
69
|
+
<item>
|
70
|
+
<widget class="QPushButton" name="pushButton">
|
71
|
+
<property name="text">
|
72
|
+
<string>Copy to settings</string>
|
73
|
+
</property>
|
74
|
+
</widget>
|
75
|
+
</item>
|
76
|
+
<item>
|
77
|
+
<widget class="QPushButton" name="btn_close">
|
78
|
+
<property name="text">
|
79
|
+
<string>Close</string>
|
80
|
+
</property>
|
81
|
+
</widget>
|
82
|
+
</item>
|
83
|
+
</layout>
|
84
|
+
</item>
|
85
|
+
</layout>
|
86
|
+
</item>
|
87
|
+
</layout>
|
88
|
+
</widget>
|
89
|
+
<resources/>
|
90
|
+
<connections>
|
91
|
+
<connection>
|
92
|
+
<sender>btn_start</sender>
|
93
|
+
<signal>clicked()</signal>
|
94
|
+
<receiver>Uart_baudrate</receiver>
|
95
|
+
<slot>start_detect()</slot>
|
96
|
+
<hints>
|
97
|
+
<hint type="sourcelabel">
|
98
|
+
<x>29</x>
|
99
|
+
<y>44</y>
|
100
|
+
</hint>
|
101
|
+
<hint type="destinationlabel">
|
102
|
+
<x>3</x>
|
103
|
+
<y>42</y>
|
104
|
+
</hint>
|
105
|
+
</hints>
|
106
|
+
</connection>
|
107
|
+
<connection>
|
108
|
+
<sender>btn_stop</sender>
|
109
|
+
<signal>clicked()</signal>
|
110
|
+
<receiver>Uart_baudrate</receiver>
|
111
|
+
<slot>stop_detect()</slot>
|
112
|
+
<hints>
|
113
|
+
<hint type="sourcelabel">
|
114
|
+
<x>246</x>
|
115
|
+
<y>41</y>
|
116
|
+
</hint>
|
117
|
+
<hint type="destinationlabel">
|
118
|
+
<x>258</x>
|
119
|
+
<y>45</y>
|
120
|
+
</hint>
|
121
|
+
</hints>
|
122
|
+
</connection>
|
123
|
+
<connection>
|
124
|
+
<sender>btn_close</sender>
|
125
|
+
<signal>clicked()</signal>
|
126
|
+
<receiver>Uart_baudrate</receiver>
|
127
|
+
<slot>close()</slot>
|
128
|
+
<hints>
|
129
|
+
<hint type="sourcelabel">
|
130
|
+
<x>245</x>
|
131
|
+
<y>91</y>
|
132
|
+
</hint>
|
133
|
+
<hint type="destinationlabel">
|
134
|
+
<x>258</x>
|
135
|
+
<y>94</y>
|
136
|
+
</hint>
|
137
|
+
</hints>
|
138
|
+
</connection>
|
139
|
+
<connection>
|
140
|
+
<sender>pushButton</sender>
|
141
|
+
<signal>clicked()</signal>
|
142
|
+
<receiver>Uart_baudrate</receiver>
|
143
|
+
<slot>copy()</slot>
|
144
|
+
<hints>
|
145
|
+
<hint type="sourcelabel">
|
146
|
+
<x>116</x>
|
147
|
+
<y>90</y>
|
148
|
+
</hint>
|
149
|
+
<hint type="destinationlabel">
|
150
|
+
<x>8</x>
|
151
|
+
<y>91</y>
|
152
|
+
</hint>
|
153
|
+
</hints>
|
154
|
+
</connection>
|
155
|
+
</connections>
|
156
|
+
<slots>
|
157
|
+
<slot>start_detect()</slot>
|
158
|
+
<slot>stop_detect()</slot>
|
159
|
+
<slot>copy()</slot>
|
160
|
+
</slots>
|
161
|
+
</ui>
|
@@ -0,0 +1,284 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>Uart_console</class>
|
4
|
+
<widget class="QWidget" name="Uart_console">
|
5
|
+
<property name="windowModality">
|
6
|
+
<enum>Qt::WindowModal</enum>
|
7
|
+
</property>
|
8
|
+
<property name="geometry">
|
9
|
+
<rect>
|
10
|
+
<x>0</x>
|
11
|
+
<y>0</y>
|
12
|
+
<width>710</width>
|
13
|
+
<height>587</height>
|
14
|
+
</rect>
|
15
|
+
</property>
|
16
|
+
<property name="windowTitle">
|
17
|
+
<string>Hardsploit - UART console</string>
|
18
|
+
</property>
|
19
|
+
<layout class="QGridLayout" name="gridLayout">
|
20
|
+
<item row="0" column="0">
|
21
|
+
<layout class="QVBoxLayout" name="verticalLayout">
|
22
|
+
<item>
|
23
|
+
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
24
|
+
<item>
|
25
|
+
<widget class="QLabel" name="lbl_chip">
|
26
|
+
<property name="text">
|
27
|
+
<string>[CHIP]</string>
|
28
|
+
</property>
|
29
|
+
</widget>
|
30
|
+
</item>
|
31
|
+
<item>
|
32
|
+
<widget class="QLabel" name="label">
|
33
|
+
<property name="text">
|
34
|
+
<string>UART console</string>
|
35
|
+
</property>
|
36
|
+
</widget>
|
37
|
+
</item>
|
38
|
+
<item>
|
39
|
+
<widget class="QPushButton" name="btn_connect">
|
40
|
+
<property name="text">
|
41
|
+
<string>Connect</string>
|
42
|
+
</property>
|
43
|
+
</widget>
|
44
|
+
</item>
|
45
|
+
<item>
|
46
|
+
<widget class="QPushButton" name="btn_disconnect">
|
47
|
+
<property name="enabled">
|
48
|
+
<bool>false</bool>
|
49
|
+
</property>
|
50
|
+
<property name="text">
|
51
|
+
<string>Disconnect</string>
|
52
|
+
</property>
|
53
|
+
</widget>
|
54
|
+
</item>
|
55
|
+
<item>
|
56
|
+
<widget class="QPushButton" name="pushButton">
|
57
|
+
<property name="text">
|
58
|
+
<string>Settings</string>
|
59
|
+
</property>
|
60
|
+
</widget>
|
61
|
+
</item>
|
62
|
+
<item>
|
63
|
+
<spacer name="horizontalSpacer">
|
64
|
+
<property name="orientation">
|
65
|
+
<enum>Qt::Horizontal</enum>
|
66
|
+
</property>
|
67
|
+
<property name="sizeHint" stdset="0">
|
68
|
+
<size>
|
69
|
+
<width>40</width>
|
70
|
+
<height>20</height>
|
71
|
+
</size>
|
72
|
+
</property>
|
73
|
+
</spacer>
|
74
|
+
</item>
|
75
|
+
<item>
|
76
|
+
<widget class="QPushButton" name="btn_clear">
|
77
|
+
<property name="text">
|
78
|
+
<string>Clear</string>
|
79
|
+
</property>
|
80
|
+
</widget>
|
81
|
+
</item>
|
82
|
+
</layout>
|
83
|
+
</item>
|
84
|
+
<item>
|
85
|
+
<widget class="QTextEdit" name="console">
|
86
|
+
<property name="palette">
|
87
|
+
<palette>
|
88
|
+
<active>
|
89
|
+
<colorrole role="Text">
|
90
|
+
<brush brushstyle="SolidPattern">
|
91
|
+
<color alpha="255">
|
92
|
+
<red>170</red>
|
93
|
+
<green>255</green>
|
94
|
+
<blue>0</blue>
|
95
|
+
</color>
|
96
|
+
</brush>
|
97
|
+
</colorrole>
|
98
|
+
<colorrole role="Base">
|
99
|
+
<brush brushstyle="SolidPattern">
|
100
|
+
<color alpha="255">
|
101
|
+
<red>0</red>
|
102
|
+
<green>0</green>
|
103
|
+
<blue>0</blue>
|
104
|
+
</color>
|
105
|
+
</brush>
|
106
|
+
</colorrole>
|
107
|
+
</active>
|
108
|
+
<inactive>
|
109
|
+
<colorrole role="Text">
|
110
|
+
<brush brushstyle="SolidPattern">
|
111
|
+
<color alpha="255">
|
112
|
+
<red>170</red>
|
113
|
+
<green>255</green>
|
114
|
+
<blue>0</blue>
|
115
|
+
</color>
|
116
|
+
</brush>
|
117
|
+
</colorrole>
|
118
|
+
<colorrole role="Base">
|
119
|
+
<brush brushstyle="SolidPattern">
|
120
|
+
<color alpha="255">
|
121
|
+
<red>0</red>
|
122
|
+
<green>0</green>
|
123
|
+
<blue>0</blue>
|
124
|
+
</color>
|
125
|
+
</brush>
|
126
|
+
</colorrole>
|
127
|
+
</inactive>
|
128
|
+
<disabled>
|
129
|
+
<colorrole role="Text">
|
130
|
+
<brush brushstyle="SolidPattern">
|
131
|
+
<color alpha="255">
|
132
|
+
<red>120</red>
|
133
|
+
<green>120</green>
|
134
|
+
<blue>120</blue>
|
135
|
+
</color>
|
136
|
+
</brush>
|
137
|
+
</colorrole>
|
138
|
+
<colorrole role="Base">
|
139
|
+
<brush brushstyle="SolidPattern">
|
140
|
+
<color alpha="255">
|
141
|
+
<red>240</red>
|
142
|
+
<green>240</green>
|
143
|
+
<blue>240</blue>
|
144
|
+
</color>
|
145
|
+
</brush>
|
146
|
+
</colorrole>
|
147
|
+
</disabled>
|
148
|
+
</palette>
|
149
|
+
</property>
|
150
|
+
<property name="font">
|
151
|
+
<font>
|
152
|
+
<family>Small Fonts</family>
|
153
|
+
<weight>50</weight>
|
154
|
+
<bold>false</bold>
|
155
|
+
</font>
|
156
|
+
</property>
|
157
|
+
<property name="frameShape">
|
158
|
+
<enum>QFrame::StyledPanel</enum>
|
159
|
+
</property>
|
160
|
+
<property name="frameShadow">
|
161
|
+
<enum>QFrame::Sunken</enum>
|
162
|
+
</property>
|
163
|
+
<property name="readOnly">
|
164
|
+
<bool>true</bool>
|
165
|
+
</property>
|
166
|
+
</widget>
|
167
|
+
</item>
|
168
|
+
<item>
|
169
|
+
<layout class="QHBoxLayout" name="horizontalLayout">
|
170
|
+
<item>
|
171
|
+
<widget class="QLineEdit" name="lie_cmd"/>
|
172
|
+
</item>
|
173
|
+
<item>
|
174
|
+
<widget class="QPushButton" name="btn_send">
|
175
|
+
<property name="text">
|
176
|
+
<string>Send</string>
|
177
|
+
</property>
|
178
|
+
</widget>
|
179
|
+
</item>
|
180
|
+
</layout>
|
181
|
+
</item>
|
182
|
+
</layout>
|
183
|
+
</item>
|
184
|
+
</layout>
|
185
|
+
<action name="actionSend">
|
186
|
+
<property name="text">
|
187
|
+
<string>Send</string>
|
188
|
+
</property>
|
189
|
+
<property name="shortcut">
|
190
|
+
<string>Return</string>
|
191
|
+
</property>
|
192
|
+
</action>
|
193
|
+
</widget>
|
194
|
+
<resources/>
|
195
|
+
<connections>
|
196
|
+
<connection>
|
197
|
+
<sender>btn_send</sender>
|
198
|
+
<signal>clicked()</signal>
|
199
|
+
<receiver>Uart_console</receiver>
|
200
|
+
<slot>send()</slot>
|
201
|
+
<hints>
|
202
|
+
<hint type="sourcelabel">
|
203
|
+
<x>669</x>
|
204
|
+
<y>566</y>
|
205
|
+
</hint>
|
206
|
+
<hint type="destinationlabel">
|
207
|
+
<x>702</x>
|
208
|
+
<y>569</y>
|
209
|
+
</hint>
|
210
|
+
</hints>
|
211
|
+
</connection>
|
212
|
+
<connection>
|
213
|
+
<sender>btn_connect</sender>
|
214
|
+
<signal>clicked()</signal>
|
215
|
+
<receiver>Uart_console</receiver>
|
216
|
+
<slot>connect()</slot>
|
217
|
+
<hints>
|
218
|
+
<hint type="sourcelabel">
|
219
|
+
<x>182</x>
|
220
|
+
<y>19</y>
|
221
|
+
</hint>
|
222
|
+
<hint type="destinationlabel">
|
223
|
+
<x>198</x>
|
224
|
+
<y>2</y>
|
225
|
+
</hint>
|
226
|
+
</hints>
|
227
|
+
</connection>
|
228
|
+
<connection>
|
229
|
+
<sender>btn_disconnect</sender>
|
230
|
+
<signal>clicked()</signal>
|
231
|
+
<receiver>Uart_console</receiver>
|
232
|
+
<slot>disconnect()</slot>
|
233
|
+
<hints>
|
234
|
+
<hint type="sourcelabel">
|
235
|
+
<x>263</x>
|
236
|
+
<y>17</y>
|
237
|
+
</hint>
|
238
|
+
<hint type="destinationlabel">
|
239
|
+
<x>290</x>
|
240
|
+
<y>2</y>
|
241
|
+
</hint>
|
242
|
+
</hints>
|
243
|
+
</connection>
|
244
|
+
<connection>
|
245
|
+
<sender>btn_clear</sender>
|
246
|
+
<signal>clicked()</signal>
|
247
|
+
<receiver>Uart_console</receiver>
|
248
|
+
<slot>clear_console()</slot>
|
249
|
+
<hints>
|
250
|
+
<hint type="sourcelabel">
|
251
|
+
<x>637</x>
|
252
|
+
<y>26</y>
|
253
|
+
</hint>
|
254
|
+
<hint type="destinationlabel">
|
255
|
+
<x>640</x>
|
256
|
+
<y>3</y>
|
257
|
+
</hint>
|
258
|
+
</hints>
|
259
|
+
</connection>
|
260
|
+
<connection>
|
261
|
+
<sender>pushButton</sender>
|
262
|
+
<signal>clicked()</signal>
|
263
|
+
<receiver>Uart_console</receiver>
|
264
|
+
<slot>open_settings()</slot>
|
265
|
+
<hints>
|
266
|
+
<hint type="sourcelabel">
|
267
|
+
<x>339</x>
|
268
|
+
<y>24</y>
|
269
|
+
</hint>
|
270
|
+
<hint type="destinationlabel">
|
271
|
+
<x>371</x>
|
272
|
+
<y>4</y>
|
273
|
+
</hint>
|
274
|
+
</hints>
|
275
|
+
</connection>
|
276
|
+
</connections>
|
277
|
+
<slots>
|
278
|
+
<slot>send()</slot>
|
279
|
+
<slot>connect()</slot>
|
280
|
+
<slot>disconnect()</slot>
|
281
|
+
<slot>clear_console()</slot>
|
282
|
+
<slot>open_settings()</slot>
|
283
|
+
</slots>
|
284
|
+
</ui>
|