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_spi_sniffer.rb
CHANGED
@@ -1,112 +1,112 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_spi_sniffer.ui'
|
3
|
-
**
|
4
|
-
** Created: mer.
|
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_Spi_sniffer
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :verticalLayout
|
13
|
-
attr_reader :horizontalLayout
|
14
|
-
attr_reader :btn_start
|
15
|
-
attr_reader :cbx_type
|
16
|
-
attr_reader :btn_stop
|
17
|
-
attr_reader :btn_close
|
18
|
-
attr_reader :tbl_result
|
19
|
-
|
20
|
-
def setupUi(spi_sniffer)
|
21
|
-
if spi_sniffer.objectName.nil?
|
22
|
-
spi_sniffer.objectName = "spi_sniffer"
|
23
|
-
end
|
24
|
-
spi_sniffer.resize(400, 604)
|
25
|
-
@gridLayout = Qt::GridLayout.new(spi_sniffer)
|
26
|
-
@gridLayout.objectName = "gridLayout"
|
27
|
-
@verticalLayout = Qt::VBoxLayout.new()
|
28
|
-
@verticalLayout.objectName = "verticalLayout"
|
29
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
30
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
31
|
-
@btn_start = Qt::PushButton.new(spi_sniffer)
|
32
|
-
@btn_start.objectName = "btn_start"
|
33
|
-
|
34
|
-
@horizontalLayout.addWidget(@btn_start)
|
35
|
-
|
36
|
-
@cbx_type = Qt::ComboBox.new(spi_sniffer)
|
37
|
-
@cbx_type.objectName = "cbx_type"
|
38
|
-
|
39
|
-
@horizontalLayout.addWidget(@cbx_type)
|
40
|
-
|
41
|
-
@btn_stop = Qt::PushButton.new(spi_sniffer)
|
42
|
-
@btn_stop.objectName = "btn_stop"
|
43
|
-
@btn_stop.enabled = false
|
44
|
-
|
45
|
-
@horizontalLayout.addWidget(@btn_stop)
|
46
|
-
|
47
|
-
@btn_close = Qt::PushButton.new(spi_sniffer)
|
48
|
-
@btn_close.objectName = "btn_close"
|
49
|
-
|
50
|
-
@horizontalLayout.addWidget(@btn_close)
|
51
|
-
|
52
|
-
|
53
|
-
@verticalLayout.addLayout(@horizontalLayout)
|
54
|
-
|
55
|
-
@tbl_result = Qt::TableWidget.new(spi_sniffer)
|
56
|
-
@tbl_result.objectName = "tbl_result"
|
57
|
-
@tbl_result.sortingEnabled = true
|
58
|
-
|
59
|
-
@verticalLayout.addWidget(@tbl_result)
|
60
|
-
|
61
|
-
|
62
|
-
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
63
|
-
|
64
|
-
|
65
|
-
retranslateUi(spi_sniffer)
|
66
|
-
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), spi_sniffer, SLOT('close()'))
|
67
|
-
Qt::Object.connect(@btn_start, SIGNAL('clicked()'), spi_sniffer, SLOT('start()'))
|
68
|
-
Qt::Object.connect(@btn_stop, SIGNAL('clicked()'), spi_sniffer, SLOT('stop()'))
|
69
|
-
|
70
|
-
Qt::MetaObject.connectSlotsByName(spi_sniffer)
|
71
|
-
end # setupUi
|
72
|
-
|
73
|
-
def setup_ui(spi_sniffer)
|
74
|
-
setupUi(spi_sniffer)
|
75
|
-
end
|
76
|
-
|
77
|
-
def retranslateUi(spi_sniffer)
|
78
|
-
spi_sniffer.windowTitle = Qt::Application.translate("Spi_sniffer", "Hardsploit - SPI sniffer", nil, Qt::Application::UnicodeUTF8)
|
79
|
-
@btn_start.text = Qt::Application.translate("Spi_sniffer", "Start", nil, Qt::Application::UnicodeUTF8)
|
80
|
-
@cbx_type.insertItems(0, [Qt::Application.translate("Spi_sniffer", "Both", nil, Qt::Application::UnicodeUTF8),
|
81
|
-
Qt::Application.translate("Spi_sniffer", "MOSI", nil, Qt::Application::UnicodeUTF8),
|
82
|
-
Qt::Application.translate("Spi_sniffer", "MISO", nil, Qt::Application::UnicodeUTF8)])
|
83
|
-
@btn_stop.text = Qt::Application.translate("Spi_sniffer", "Stop", nil, Qt::Application::UnicodeUTF8)
|
84
|
-
@btn_close.text = Qt::Application.translate("Spi_sniffer", "Close", nil, Qt::Application::UnicodeUTF8)
|
85
|
-
if @tbl_result.columnCount < 3
|
86
|
-
@tbl_result.columnCount = 3
|
87
|
-
end
|
88
|
-
|
89
|
-
__colItem = Qt::TableWidgetItem.new
|
90
|
-
__colItem.setText(Qt::Application.translate("Spi_sniffer", "Number", nil, Qt::Application::UnicodeUTF8))
|
91
|
-
@tbl_result.setHorizontalHeaderItem(0, __colItem)
|
92
|
-
|
93
|
-
__colItem1 = Qt::TableWidgetItem.new
|
94
|
-
__colItem1.setText(Qt::Application.translate("Spi_sniffer", "MOSI", nil, Qt::Application::UnicodeUTF8))
|
95
|
-
@tbl_result.setHorizontalHeaderItem(1, __colItem1)
|
96
|
-
|
97
|
-
__colItem2 = Qt::TableWidgetItem.new
|
98
|
-
__colItem2.setText(Qt::Application.translate("Spi_sniffer", "MISO", nil, Qt::Application::UnicodeUTF8))
|
99
|
-
@tbl_result.setHorizontalHeaderItem(2, __colItem2)
|
100
|
-
end # retranslateUi
|
101
|
-
|
102
|
-
def retranslate_ui(spi_sniffer)
|
103
|
-
retranslateUi(spi_sniffer)
|
104
|
-
end
|
105
|
-
|
106
|
-
end
|
107
|
-
|
108
|
-
module Ui
|
109
|
-
class Spi_sniffer < Ui_Spi_sniffer
|
110
|
-
end
|
111
|
-
end # module Ui
|
112
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_spi_sniffer.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:08 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_Spi_sniffer
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :horizontalLayout
|
14
|
+
attr_reader :btn_start
|
15
|
+
attr_reader :cbx_type
|
16
|
+
attr_reader :btn_stop
|
17
|
+
attr_reader :btn_close
|
18
|
+
attr_reader :tbl_result
|
19
|
+
|
20
|
+
def setupUi(spi_sniffer)
|
21
|
+
if spi_sniffer.objectName.nil?
|
22
|
+
spi_sniffer.objectName = "spi_sniffer"
|
23
|
+
end
|
24
|
+
spi_sniffer.resize(400, 604)
|
25
|
+
@gridLayout = Qt::GridLayout.new(spi_sniffer)
|
26
|
+
@gridLayout.objectName = "gridLayout"
|
27
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
28
|
+
@verticalLayout.objectName = "verticalLayout"
|
29
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
30
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
31
|
+
@btn_start = Qt::PushButton.new(spi_sniffer)
|
32
|
+
@btn_start.objectName = "btn_start"
|
33
|
+
|
34
|
+
@horizontalLayout.addWidget(@btn_start)
|
35
|
+
|
36
|
+
@cbx_type = Qt::ComboBox.new(spi_sniffer)
|
37
|
+
@cbx_type.objectName = "cbx_type"
|
38
|
+
|
39
|
+
@horizontalLayout.addWidget(@cbx_type)
|
40
|
+
|
41
|
+
@btn_stop = Qt::PushButton.new(spi_sniffer)
|
42
|
+
@btn_stop.objectName = "btn_stop"
|
43
|
+
@btn_stop.enabled = false
|
44
|
+
|
45
|
+
@horizontalLayout.addWidget(@btn_stop)
|
46
|
+
|
47
|
+
@btn_close = Qt::PushButton.new(spi_sniffer)
|
48
|
+
@btn_close.objectName = "btn_close"
|
49
|
+
|
50
|
+
@horizontalLayout.addWidget(@btn_close)
|
51
|
+
|
52
|
+
|
53
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
54
|
+
|
55
|
+
@tbl_result = Qt::TableWidget.new(spi_sniffer)
|
56
|
+
@tbl_result.objectName = "tbl_result"
|
57
|
+
@tbl_result.sortingEnabled = true
|
58
|
+
|
59
|
+
@verticalLayout.addWidget(@tbl_result)
|
60
|
+
|
61
|
+
|
62
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
63
|
+
|
64
|
+
|
65
|
+
retranslateUi(spi_sniffer)
|
66
|
+
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), spi_sniffer, SLOT('close()'))
|
67
|
+
Qt::Object.connect(@btn_start, SIGNAL('clicked()'), spi_sniffer, SLOT('start()'))
|
68
|
+
Qt::Object.connect(@btn_stop, SIGNAL('clicked()'), spi_sniffer, SLOT('stop()'))
|
69
|
+
|
70
|
+
Qt::MetaObject.connectSlotsByName(spi_sniffer)
|
71
|
+
end # setupUi
|
72
|
+
|
73
|
+
def setup_ui(spi_sniffer)
|
74
|
+
setupUi(spi_sniffer)
|
75
|
+
end
|
76
|
+
|
77
|
+
def retranslateUi(spi_sniffer)
|
78
|
+
spi_sniffer.windowTitle = Qt::Application.translate("Spi_sniffer", "Hardsploit - SPI sniffer", nil, Qt::Application::UnicodeUTF8)
|
79
|
+
@btn_start.text = Qt::Application.translate("Spi_sniffer", "Start", nil, Qt::Application::UnicodeUTF8)
|
80
|
+
@cbx_type.insertItems(0, [Qt::Application.translate("Spi_sniffer", "Both", nil, Qt::Application::UnicodeUTF8),
|
81
|
+
Qt::Application.translate("Spi_sniffer", "MOSI", nil, Qt::Application::UnicodeUTF8),
|
82
|
+
Qt::Application.translate("Spi_sniffer", "MISO", nil, Qt::Application::UnicodeUTF8)])
|
83
|
+
@btn_stop.text = Qt::Application.translate("Spi_sniffer", "Stop", nil, Qt::Application::UnicodeUTF8)
|
84
|
+
@btn_close.text = Qt::Application.translate("Spi_sniffer", "Close", nil, Qt::Application::UnicodeUTF8)
|
85
|
+
if @tbl_result.columnCount < 3
|
86
|
+
@tbl_result.columnCount = 3
|
87
|
+
end
|
88
|
+
|
89
|
+
__colItem = Qt::TableWidgetItem.new
|
90
|
+
__colItem.setText(Qt::Application.translate("Spi_sniffer", "Number", nil, Qt::Application::UnicodeUTF8))
|
91
|
+
@tbl_result.setHorizontalHeaderItem(0, __colItem)
|
92
|
+
|
93
|
+
__colItem1 = Qt::TableWidgetItem.new
|
94
|
+
__colItem1.setText(Qt::Application.translate("Spi_sniffer", "MOSI", nil, Qt::Application::UnicodeUTF8))
|
95
|
+
@tbl_result.setHorizontalHeaderItem(1, __colItem1)
|
96
|
+
|
97
|
+
__colItem2 = Qt::TableWidgetItem.new
|
98
|
+
__colItem2.setText(Qt::Application.translate("Spi_sniffer", "MISO", nil, Qt::Application::UnicodeUTF8))
|
99
|
+
@tbl_result.setHorizontalHeaderItem(2, __colItem2)
|
100
|
+
end # retranslateUi
|
101
|
+
|
102
|
+
def retranslate_ui(spi_sniffer)
|
103
|
+
retranslateUi(spi_sniffer)
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
|
108
|
+
module Ui
|
109
|
+
class Spi_sniffer < Ui_Spi_sniffer
|
110
|
+
end
|
111
|
+
end # module Ui
|
112
|
+
|
data/lib/gui/gui_swd_settings.rb
CHANGED
@@ -1,166 +1,166 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_swd_settings.ui'
|
3
|
-
**
|
4
|
-
** Created: mer.
|
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_Swd_settings
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :verticalLayout
|
13
|
-
attr_reader :horizontalLayout_2
|
14
|
-
attr_reader :lbl_chip
|
15
|
-
attr_reader :lbl_parameters
|
16
|
-
attr_reader :horizontalSpacer_2
|
17
|
-
attr_reader :formLayout
|
18
|
-
attr_reader :label_2
|
19
|
-
attr_reader :lie_start_address
|
20
|
-
attr_reader :label_3
|
21
|
-
attr_reader :lie_size_address
|
22
|
-
attr_reader :label_4
|
23
|
-
attr_reader :label_5
|
24
|
-
attr_reader :lie_cpu_id_address
|
25
|
-
attr_reader :lie_device_id_address
|
26
|
-
attr_reader :horizontalLayout
|
27
|
-
attr_reader :horizontalSpacer
|
28
|
-
attr_reader :btn_cancel
|
29
|
-
attr_reader :btn_save
|
30
|
-
|
31
|
-
def setupUi(swd_settings)
|
32
|
-
if swd_settings.objectName.nil?
|
33
|
-
swd_settings.objectName = "swd_settings"
|
34
|
-
end
|
35
|
-
swd_settings.windowModality = Qt::ApplicationModal
|
36
|
-
swd_settings.resize(400, 179)
|
37
|
-
@gridLayout = Qt::GridLayout.new(swd_settings)
|
38
|
-
@gridLayout.objectName = "gridLayout"
|
39
|
-
@verticalLayout = Qt::VBoxLayout.new()
|
40
|
-
@verticalLayout.objectName = "verticalLayout"
|
41
|
-
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
42
|
-
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
43
|
-
@lbl_chip = Qt::Label.new(swd_settings)
|
44
|
-
@lbl_chip.objectName = "lbl_chip"
|
45
|
-
|
46
|
-
@horizontalLayout_2.addWidget(@lbl_chip)
|
47
|
-
|
48
|
-
@lbl_parameters = Qt::Label.new(swd_settings)
|
49
|
-
@lbl_parameters.objectName = "lbl_parameters"
|
50
|
-
|
51
|
-
@horizontalLayout_2.addWidget(@lbl_parameters)
|
52
|
-
|
53
|
-
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
54
|
-
|
55
|
-
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
56
|
-
|
57
|
-
|
58
|
-
@verticalLayout.addLayout(@horizontalLayout_2)
|
59
|
-
|
60
|
-
@formLayout = Qt::FormLayout.new()
|
61
|
-
@formLayout.objectName = "formLayout"
|
62
|
-
@label_2 = Qt::Label.new(swd_settings)
|
63
|
-
@label_2.objectName = "label_2"
|
64
|
-
|
65
|
-
@formLayout.setWidget(0, Qt::FormLayout::LabelRole, @label_2)
|
66
|
-
|
67
|
-
@lie_start_address = Qt::LineEdit.new(swd_settings)
|
68
|
-
@lie_start_address.objectName = "lie_start_address"
|
69
|
-
|
70
|
-
@formLayout.setWidget(0, Qt::FormLayout::FieldRole, @lie_start_address)
|
71
|
-
|
72
|
-
@label_3 = Qt::Label.new(swd_settings)
|
73
|
-
@label_3.objectName = "label_3"
|
74
|
-
|
75
|
-
@formLayout.setWidget(1, Qt::FormLayout::LabelRole, @label_3)
|
76
|
-
|
77
|
-
@lie_size_address = Qt::LineEdit.new(swd_settings)
|
78
|
-
@lie_size_address.objectName = "lie_size_address"
|
79
|
-
|
80
|
-
@formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lie_size_address)
|
81
|
-
|
82
|
-
@label_4 = Qt::Label.new(swd_settings)
|
83
|
-
@label_4.objectName = "label_4"
|
84
|
-
|
85
|
-
@formLayout.setWidget(2, Qt::FormLayout::LabelRole, @label_4)
|
86
|
-
|
87
|
-
@label_5 = Qt::Label.new(swd_settings)
|
88
|
-
@label_5.objectName = "label_5"
|
89
|
-
|
90
|
-
@formLayout.setWidget(3, Qt::FormLayout::LabelRole, @label_5)
|
91
|
-
|
92
|
-
@lie_cpu_id_address = Qt::LineEdit.new(swd_settings)
|
93
|
-
@lie_cpu_id_address.objectName = "lie_cpu_id_address"
|
94
|
-
|
95
|
-
@formLayout.setWidget(2, Qt::FormLayout::FieldRole, @lie_cpu_id_address)
|
96
|
-
|
97
|
-
@lie_device_id_address = Qt::LineEdit.new(swd_settings)
|
98
|
-
@lie_device_id_address.objectName = "lie_device_id_address"
|
99
|
-
|
100
|
-
@formLayout.setWidget(3, Qt::FormLayout::FieldRole, @lie_device_id_address)
|
101
|
-
|
102
|
-
|
103
|
-
@verticalLayout.addLayout(@formLayout)
|
104
|
-
|
105
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
106
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
107
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
108
|
-
|
109
|
-
@horizontalLayout.addItem(@horizontalSpacer)
|
110
|
-
|
111
|
-
@btn_cancel = Qt::PushButton.new(swd_settings)
|
112
|
-
@btn_cancel.objectName = "btn_cancel"
|
113
|
-
|
114
|
-
@horizontalLayout.addWidget(@btn_cancel)
|
115
|
-
|
116
|
-
@btn_save = Qt::PushButton.new(swd_settings)
|
117
|
-
@btn_save.objectName = "btn_save"
|
118
|
-
|
119
|
-
@horizontalLayout.addWidget(@btn_save)
|
120
|
-
|
121
|
-
|
122
|
-
@verticalLayout.addLayout(@horizontalLayout)
|
123
|
-
|
124
|
-
|
125
|
-
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
126
|
-
|
127
|
-
|
128
|
-
retranslateUi(swd_settings)
|
129
|
-
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), swd_settings, SLOT('save_settings()'))
|
130
|
-
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), swd_settings, SLOT('close()'))
|
131
|
-
|
132
|
-
Qt::MetaObject.connectSlotsByName(swd_settings)
|
133
|
-
end # setupUi
|
134
|
-
|
135
|
-
def setup_ui(swd_settings)
|
136
|
-
setupUi(swd_settings)
|
137
|
-
end
|
138
|
-
|
139
|
-
def retranslateUi(swd_settings)
|
140
|
-
swd_settings.windowTitle = Qt::Application.translate("Swd_settings", "Hardsploit - SWD settings", nil, Qt::Application::UnicodeUTF8)
|
141
|
-
@lbl_chip.text = Qt::Application.translate("Swd_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
142
|
-
@lbl_parameters.text = Qt::Application.translate("Swd_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
143
|
-
@label_2.text = Qt::Application.translate("Swd_settings", "Memory start address:", nil, Qt::Application::UnicodeUTF8)
|
144
|
-
@lie_start_address.text = ''
|
145
|
-
@lie_start_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 1ffff7e0", nil, Qt::Application::UnicodeUTF8)
|
146
|
-
@label_3.text = Qt::Application.translate("Swd_settings", "Memory size address:", nil, Qt::Application::UnicodeUTF8)
|
147
|
-
@lie_size_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 08000000", nil, Qt::Application::UnicodeUTF8)
|
148
|
-
@label_4.text = Qt::Application.translate("Swd_settings", "CPU ID address:", nil, Qt::Application::UnicodeUTF8)
|
149
|
-
@label_5.text = Qt::Application.translate("Swd_settings", "Device ID address:", nil, Qt::Application::UnicodeUTF8)
|
150
|
-
@lie_cpu_id_address.placeholderText = Qt::Application.translate("Swd_settings", "eg E000ED00", nil, Qt::Application::UnicodeUTF8)
|
151
|
-
@lie_device_id_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 1FFFF7E8", nil, Qt::Application::UnicodeUTF8)
|
152
|
-
@btn_cancel.text = Qt::Application.translate("Swd_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
153
|
-
@btn_save.text = Qt::Application.translate("Swd_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
154
|
-
end # retranslateUi
|
155
|
-
|
156
|
-
def retranslate_ui(swd_settings)
|
157
|
-
retranslateUi(swd_settings)
|
158
|
-
end
|
159
|
-
|
160
|
-
end
|
161
|
-
|
162
|
-
module Ui
|
163
|
-
class Swd_settings < Ui_Swd_settings
|
164
|
-
end
|
165
|
-
end # module Ui
|
166
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_swd_settings.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:09 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_Swd_settings
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :horizontalLayout_2
|
14
|
+
attr_reader :lbl_chip
|
15
|
+
attr_reader :lbl_parameters
|
16
|
+
attr_reader :horizontalSpacer_2
|
17
|
+
attr_reader :formLayout
|
18
|
+
attr_reader :label_2
|
19
|
+
attr_reader :lie_start_address
|
20
|
+
attr_reader :label_3
|
21
|
+
attr_reader :lie_size_address
|
22
|
+
attr_reader :label_4
|
23
|
+
attr_reader :label_5
|
24
|
+
attr_reader :lie_cpu_id_address
|
25
|
+
attr_reader :lie_device_id_address
|
26
|
+
attr_reader :horizontalLayout
|
27
|
+
attr_reader :horizontalSpacer
|
28
|
+
attr_reader :btn_cancel
|
29
|
+
attr_reader :btn_save
|
30
|
+
|
31
|
+
def setupUi(swd_settings)
|
32
|
+
if swd_settings.objectName.nil?
|
33
|
+
swd_settings.objectName = "swd_settings"
|
34
|
+
end
|
35
|
+
swd_settings.windowModality = Qt::ApplicationModal
|
36
|
+
swd_settings.resize(400, 179)
|
37
|
+
@gridLayout = Qt::GridLayout.new(swd_settings)
|
38
|
+
@gridLayout.objectName = "gridLayout"
|
39
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
40
|
+
@verticalLayout.objectName = "verticalLayout"
|
41
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
42
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
43
|
+
@lbl_chip = Qt::Label.new(swd_settings)
|
44
|
+
@lbl_chip.objectName = "lbl_chip"
|
45
|
+
|
46
|
+
@horizontalLayout_2.addWidget(@lbl_chip)
|
47
|
+
|
48
|
+
@lbl_parameters = Qt::Label.new(swd_settings)
|
49
|
+
@lbl_parameters.objectName = "lbl_parameters"
|
50
|
+
|
51
|
+
@horizontalLayout_2.addWidget(@lbl_parameters)
|
52
|
+
|
53
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
54
|
+
|
55
|
+
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
56
|
+
|
57
|
+
|
58
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
59
|
+
|
60
|
+
@formLayout = Qt::FormLayout.new()
|
61
|
+
@formLayout.objectName = "formLayout"
|
62
|
+
@label_2 = Qt::Label.new(swd_settings)
|
63
|
+
@label_2.objectName = "label_2"
|
64
|
+
|
65
|
+
@formLayout.setWidget(0, Qt::FormLayout::LabelRole, @label_2)
|
66
|
+
|
67
|
+
@lie_start_address = Qt::LineEdit.new(swd_settings)
|
68
|
+
@lie_start_address.objectName = "lie_start_address"
|
69
|
+
|
70
|
+
@formLayout.setWidget(0, Qt::FormLayout::FieldRole, @lie_start_address)
|
71
|
+
|
72
|
+
@label_3 = Qt::Label.new(swd_settings)
|
73
|
+
@label_3.objectName = "label_3"
|
74
|
+
|
75
|
+
@formLayout.setWidget(1, Qt::FormLayout::LabelRole, @label_3)
|
76
|
+
|
77
|
+
@lie_size_address = Qt::LineEdit.new(swd_settings)
|
78
|
+
@lie_size_address.objectName = "lie_size_address"
|
79
|
+
|
80
|
+
@formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lie_size_address)
|
81
|
+
|
82
|
+
@label_4 = Qt::Label.new(swd_settings)
|
83
|
+
@label_4.objectName = "label_4"
|
84
|
+
|
85
|
+
@formLayout.setWidget(2, Qt::FormLayout::LabelRole, @label_4)
|
86
|
+
|
87
|
+
@label_5 = Qt::Label.new(swd_settings)
|
88
|
+
@label_5.objectName = "label_5"
|
89
|
+
|
90
|
+
@formLayout.setWidget(3, Qt::FormLayout::LabelRole, @label_5)
|
91
|
+
|
92
|
+
@lie_cpu_id_address = Qt::LineEdit.new(swd_settings)
|
93
|
+
@lie_cpu_id_address.objectName = "lie_cpu_id_address"
|
94
|
+
|
95
|
+
@formLayout.setWidget(2, Qt::FormLayout::FieldRole, @lie_cpu_id_address)
|
96
|
+
|
97
|
+
@lie_device_id_address = Qt::LineEdit.new(swd_settings)
|
98
|
+
@lie_device_id_address.objectName = "lie_device_id_address"
|
99
|
+
|
100
|
+
@formLayout.setWidget(3, Qt::FormLayout::FieldRole, @lie_device_id_address)
|
101
|
+
|
102
|
+
|
103
|
+
@verticalLayout.addLayout(@formLayout)
|
104
|
+
|
105
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
106
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
107
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
108
|
+
|
109
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
110
|
+
|
111
|
+
@btn_cancel = Qt::PushButton.new(swd_settings)
|
112
|
+
@btn_cancel.objectName = "btn_cancel"
|
113
|
+
|
114
|
+
@horizontalLayout.addWidget(@btn_cancel)
|
115
|
+
|
116
|
+
@btn_save = Qt::PushButton.new(swd_settings)
|
117
|
+
@btn_save.objectName = "btn_save"
|
118
|
+
|
119
|
+
@horizontalLayout.addWidget(@btn_save)
|
120
|
+
|
121
|
+
|
122
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
123
|
+
|
124
|
+
|
125
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
126
|
+
|
127
|
+
|
128
|
+
retranslateUi(swd_settings)
|
129
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), swd_settings, SLOT('save_settings()'))
|
130
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), swd_settings, SLOT('close()'))
|
131
|
+
|
132
|
+
Qt::MetaObject.connectSlotsByName(swd_settings)
|
133
|
+
end # setupUi
|
134
|
+
|
135
|
+
def setup_ui(swd_settings)
|
136
|
+
setupUi(swd_settings)
|
137
|
+
end
|
138
|
+
|
139
|
+
def retranslateUi(swd_settings)
|
140
|
+
swd_settings.windowTitle = Qt::Application.translate("Swd_settings", "Hardsploit - SWD settings", nil, Qt::Application::UnicodeUTF8)
|
141
|
+
@lbl_chip.text = Qt::Application.translate("Swd_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
142
|
+
@lbl_parameters.text = Qt::Application.translate("Swd_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
143
|
+
@label_2.text = Qt::Application.translate("Swd_settings", "Memory start address:", nil, Qt::Application::UnicodeUTF8)
|
144
|
+
@lie_start_address.text = ''
|
145
|
+
@lie_start_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 1ffff7e0", nil, Qt::Application::UnicodeUTF8)
|
146
|
+
@label_3.text = Qt::Application.translate("Swd_settings", "Memory size address:", nil, Qt::Application::UnicodeUTF8)
|
147
|
+
@lie_size_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 08000000", nil, Qt::Application::UnicodeUTF8)
|
148
|
+
@label_4.text = Qt::Application.translate("Swd_settings", "CPU ID address:", nil, Qt::Application::UnicodeUTF8)
|
149
|
+
@label_5.text = Qt::Application.translate("Swd_settings", "Device ID address:", nil, Qt::Application::UnicodeUTF8)
|
150
|
+
@lie_cpu_id_address.placeholderText = Qt::Application.translate("Swd_settings", "eg E000ED00", nil, Qt::Application::UnicodeUTF8)
|
151
|
+
@lie_device_id_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 1FFFF7E8", nil, Qt::Application::UnicodeUTF8)
|
152
|
+
@btn_cancel.text = Qt::Application.translate("Swd_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
153
|
+
@btn_save.text = Qt::Application.translate("Swd_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
154
|
+
end # retranslateUi
|
155
|
+
|
156
|
+
def retranslate_ui(swd_settings)
|
157
|
+
retranslateUi(swd_settings)
|
158
|
+
end
|
159
|
+
|
160
|
+
end
|
161
|
+
|
162
|
+
module Ui
|
163
|
+
class Swd_settings < Ui_Swd_settings
|
164
|
+
end
|
165
|
+
end # module Ui
|
166
|
+
|