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
@@ -1,93 +1,93 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_export_manager.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_Export_manager
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :verticalLayout
|
13
|
-
attr_reader :lbl_result
|
14
|
-
attr_reader :tbl_result
|
15
|
-
attr_reader :horizontalLayout
|
16
|
-
attr_reader :horizontalSpacer
|
17
|
-
attr_reader :cbx_export
|
18
|
-
attr_reader :btn_save
|
19
|
-
|
20
|
-
def setupUi(export_manager)
|
21
|
-
if export_manager.objectName.nil?
|
22
|
-
export_manager.objectName = "export_manager"
|
23
|
-
end
|
24
|
-
export_manager.windowModality = Qt::ApplicationModal
|
25
|
-
export_manager.resize(276, 601)
|
26
|
-
@gridLayout = Qt::GridLayout.new(export_manager)
|
27
|
-
@gridLayout.objectName = "gridLayout"
|
28
|
-
@verticalLayout = Qt::VBoxLayout.new()
|
29
|
-
@verticalLayout.objectName = "verticalLayout"
|
30
|
-
@lbl_result = Qt::Label.new(export_manager)
|
31
|
-
@lbl_result.objectName = "lbl_result"
|
32
|
-
@lbl_result.minimumSize = Qt::Size.new(241, 16)
|
33
|
-
@lbl_result.maximumSize = Qt::Size.new(240, 16)
|
34
|
-
|
35
|
-
@verticalLayout.addWidget(@lbl_result)
|
36
|
-
|
37
|
-
@tbl_result = Qt::TableWidget.new(export_manager)
|
38
|
-
@tbl_result.objectName = "tbl_result"
|
39
|
-
|
40
|
-
@verticalLayout.addWidget(@tbl_result)
|
41
|
-
|
42
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
43
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
44
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
45
|
-
|
46
|
-
@horizontalLayout.addItem(@horizontalSpacer)
|
47
|
-
|
48
|
-
@cbx_export = Qt::ComboBox.new(export_manager)
|
49
|
-
@cbx_export.objectName = "cbx_export"
|
50
|
-
|
51
|
-
@horizontalLayout.addWidget(@cbx_export)
|
52
|
-
|
53
|
-
@btn_save = Qt::PushButton.new(export_manager)
|
54
|
-
@btn_save.objectName = "btn_save"
|
55
|
-
|
56
|
-
@horizontalLayout.addWidget(@btn_save)
|
57
|
-
|
58
|
-
|
59
|
-
@verticalLayout.addLayout(@horizontalLayout)
|
60
|
-
|
61
|
-
|
62
|
-
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
63
|
-
|
64
|
-
|
65
|
-
retranslateUi(export_manager)
|
66
|
-
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), export_manager, SLOT('save_result()'))
|
67
|
-
|
68
|
-
Qt::MetaObject.connectSlotsByName(export_manager)
|
69
|
-
end # setupUi
|
70
|
-
|
71
|
-
def setup_ui(export_manager)
|
72
|
-
setupUi(export_manager)
|
73
|
-
end
|
74
|
-
|
75
|
-
def retranslateUi(export_manager)
|
76
|
-
export_manager.windowTitle = Qt::Application.translate("Export_manager", "Hardsploit - Export", nil, Qt::Application::UnicodeUTF8)
|
77
|
-
@lbl_result.text = Qt::Application.translate("Export_manager", "Command result:", nil, Qt::Application::UnicodeUTF8)
|
78
|
-
@cbx_export.insertItems(0, [Qt::Application.translate("Export_manager", "Debug (CSV file)", nil, Qt::Application::UnicodeUTF8),
|
79
|
-
Qt::Application.translate("Export_manager", "Data only (Read)", nil, Qt::Application::UnicodeUTF8)])
|
80
|
-
@btn_save.text = Qt::Application.translate("Export_manager", "Save...", nil, Qt::Application::UnicodeUTF8)
|
81
|
-
end # retranslateUi
|
82
|
-
|
83
|
-
def retranslate_ui(export_manager)
|
84
|
-
retranslateUi(export_manager)
|
85
|
-
end
|
86
|
-
|
87
|
-
end
|
88
|
-
|
89
|
-
module Ui
|
90
|
-
class Export_manager < Ui_Export_manager
|
91
|
-
end
|
92
|
-
end # module Ui
|
93
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_export_manager.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:03 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_Export_manager
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :lbl_result
|
14
|
+
attr_reader :tbl_result
|
15
|
+
attr_reader :horizontalLayout
|
16
|
+
attr_reader :horizontalSpacer
|
17
|
+
attr_reader :cbx_export
|
18
|
+
attr_reader :btn_save
|
19
|
+
|
20
|
+
def setupUi(export_manager)
|
21
|
+
if export_manager.objectName.nil?
|
22
|
+
export_manager.objectName = "export_manager"
|
23
|
+
end
|
24
|
+
export_manager.windowModality = Qt::ApplicationModal
|
25
|
+
export_manager.resize(276, 601)
|
26
|
+
@gridLayout = Qt::GridLayout.new(export_manager)
|
27
|
+
@gridLayout.objectName = "gridLayout"
|
28
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
29
|
+
@verticalLayout.objectName = "verticalLayout"
|
30
|
+
@lbl_result = Qt::Label.new(export_manager)
|
31
|
+
@lbl_result.objectName = "lbl_result"
|
32
|
+
@lbl_result.minimumSize = Qt::Size.new(241, 16)
|
33
|
+
@lbl_result.maximumSize = Qt::Size.new(240, 16)
|
34
|
+
|
35
|
+
@verticalLayout.addWidget(@lbl_result)
|
36
|
+
|
37
|
+
@tbl_result = Qt::TableWidget.new(export_manager)
|
38
|
+
@tbl_result.objectName = "tbl_result"
|
39
|
+
|
40
|
+
@verticalLayout.addWidget(@tbl_result)
|
41
|
+
|
42
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
43
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
44
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
45
|
+
|
46
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
47
|
+
|
48
|
+
@cbx_export = Qt::ComboBox.new(export_manager)
|
49
|
+
@cbx_export.objectName = "cbx_export"
|
50
|
+
|
51
|
+
@horizontalLayout.addWidget(@cbx_export)
|
52
|
+
|
53
|
+
@btn_save = Qt::PushButton.new(export_manager)
|
54
|
+
@btn_save.objectName = "btn_save"
|
55
|
+
|
56
|
+
@horizontalLayout.addWidget(@btn_save)
|
57
|
+
|
58
|
+
|
59
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
60
|
+
|
61
|
+
|
62
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
63
|
+
|
64
|
+
|
65
|
+
retranslateUi(export_manager)
|
66
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), export_manager, SLOT('save_result()'))
|
67
|
+
|
68
|
+
Qt::MetaObject.connectSlotsByName(export_manager)
|
69
|
+
end # setupUi
|
70
|
+
|
71
|
+
def setup_ui(export_manager)
|
72
|
+
setupUi(export_manager)
|
73
|
+
end
|
74
|
+
|
75
|
+
def retranslateUi(export_manager)
|
76
|
+
export_manager.windowTitle = Qt::Application.translate("Export_manager", "Hardsploit - Export", nil, Qt::Application::UnicodeUTF8)
|
77
|
+
@lbl_result.text = Qt::Application.translate("Export_manager", "Command result:", nil, Qt::Application::UnicodeUTF8)
|
78
|
+
@cbx_export.insertItems(0, [Qt::Application.translate("Export_manager", "Debug (CSV file)", nil, Qt::Application::UnicodeUTF8),
|
79
|
+
Qt::Application.translate("Export_manager", "Data only (Read)", nil, Qt::Application::UnicodeUTF8)])
|
80
|
+
@btn_save.text = Qt::Application.translate("Export_manager", "Save...", nil, Qt::Application::UnicodeUTF8)
|
81
|
+
end # retranslateUi
|
82
|
+
|
83
|
+
def retranslate_ui(export_manager)
|
84
|
+
retranslateUi(export_manager)
|
85
|
+
end
|
86
|
+
|
87
|
+
end
|
88
|
+
|
89
|
+
module Ui
|
90
|
+
class Export_manager < Ui_Export_manager
|
91
|
+
end
|
92
|
+
end # module Ui
|
93
|
+
|
@@ -1,202 +1,202 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_generic_commands.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_Generic_commands
|
11
|
-
attr_reader :actionExecute
|
12
|
-
attr_reader :actionEdit
|
13
|
-
attr_reader :actionTemplate
|
14
|
-
attr_reader :actionDelete
|
15
|
-
attr_reader :actionConcatenate
|
16
|
-
attr_reader :centralwidget
|
17
|
-
attr_reader :gridLayout
|
18
|
-
attr_reader :vl
|
19
|
-
attr_reader :hl
|
20
|
-
attr_reader :lbl_search
|
21
|
-
attr_reader :lie_search
|
22
|
-
attr_reader :hs
|
23
|
-
attr_reader :lbl_current_chip
|
24
|
-
attr_reader :lbl_chip
|
25
|
-
attr_reader :vl2
|
26
|
-
attr_reader :tbl_cmd
|
27
|
-
attr_reader :label
|
28
|
-
attr_reader :hl3
|
29
|
-
attr_reader :check_result
|
30
|
-
attr_reader :hs2
|
31
|
-
attr_reader :btn_new_cmd
|
32
|
-
attr_reader :menubar
|
33
|
-
attr_reader :menuCommandes
|
34
|
-
attr_reader :statusbar
|
35
|
-
|
36
|
-
def setupUi(generic_commands)
|
37
|
-
if generic_commands.objectName.nil?
|
38
|
-
generic_commands.objectName = "generic_commands"
|
39
|
-
end
|
40
|
-
generic_commands.windowModality = Qt::ApplicationModal
|
41
|
-
generic_commands.resize(542, 383)
|
42
|
-
@actionExecute = Qt::Action.new(generic_commands)
|
43
|
-
@actionExecute.objectName = "actionExecute"
|
44
|
-
@actionEdit = Qt::Action.new(generic_commands)
|
45
|
-
@actionEdit.objectName = "actionEdit"
|
46
|
-
@actionTemplate = Qt::Action.new(generic_commands)
|
47
|
-
@actionTemplate.objectName = "actionTemplate"
|
48
|
-
@actionDelete = Qt::Action.new(generic_commands)
|
49
|
-
@actionDelete.objectName = "actionDelete"
|
50
|
-
@actionConcatenate = Qt::Action.new(generic_commands)
|
51
|
-
@actionConcatenate.objectName = "actionConcatenate"
|
52
|
-
@centralwidget = Qt::Widget.new(generic_commands)
|
53
|
-
@centralwidget.objectName = "centralwidget"
|
54
|
-
@gridLayout = Qt::GridLayout.new(@centralwidget)
|
55
|
-
@gridLayout.objectName = "gridLayout"
|
56
|
-
@vl = Qt::VBoxLayout.new()
|
57
|
-
@vl.objectName = "vl"
|
58
|
-
@hl = Qt::HBoxLayout.new()
|
59
|
-
@hl.objectName = "hl"
|
60
|
-
@lbl_search = Qt::Label.new(@centralwidget)
|
61
|
-
@lbl_search.objectName = "lbl_search"
|
62
|
-
|
63
|
-
@hl.addWidget(@lbl_search)
|
64
|
-
|
65
|
-
@lie_search = Qt::LineEdit.new(@centralwidget)
|
66
|
-
@lie_search.objectName = "lie_search"
|
67
|
-
@lie_search.maxLength = 10
|
68
|
-
|
69
|
-
@hl.addWidget(@lie_search)
|
70
|
-
|
71
|
-
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
72
|
-
|
73
|
-
@hl.addItem(@hs)
|
74
|
-
|
75
|
-
@lbl_current_chip = Qt::Label.new(@centralwidget)
|
76
|
-
@lbl_current_chip.objectName = "lbl_current_chip"
|
77
|
-
|
78
|
-
@hl.addWidget(@lbl_current_chip)
|
79
|
-
|
80
|
-
@lbl_chip = Qt::Label.new(@centralwidget)
|
81
|
-
@lbl_chip.objectName = "lbl_chip"
|
82
|
-
|
83
|
-
@hl.addWidget(@lbl_chip)
|
84
|
-
|
85
|
-
|
86
|
-
@vl.addLayout(@hl)
|
87
|
-
|
88
|
-
@vl2 = Qt::VBoxLayout.new()
|
89
|
-
@vl2.objectName = "vl2"
|
90
|
-
@tbl_cmd = Qt::TableWidget.new(@centralwidget)
|
91
|
-
@tbl_cmd.objectName = "tbl_cmd"
|
92
|
-
@font = Qt::Font.new
|
93
|
-
@font.family = "Arial"
|
94
|
-
@tbl_cmd.font = @font
|
95
|
-
@tbl_cmd.sortingEnabled = true
|
96
|
-
|
97
|
-
@vl2.addWidget(@tbl_cmd)
|
98
|
-
|
99
|
-
@label = Qt::Label.new(@centralwidget)
|
100
|
-
@label.objectName = "label"
|
101
|
-
|
102
|
-
@vl2.addWidget(@label)
|
103
|
-
|
104
|
-
@hl3 = Qt::HBoxLayout.new()
|
105
|
-
@hl3.objectName = "hl3"
|
106
|
-
@check_result = Qt::CheckBox.new(@centralwidget)
|
107
|
-
@check_result.objectName = "check_result"
|
108
|
-
@check_result.checked = true
|
109
|
-
|
110
|
-
@hl3.addWidget(@check_result)
|
111
|
-
|
112
|
-
@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
113
|
-
|
114
|
-
@hl3.addItem(@hs2)
|
115
|
-
|
116
|
-
@btn_new_cmd = Qt::PushButton.new(@centralwidget)
|
117
|
-
@btn_new_cmd.objectName = "btn_new_cmd"
|
118
|
-
|
119
|
-
@hl3.addWidget(@btn_new_cmd)
|
120
|
-
|
121
|
-
|
122
|
-
@vl2.addLayout(@hl3)
|
123
|
-
|
124
|
-
|
125
|
-
@vl.addLayout(@vl2)
|
126
|
-
|
127
|
-
|
128
|
-
@gridLayout.addLayout(@vl, 0, 0, 1, 1)
|
129
|
-
|
130
|
-
generic_commands.centralWidget = @centralwidget
|
131
|
-
@menubar = Qt::MenuBar.new(generic_commands)
|
132
|
-
@menubar.objectName = "menubar"
|
133
|
-
@menubar.geometry = Qt::Rect.new(0, 0, 542, 21)
|
134
|
-
@menuCommandes = Qt::Menu.new(@menubar)
|
135
|
-
@menuCommandes.objectName = "menuCommandes"
|
136
|
-
generic_commands.setMenuBar(@menubar)
|
137
|
-
@statusbar = Qt::StatusBar.new(generic_commands)
|
138
|
-
@statusbar.objectName = "statusbar"
|
139
|
-
generic_commands.statusBar = @statusbar
|
140
|
-
|
141
|
-
@menubar.addAction(@menuCommandes.menuAction())
|
142
|
-
@menuCommandes.addAction(@actionExecute)
|
143
|
-
@menuCommandes.addAction(@actionEdit)
|
144
|
-
@menuCommandes.addAction(@actionTemplate)
|
145
|
-
@menuCommandes.addAction(@actionDelete)
|
146
|
-
@menuCommandes.addAction(@actionConcatenate)
|
147
|
-
|
148
|
-
retranslateUi(generic_commands)
|
149
|
-
Qt::Object.connect(@lie_search, SIGNAL('textChanged(QString)'), generic_commands, SLOT('feed_cmd_array()'))
|
150
|
-
Qt::Object.connect(@btn_new_cmd, SIGNAL('clicked()'), generic_commands, SLOT('create()'))
|
151
|
-
Qt::Object.connect(@actionExecute, SIGNAL('triggered()'), generic_commands, SLOT('execute()'))
|
152
|
-
Qt::Object.connect(@actionEdit, SIGNAL('triggered()'), generic_commands, SLOT('edit()'))
|
153
|
-
Qt::Object.connect(@actionDelete, SIGNAL('triggered()'), generic_commands, SLOT('delete()'))
|
154
|
-
Qt::Object.connect(@actionTemplate, SIGNAL('triggered()'), generic_commands, SLOT('template()'))
|
155
|
-
Qt::Object.connect(@actionConcatenate, SIGNAL('triggered()'), generic_commands, SLOT('concatenate()'))
|
156
|
-
|
157
|
-
Qt::MetaObject.connectSlotsByName(generic_commands)
|
158
|
-
end # setupUi
|
159
|
-
|
160
|
-
def setup_ui(generic_commands)
|
161
|
-
setupUi(generic_commands)
|
162
|
-
end
|
163
|
-
|
164
|
-
def retranslateUi(generic_commands)
|
165
|
-
generic_commands.windowTitle = Qt::Application.translate("Generic_commands", "Hardsploit - Commands", nil, Qt::Application::UnicodeUTF8)
|
166
|
-
@actionExecute.text = Qt::Application.translate("Generic_commands", "Execute", nil, Qt::Application::UnicodeUTF8)
|
167
|
-
@actionEdit.text = Qt::Application.translate("Generic_commands", "Edit", nil, Qt::Application::UnicodeUTF8)
|
168
|
-
@actionTemplate.text = Qt::Application.translate("Generic_commands", "Template", nil, Qt::Application::UnicodeUTF8)
|
169
|
-
@actionDelete.text = Qt::Application.translate("Generic_commands", "Delete", nil, Qt::Application::UnicodeUTF8)
|
170
|
-
@actionConcatenate.text = Qt::Application.translate("Generic_commands", "Concatenate", nil, Qt::Application::UnicodeUTF8)
|
171
|
-
@lbl_search.text = Qt::Application.translate("Generic_commands", "Search", nil, Qt::Application::UnicodeUTF8)
|
172
|
-
@lie_search.inputMask = ''
|
173
|
-
@lbl_current_chip.text = Qt::Application.translate("Generic_commands", "Current chip:", nil, Qt::Application::UnicodeUTF8)
|
174
|
-
@lbl_chip.text = Qt::Application.translate("Generic_commands", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
175
|
-
if @tbl_cmd.columnCount < 2
|
176
|
-
@tbl_cmd.columnCount = 2
|
177
|
-
end
|
178
|
-
|
179
|
-
__colItem = Qt::TableWidgetItem.new
|
180
|
-
__colItem.setText(Qt::Application.translate("Generic_commands", "Name", nil, Qt::Application::UnicodeUTF8))
|
181
|
-
@tbl_cmd.setHorizontalHeaderItem(0, __colItem)
|
182
|
-
|
183
|
-
__colItem1 = Qt::TableWidgetItem.new
|
184
|
-
__colItem1.setText(Qt::Application.translate("Generic_commands", "Description", nil, Qt::Application::UnicodeUTF8))
|
185
|
-
@tbl_cmd.setHorizontalHeaderItem(1, __colItem1)
|
186
|
-
@label.text = Qt::Application.translate("Generic_commands", "Right click on a command to open the menu", nil, Qt::Application::UnicodeUTF8)
|
187
|
-
@check_result.text = Qt::Application.translate("Generic_commands", "Show command result", nil, Qt::Application::UnicodeUTF8)
|
188
|
-
@btn_new_cmd.text = Qt::Application.translate("Generic_commands", "New Command", nil, Qt::Application::UnicodeUTF8)
|
189
|
-
@menuCommandes.title = Qt::Application.translate("Generic_commands", "Commandes...", nil, Qt::Application::UnicodeUTF8)
|
190
|
-
end # retranslateUi
|
191
|
-
|
192
|
-
def retranslate_ui(generic_commands)
|
193
|
-
retranslateUi(generic_commands)
|
194
|
-
end
|
195
|
-
|
196
|
-
end
|
197
|
-
|
198
|
-
module Ui
|
199
|
-
class Generic_commands < Ui_Generic_commands
|
200
|
-
end
|
201
|
-
end # module Ui
|
202
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_generic_commands.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:04 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_Generic_commands
|
11
|
+
attr_reader :actionExecute
|
12
|
+
attr_reader :actionEdit
|
13
|
+
attr_reader :actionTemplate
|
14
|
+
attr_reader :actionDelete
|
15
|
+
attr_reader :actionConcatenate
|
16
|
+
attr_reader :centralwidget
|
17
|
+
attr_reader :gridLayout
|
18
|
+
attr_reader :vl
|
19
|
+
attr_reader :hl
|
20
|
+
attr_reader :lbl_search
|
21
|
+
attr_reader :lie_search
|
22
|
+
attr_reader :hs
|
23
|
+
attr_reader :lbl_current_chip
|
24
|
+
attr_reader :lbl_chip
|
25
|
+
attr_reader :vl2
|
26
|
+
attr_reader :tbl_cmd
|
27
|
+
attr_reader :label
|
28
|
+
attr_reader :hl3
|
29
|
+
attr_reader :check_result
|
30
|
+
attr_reader :hs2
|
31
|
+
attr_reader :btn_new_cmd
|
32
|
+
attr_reader :menubar
|
33
|
+
attr_reader :menuCommandes
|
34
|
+
attr_reader :statusbar
|
35
|
+
|
36
|
+
def setupUi(generic_commands)
|
37
|
+
if generic_commands.objectName.nil?
|
38
|
+
generic_commands.objectName = "generic_commands"
|
39
|
+
end
|
40
|
+
generic_commands.windowModality = Qt::ApplicationModal
|
41
|
+
generic_commands.resize(542, 383)
|
42
|
+
@actionExecute = Qt::Action.new(generic_commands)
|
43
|
+
@actionExecute.objectName = "actionExecute"
|
44
|
+
@actionEdit = Qt::Action.new(generic_commands)
|
45
|
+
@actionEdit.objectName = "actionEdit"
|
46
|
+
@actionTemplate = Qt::Action.new(generic_commands)
|
47
|
+
@actionTemplate.objectName = "actionTemplate"
|
48
|
+
@actionDelete = Qt::Action.new(generic_commands)
|
49
|
+
@actionDelete.objectName = "actionDelete"
|
50
|
+
@actionConcatenate = Qt::Action.new(generic_commands)
|
51
|
+
@actionConcatenate.objectName = "actionConcatenate"
|
52
|
+
@centralwidget = Qt::Widget.new(generic_commands)
|
53
|
+
@centralwidget.objectName = "centralwidget"
|
54
|
+
@gridLayout = Qt::GridLayout.new(@centralwidget)
|
55
|
+
@gridLayout.objectName = "gridLayout"
|
56
|
+
@vl = Qt::VBoxLayout.new()
|
57
|
+
@vl.objectName = "vl"
|
58
|
+
@hl = Qt::HBoxLayout.new()
|
59
|
+
@hl.objectName = "hl"
|
60
|
+
@lbl_search = Qt::Label.new(@centralwidget)
|
61
|
+
@lbl_search.objectName = "lbl_search"
|
62
|
+
|
63
|
+
@hl.addWidget(@lbl_search)
|
64
|
+
|
65
|
+
@lie_search = Qt::LineEdit.new(@centralwidget)
|
66
|
+
@lie_search.objectName = "lie_search"
|
67
|
+
@lie_search.maxLength = 10
|
68
|
+
|
69
|
+
@hl.addWidget(@lie_search)
|
70
|
+
|
71
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
72
|
+
|
73
|
+
@hl.addItem(@hs)
|
74
|
+
|
75
|
+
@lbl_current_chip = Qt::Label.new(@centralwidget)
|
76
|
+
@lbl_current_chip.objectName = "lbl_current_chip"
|
77
|
+
|
78
|
+
@hl.addWidget(@lbl_current_chip)
|
79
|
+
|
80
|
+
@lbl_chip = Qt::Label.new(@centralwidget)
|
81
|
+
@lbl_chip.objectName = "lbl_chip"
|
82
|
+
|
83
|
+
@hl.addWidget(@lbl_chip)
|
84
|
+
|
85
|
+
|
86
|
+
@vl.addLayout(@hl)
|
87
|
+
|
88
|
+
@vl2 = Qt::VBoxLayout.new()
|
89
|
+
@vl2.objectName = "vl2"
|
90
|
+
@tbl_cmd = Qt::TableWidget.new(@centralwidget)
|
91
|
+
@tbl_cmd.objectName = "tbl_cmd"
|
92
|
+
@font = Qt::Font.new
|
93
|
+
@font.family = "Arial"
|
94
|
+
@tbl_cmd.font = @font
|
95
|
+
@tbl_cmd.sortingEnabled = true
|
96
|
+
|
97
|
+
@vl2.addWidget(@tbl_cmd)
|
98
|
+
|
99
|
+
@label = Qt::Label.new(@centralwidget)
|
100
|
+
@label.objectName = "label"
|
101
|
+
|
102
|
+
@vl2.addWidget(@label)
|
103
|
+
|
104
|
+
@hl3 = Qt::HBoxLayout.new()
|
105
|
+
@hl3.objectName = "hl3"
|
106
|
+
@check_result = Qt::CheckBox.new(@centralwidget)
|
107
|
+
@check_result.objectName = "check_result"
|
108
|
+
@check_result.checked = true
|
109
|
+
|
110
|
+
@hl3.addWidget(@check_result)
|
111
|
+
|
112
|
+
@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
113
|
+
|
114
|
+
@hl3.addItem(@hs2)
|
115
|
+
|
116
|
+
@btn_new_cmd = Qt::PushButton.new(@centralwidget)
|
117
|
+
@btn_new_cmd.objectName = "btn_new_cmd"
|
118
|
+
|
119
|
+
@hl3.addWidget(@btn_new_cmd)
|
120
|
+
|
121
|
+
|
122
|
+
@vl2.addLayout(@hl3)
|
123
|
+
|
124
|
+
|
125
|
+
@vl.addLayout(@vl2)
|
126
|
+
|
127
|
+
|
128
|
+
@gridLayout.addLayout(@vl, 0, 0, 1, 1)
|
129
|
+
|
130
|
+
generic_commands.centralWidget = @centralwidget
|
131
|
+
@menubar = Qt::MenuBar.new(generic_commands)
|
132
|
+
@menubar.objectName = "menubar"
|
133
|
+
@menubar.geometry = Qt::Rect.new(0, 0, 542, 21)
|
134
|
+
@menuCommandes = Qt::Menu.new(@menubar)
|
135
|
+
@menuCommandes.objectName = "menuCommandes"
|
136
|
+
generic_commands.setMenuBar(@menubar)
|
137
|
+
@statusbar = Qt::StatusBar.new(generic_commands)
|
138
|
+
@statusbar.objectName = "statusbar"
|
139
|
+
generic_commands.statusBar = @statusbar
|
140
|
+
|
141
|
+
@menubar.addAction(@menuCommandes.menuAction())
|
142
|
+
@menuCommandes.addAction(@actionExecute)
|
143
|
+
@menuCommandes.addAction(@actionEdit)
|
144
|
+
@menuCommandes.addAction(@actionTemplate)
|
145
|
+
@menuCommandes.addAction(@actionDelete)
|
146
|
+
@menuCommandes.addAction(@actionConcatenate)
|
147
|
+
|
148
|
+
retranslateUi(generic_commands)
|
149
|
+
Qt::Object.connect(@lie_search, SIGNAL('textChanged(QString)'), generic_commands, SLOT('feed_cmd_array()'))
|
150
|
+
Qt::Object.connect(@btn_new_cmd, SIGNAL('clicked()'), generic_commands, SLOT('create()'))
|
151
|
+
Qt::Object.connect(@actionExecute, SIGNAL('triggered()'), generic_commands, SLOT('execute()'))
|
152
|
+
Qt::Object.connect(@actionEdit, SIGNAL('triggered()'), generic_commands, SLOT('edit()'))
|
153
|
+
Qt::Object.connect(@actionDelete, SIGNAL('triggered()'), generic_commands, SLOT('delete()'))
|
154
|
+
Qt::Object.connect(@actionTemplate, SIGNAL('triggered()'), generic_commands, SLOT('template()'))
|
155
|
+
Qt::Object.connect(@actionConcatenate, SIGNAL('triggered()'), generic_commands, SLOT('concatenate()'))
|
156
|
+
|
157
|
+
Qt::MetaObject.connectSlotsByName(generic_commands)
|
158
|
+
end # setupUi
|
159
|
+
|
160
|
+
def setup_ui(generic_commands)
|
161
|
+
setupUi(generic_commands)
|
162
|
+
end
|
163
|
+
|
164
|
+
def retranslateUi(generic_commands)
|
165
|
+
generic_commands.windowTitle = Qt::Application.translate("Generic_commands", "Hardsploit - Commands", nil, Qt::Application::UnicodeUTF8)
|
166
|
+
@actionExecute.text = Qt::Application.translate("Generic_commands", "Execute", nil, Qt::Application::UnicodeUTF8)
|
167
|
+
@actionEdit.text = Qt::Application.translate("Generic_commands", "Edit", nil, Qt::Application::UnicodeUTF8)
|
168
|
+
@actionTemplate.text = Qt::Application.translate("Generic_commands", "Template", nil, Qt::Application::UnicodeUTF8)
|
169
|
+
@actionDelete.text = Qt::Application.translate("Generic_commands", "Delete", nil, Qt::Application::UnicodeUTF8)
|
170
|
+
@actionConcatenate.text = Qt::Application.translate("Generic_commands", "Concatenate", nil, Qt::Application::UnicodeUTF8)
|
171
|
+
@lbl_search.text = Qt::Application.translate("Generic_commands", "Search", nil, Qt::Application::UnicodeUTF8)
|
172
|
+
@lie_search.inputMask = ''
|
173
|
+
@lbl_current_chip.text = Qt::Application.translate("Generic_commands", "Current chip:", nil, Qt::Application::UnicodeUTF8)
|
174
|
+
@lbl_chip.text = Qt::Application.translate("Generic_commands", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
175
|
+
if @tbl_cmd.columnCount < 2
|
176
|
+
@tbl_cmd.columnCount = 2
|
177
|
+
end
|
178
|
+
|
179
|
+
__colItem = Qt::TableWidgetItem.new
|
180
|
+
__colItem.setText(Qt::Application.translate("Generic_commands", "Name", nil, Qt::Application::UnicodeUTF8))
|
181
|
+
@tbl_cmd.setHorizontalHeaderItem(0, __colItem)
|
182
|
+
|
183
|
+
__colItem1 = Qt::TableWidgetItem.new
|
184
|
+
__colItem1.setText(Qt::Application.translate("Generic_commands", "Description", nil, Qt::Application::UnicodeUTF8))
|
185
|
+
@tbl_cmd.setHorizontalHeaderItem(1, __colItem1)
|
186
|
+
@label.text = Qt::Application.translate("Generic_commands", "Right click on a command to open the menu", nil, Qt::Application::UnicodeUTF8)
|
187
|
+
@check_result.text = Qt::Application.translate("Generic_commands", "Show command result", nil, Qt::Application::UnicodeUTF8)
|
188
|
+
@btn_new_cmd.text = Qt::Application.translate("Generic_commands", "New Command", nil, Qt::Application::UnicodeUTF8)
|
189
|
+
@menuCommandes.title = Qt::Application.translate("Generic_commands", "Commandes...", nil, Qt::Application::UnicodeUTF8)
|
190
|
+
end # retranslateUi
|
191
|
+
|
192
|
+
def retranslate_ui(generic_commands)
|
193
|
+
retranslateUi(generic_commands)
|
194
|
+
end
|
195
|
+
|
196
|
+
end
|
197
|
+
|
198
|
+
module Ui
|
199
|
+
class Generic_commands < Ui_Generic_commands
|
200
|
+
end
|
201
|
+
end # module Ui
|
202
|
+
|