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,280 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>Uart_settings</class>
|
4
|
+
<widget class="QWidget" name="Uart_settings">
|
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>254</width>
|
13
|
+
<height>291</height>
|
14
|
+
</rect>
|
15
|
+
</property>
|
16
|
+
<property name="windowTitle">
|
17
|
+
<string>Hardsploit - UART settings</string>
|
18
|
+
</property>
|
19
|
+
<layout class="QGridLayout" name="gridLayout">
|
20
|
+
<item row="0" column="0">
|
21
|
+
<layout class="QVBoxLayout" name="verticalLayout_2">
|
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_uart">
|
33
|
+
<property name="text">
|
34
|
+
<string>UART settings</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="1" column="0">
|
56
|
+
<widget class="QLabel" name="label">
|
57
|
+
<property name="text">
|
58
|
+
<string>Baud rate (manual):</string>
|
59
|
+
</property>
|
60
|
+
</widget>
|
61
|
+
</item>
|
62
|
+
<item row="1" column="1">
|
63
|
+
<widget class="QLineEdit" name="lie_baud_rate">
|
64
|
+
<property name="placeholderText">
|
65
|
+
<string>decimal value</string>
|
66
|
+
</property>
|
67
|
+
</widget>
|
68
|
+
</item>
|
69
|
+
<item row="3" column="0">
|
70
|
+
<widget class="QLabel" name="label_2">
|
71
|
+
<property name="text">
|
72
|
+
<string>Word size:</string>
|
73
|
+
</property>
|
74
|
+
</widget>
|
75
|
+
</item>
|
76
|
+
<item row="3" column="1">
|
77
|
+
<widget class="QLineEdit" name="lie_word_size">
|
78
|
+
<property name="placeholderText">
|
79
|
+
<string>decimal value</string>
|
80
|
+
</property>
|
81
|
+
</widget>
|
82
|
+
</item>
|
83
|
+
<item row="4" column="0">
|
84
|
+
<widget class="QLabel" name="label_3">
|
85
|
+
<property name="text">
|
86
|
+
<string>Parity bit:</string>
|
87
|
+
</property>
|
88
|
+
</widget>
|
89
|
+
</item>
|
90
|
+
<item row="4" column="1">
|
91
|
+
<widget class="QLineEdit" name="lie_parity_bit">
|
92
|
+
<property name="placeholderText">
|
93
|
+
<string>decimal value</string>
|
94
|
+
</property>
|
95
|
+
</widget>
|
96
|
+
</item>
|
97
|
+
<item row="5" column="0">
|
98
|
+
<widget class="QLabel" name="label_4">
|
99
|
+
<property name="text">
|
100
|
+
<string>Parity type:</string>
|
101
|
+
</property>
|
102
|
+
</widget>
|
103
|
+
</item>
|
104
|
+
<item row="5" column="1">
|
105
|
+
<widget class="QLineEdit" name="lie_parity_type">
|
106
|
+
<property name="placeholderText">
|
107
|
+
<string>decimal value</string>
|
108
|
+
</property>
|
109
|
+
</widget>
|
110
|
+
</item>
|
111
|
+
<item row="6" column="0">
|
112
|
+
<widget class="QLabel" name="label_5">
|
113
|
+
<property name="text">
|
114
|
+
<string>Stop bits number:</string>
|
115
|
+
</property>
|
116
|
+
</widget>
|
117
|
+
</item>
|
118
|
+
<item row="6" column="1">
|
119
|
+
<widget class="QLineEdit" name="lie_stop_bits_nbr">
|
120
|
+
<property name="placeholderText">
|
121
|
+
<string>decimal value</string>
|
122
|
+
</property>
|
123
|
+
</widget>
|
124
|
+
</item>
|
125
|
+
<item row="7" column="0">
|
126
|
+
<widget class="QLabel" name="label_6">
|
127
|
+
<property name="text">
|
128
|
+
<string>Idle line level:</string>
|
129
|
+
</property>
|
130
|
+
</widget>
|
131
|
+
</item>
|
132
|
+
<item row="7" column="1">
|
133
|
+
<widget class="QLineEdit" name="lie_idle_line_lvl">
|
134
|
+
<property name="placeholderText">
|
135
|
+
<string>decimal value</string>
|
136
|
+
</property>
|
137
|
+
</widget>
|
138
|
+
</item>
|
139
|
+
<item row="8" column="0">
|
140
|
+
<widget class="QLabel" name="label_7">
|
141
|
+
<property name="text">
|
142
|
+
<string>CR / LF:</string>
|
143
|
+
</property>
|
144
|
+
</widget>
|
145
|
+
</item>
|
146
|
+
<item row="8" column="1">
|
147
|
+
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
148
|
+
<item>
|
149
|
+
<widget class="QRadioButton" name="rbn_cr">
|
150
|
+
<property name="text">
|
151
|
+
<string>CR</string>
|
152
|
+
</property>
|
153
|
+
<property name="checked">
|
154
|
+
<bool>true</bool>
|
155
|
+
</property>
|
156
|
+
</widget>
|
157
|
+
</item>
|
158
|
+
<item>
|
159
|
+
<widget class="QRadioButton" name="rbn_lf">
|
160
|
+
<property name="text">
|
161
|
+
<string>LF</string>
|
162
|
+
</property>
|
163
|
+
</widget>
|
164
|
+
</item>
|
165
|
+
<item>
|
166
|
+
<widget class="QRadioButton" name="rbn_both">
|
167
|
+
<property name="text">
|
168
|
+
<string>Both</string>
|
169
|
+
</property>
|
170
|
+
</widget>
|
171
|
+
</item>
|
172
|
+
</layout>
|
173
|
+
</item>
|
174
|
+
<item row="2" column="0">
|
175
|
+
<widget class="QLabel" name="label_8">
|
176
|
+
<property name="text">
|
177
|
+
<string>Baud rate (auto):</string>
|
178
|
+
</property>
|
179
|
+
</widget>
|
180
|
+
</item>
|
181
|
+
<item row="2" column="1">
|
182
|
+
<widget class="QPushButton" name="pushButton_3">
|
183
|
+
<property name="text">
|
184
|
+
<string>Autodetection</string>
|
185
|
+
</property>
|
186
|
+
</widget>
|
187
|
+
</item>
|
188
|
+
</layout>
|
189
|
+
</item>
|
190
|
+
<item>
|
191
|
+
<layout class="QHBoxLayout" name="horizontalLayout">
|
192
|
+
<item>
|
193
|
+
<spacer name="horizontalSpacer">
|
194
|
+
<property name="orientation">
|
195
|
+
<enum>Qt::Horizontal</enum>
|
196
|
+
</property>
|
197
|
+
<property name="sizeHint" stdset="0">
|
198
|
+
<size>
|
199
|
+
<width>40</width>
|
200
|
+
<height>20</height>
|
201
|
+
</size>
|
202
|
+
</property>
|
203
|
+
</spacer>
|
204
|
+
</item>
|
205
|
+
<item>
|
206
|
+
<widget class="QPushButton" name="pushButton_2">
|
207
|
+
<property name="text">
|
208
|
+
<string>Cancel</string>
|
209
|
+
</property>
|
210
|
+
</widget>
|
211
|
+
</item>
|
212
|
+
<item>
|
213
|
+
<widget class="QPushButton" name="pushButton">
|
214
|
+
<property name="text">
|
215
|
+
<string>Save</string>
|
216
|
+
</property>
|
217
|
+
</widget>
|
218
|
+
</item>
|
219
|
+
</layout>
|
220
|
+
</item>
|
221
|
+
</layout>
|
222
|
+
</item>
|
223
|
+
</layout>
|
224
|
+
</widget>
|
225
|
+
<resources/>
|
226
|
+
<connections>
|
227
|
+
<connection>
|
228
|
+
<sender>pushButton</sender>
|
229
|
+
<signal>clicked()</signal>
|
230
|
+
<receiver>Uart_settings</receiver>
|
231
|
+
<slot>save_settings()</slot>
|
232
|
+
<hints>
|
233
|
+
<hint type="sourcelabel">
|
234
|
+
<x>242</x>
|
235
|
+
<y>279</y>
|
236
|
+
</hint>
|
237
|
+
<hint type="destinationlabel">
|
238
|
+
<x>279</x>
|
239
|
+
<y>231</y>
|
240
|
+
</hint>
|
241
|
+
</hints>
|
242
|
+
</connection>
|
243
|
+
<connection>
|
244
|
+
<sender>pushButton_2</sender>
|
245
|
+
<signal>clicked()</signal>
|
246
|
+
<receiver>Uart_settings</receiver>
|
247
|
+
<slot>close()</slot>
|
248
|
+
<hints>
|
249
|
+
<hint type="sourcelabel">
|
250
|
+
<x>161</x>
|
251
|
+
<y>279</y>
|
252
|
+
</hint>
|
253
|
+
<hint type="destinationlabel">
|
254
|
+
<x>157</x>
|
255
|
+
<y>229</y>
|
256
|
+
</hint>
|
257
|
+
</hints>
|
258
|
+
</connection>
|
259
|
+
<connection>
|
260
|
+
<sender>pushButton_3</sender>
|
261
|
+
<signal>clicked()</signal>
|
262
|
+
<receiver>Uart_settings</receiver>
|
263
|
+
<slot>autodetect()</slot>
|
264
|
+
<hints>
|
265
|
+
<hint type="sourcelabel">
|
266
|
+
<x>236</x>
|
267
|
+
<y>78</y>
|
268
|
+
</hint>
|
269
|
+
<hint type="destinationlabel">
|
270
|
+
<x>249</x>
|
271
|
+
<y>78</y>
|
272
|
+
</hint>
|
273
|
+
</hints>
|
274
|
+
</connection>
|
275
|
+
</connections>
|
276
|
+
<slots>
|
277
|
+
<slot>save_settings()</slot>
|
278
|
+
<slot>autodetect()</slot>
|
279
|
+
</slots>
|
280
|
+
</ui>
|
data/lib/logs/error.log
CHANGED
@@ -0,0 +1,63 @@
|
|
1
|
+
E, [2016-08-09T19:55:29.296245 #18510] ERROR -- : No such file or directory @ rb_sysopen - /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/../Firmware/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd (Errno::ENOENT)
|
2
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb:101:in `read'
|
3
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb:101:in `writeFirmware'
|
4
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb:44:in `uploadFirmware'
|
5
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:34:in `initialize'
|
6
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `new'
|
7
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `initialize'
|
8
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `new'
|
9
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `autodetect'
|
10
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `qt_metacall'
|
11
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `method_missing'
|
12
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `exec'
|
13
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:37:in `block in initialize'
|
14
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `instance_eval'
|
15
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `run_initializer_block'
|
16
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
|
17
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
|
18
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `new'
|
19
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `initialize'
|
20
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `new'
|
21
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `<main>'
|
22
|
+
E, [2016-08-09T20:00:06.743294 #18586] ERROR -- : undefined method `lbl_close' for #<Progress_bar:0x007f94caf125c8> (NoMethodError)
|
23
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Progress_bar.rb:17:in `method_missing'
|
24
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Progress_bar.rb:17:in `initialize'
|
25
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:12:in `new'
|
26
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:12:in `initialize'
|
27
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `new'
|
28
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `initialize'
|
29
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `new'
|
30
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `autodetect'
|
31
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `qt_metacall'
|
32
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `method_missing'
|
33
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `exec'
|
34
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:37:in `block in initialize'
|
35
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `instance_eval'
|
36
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `run_initializer_block'
|
37
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
|
38
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
|
39
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `new'
|
40
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `initialize'
|
41
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `new'
|
42
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `<main>'
|
43
|
+
E, [2016-08-09T20:00:40.539121 #18598] ERROR -- : undefined method `lbl_close' for #<Progress_bar:0x007fcbac5b8978> (NoMethodError)
|
44
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Progress_bar.rb:17:in `method_missing'
|
45
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Progress_bar.rb:17:in `initialize'
|
46
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:12:in `new'
|
47
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:12:in `initialize'
|
48
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `new'
|
49
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `initialize'
|
50
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `new'
|
51
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `autodetect'
|
52
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `qt_metacall'
|
53
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `method_missing'
|
54
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `exec'
|
55
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:37:in `block in initialize'
|
56
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `instance_eval'
|
57
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `run_initializer_block'
|
58
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
|
59
|
+
/usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
|
60
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `new'
|
61
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `initialize'
|
62
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `new'
|
63
|
+
/Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `<main>'
|
data/lib/models/bus.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
class Bus < ActiveRecord::Base
|
2
|
+
self.table_name = "buses"
|
3
|
+
|
4
|
+
# Validations
|
5
|
+
validates :name,
|
6
|
+
length: {
|
7
|
+
in: 2..10,
|
8
|
+
wrong_length: "Bus name needs to be between 2 and 10 characters"
|
9
|
+
},
|
10
|
+
presence: true,
|
11
|
+
uniqueness: true
|
12
|
+
|
13
|
+
# Associations
|
14
|
+
has_many :uses
|
15
|
+
has_many :signalls,
|
16
|
+
through: :uses,
|
17
|
+
foreign_key: "bus_id"
|
18
|
+
has_many :commands
|
19
|
+
end
|
data/lib/models/byte.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
class Byte < ActiveRecord::Base
|
2
|
+
# Validations
|
3
|
+
validates :index,
|
4
|
+
numericality: {
|
5
|
+
only_integer: true,
|
6
|
+
greater_than_or_equal_to: 0
|
7
|
+
},
|
8
|
+
presence: true
|
9
|
+
validates :value,
|
10
|
+
format: {
|
11
|
+
with: /[A-Fa-f0-9]/,
|
12
|
+
message: "Only allow hexadecimal values"
|
13
|
+
},
|
14
|
+
presence: true
|
15
|
+
validates :description,
|
16
|
+
length: {
|
17
|
+
maximum: 140,
|
18
|
+
too_long: "%{count} characters maximum for the description"
|
19
|
+
}
|
20
|
+
validates :iteration,
|
21
|
+
numericality: {
|
22
|
+
only_integer: true,
|
23
|
+
greater_than_or_equal_to: 0,
|
24
|
+
allow_nil: true
|
25
|
+
}
|
26
|
+
|
27
|
+
# Associations
|
28
|
+
belongs_to :command
|
29
|
+
end
|
data/lib/models/chip.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
class Chip < ActiveRecord::Base
|
2
|
+
# Validations
|
3
|
+
validates :reference,
|
4
|
+
length: {
|
5
|
+
in: 2..25,
|
6
|
+
message: "must be between 2 and 25 characters (reference)"
|
7
|
+
},
|
8
|
+
presence: true,
|
9
|
+
uniqueness: true
|
10
|
+
validates :description,
|
11
|
+
length: {
|
12
|
+
maximum: 140,
|
13
|
+
too_long: "%{count} characters maximum for the description"
|
14
|
+
}
|
15
|
+
validates :voltage,
|
16
|
+
numericality: true
|
17
|
+
validates :manufacturer_id,
|
18
|
+
numericality: true
|
19
|
+
validates :package_id,
|
20
|
+
numericality: true
|
21
|
+
validates :chip_type_id,
|
22
|
+
numericality: true
|
23
|
+
# Associations
|
24
|
+
belongs_to :package
|
25
|
+
belongs_to :manufacturer
|
26
|
+
belongs_to :chip_type
|
27
|
+
has_many :commands,
|
28
|
+
dependent: :destroy
|
29
|
+
has_many :pins,
|
30
|
+
dependent: :destroy
|
31
|
+
has_one :parallel_setting,
|
32
|
+
dependent: :destroy
|
33
|
+
has_one :spi_setting,
|
34
|
+
dependent: :destroy
|
35
|
+
has_one :i2c_setting,
|
36
|
+
dependent: :destroy
|
37
|
+
has_one :swd_setting,
|
38
|
+
dependent: :destroy
|
39
|
+
has_one :uart_setting,
|
40
|
+
dependent: :destroy
|
41
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class ChipType < ActiveRecord::Base
|
2
|
+
# Validations
|
3
|
+
validates :name,
|
4
|
+
length: {
|
5
|
+
in: 2..20,
|
6
|
+
message: "must be between 2 and 20 characters (chip type)"
|
7
|
+
},
|
8
|
+
presence: true,
|
9
|
+
uniqueness: true
|
10
|
+
|
11
|
+
# Associations
|
12
|
+
has_many :chips,
|
13
|
+
dependent: :destroy
|
14
|
+
end
|