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
data/lib/gui/gui_i2c_command.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
** Form generated from reading ui file 'gui_i2c_command.ui'
|
3
3
|
**
|
4
|
-
** Created:
|
4
|
+
** Created: jeu. mai 26 15:30:17 2016
|
5
5
|
** by: Qt User Interface Compiler version 4.8.6
|
6
6
|
**
|
7
7
|
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
@@ -25,6 +25,7 @@ class Ui_I2c_command
|
|
25
25
|
if i2c_command.objectName.nil?
|
26
26
|
i2c_command.objectName = "i2c_command"
|
27
27
|
end
|
28
|
+
i2c_command.windowModality = Qt::ApplicationModal
|
28
29
|
i2c_command.resize(287, 103)
|
29
30
|
@gridLayout = Qt::GridLayout.new(i2c_command)
|
30
31
|
@gridLayout.objectName = "gridLayout"
|
data/lib/gui/gui_i2c_settings.rb
CHANGED
@@ -194,11 +194,11 @@ class Ui_I2c_settings
|
|
194
194
|
Qt::Application.translate("I2c_settings", "400", nil, Qt::Application::UnicodeUTF8),
|
195
195
|
Qt::Application.translate("I2c_settings", "1000", nil, Qt::Application::UnicodeUTF8)])
|
196
196
|
@lbl_full_size.text = Qt::Application.translate("I2c_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
197
|
-
@lie_total_size.placeholderText = Qt::Application.translate("I2c_settings", "in
|
197
|
+
@lie_total_size.placeholderText = Qt::Application.translate("I2c_settings", "in byte, to a maximum of 4Go", nil, Qt::Application::UnicodeUTF8)
|
198
198
|
@lbl_bus_scan.text = Qt::Application.translate("I2c_settings", "Bus scan:", nil, Qt::Application::UnicodeUTF8)
|
199
199
|
@btn_bus_scan.text = Qt::Application.translate("I2c_settings", "Launch", nil, Qt::Application::UnicodeUTF8)
|
200
200
|
@lie_page_size.text = ''
|
201
|
-
@lie_page_size.placeholderText = Qt::Application.translate("I2c_settings", "in
|
201
|
+
@lie_page_size.placeholderText = Qt::Application.translate("I2c_settings", "in byte", nil, Qt::Application::UnicodeUTF8)
|
202
202
|
@lbl_page_size.text = Qt::Application.translate("I2c_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
|
203
203
|
@lbl_write_page_latency.text = Qt::Application.translate("I2c_settings", "Write page latency:", nil, Qt::Application::UnicodeUTF8)
|
204
204
|
@lie_write_page_latency.placeholderText = Qt::Application.translate("I2c_settings", "in miliseconds", nil, Qt::Application::UnicodeUTF8)
|
@@ -0,0 +1,131 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_import.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. févr. 17 15:04:39 2016
|
5
|
+
** by: Qt User Interface Compiler version 4.8.6
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Import
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :lbl_import
|
14
|
+
attr_reader :horizontalLayout_3
|
15
|
+
attr_reader :rbn_comp
|
16
|
+
attr_reader :rbn_cmds
|
17
|
+
attr_reader :rbn_both
|
18
|
+
attr_reader :horizontalLayout_2
|
19
|
+
attr_reader :btn_file
|
20
|
+
attr_reader :horizontalSpacer_2
|
21
|
+
attr_reader :horizontalLayout
|
22
|
+
attr_reader :horizontalSpacer
|
23
|
+
attr_reader :btn_cancel
|
24
|
+
attr_reader :btn_import
|
25
|
+
|
26
|
+
def setupUi(import)
|
27
|
+
if import.objectName.nil?
|
28
|
+
import.objectName = "import"
|
29
|
+
end
|
30
|
+
import.resize(304, 120)
|
31
|
+
@gridLayout = Qt::GridLayout.new(import)
|
32
|
+
@gridLayout.objectName = "gridLayout"
|
33
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
34
|
+
@verticalLayout.objectName = "verticalLayout"
|
35
|
+
@lbl_import = Qt::Label.new(import)
|
36
|
+
@lbl_import.objectName = "lbl_import"
|
37
|
+
|
38
|
+
@verticalLayout.addWidget(@lbl_import)
|
39
|
+
|
40
|
+
@horizontalLayout_3 = Qt::HBoxLayout.new()
|
41
|
+
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
42
|
+
@rbn_comp = Qt::RadioButton.new(import)
|
43
|
+
@rbn_comp.objectName = "rbn_comp"
|
44
|
+
@rbn_comp.checked = true
|
45
|
+
|
46
|
+
@horizontalLayout_3.addWidget(@rbn_comp)
|
47
|
+
|
48
|
+
@rbn_cmds = Qt::RadioButton.new(import)
|
49
|
+
@rbn_cmds.objectName = "rbn_cmds"
|
50
|
+
|
51
|
+
@horizontalLayout_3.addWidget(@rbn_cmds)
|
52
|
+
|
53
|
+
@rbn_both = Qt::RadioButton.new(import)
|
54
|
+
@rbn_both.objectName = "rbn_both"
|
55
|
+
|
56
|
+
@horizontalLayout_3.addWidget(@rbn_both)
|
57
|
+
|
58
|
+
|
59
|
+
@verticalLayout.addLayout(@horizontalLayout_3)
|
60
|
+
|
61
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
62
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
63
|
+
@btn_file = Qt::PushButton.new(import)
|
64
|
+
@btn_file.objectName = "btn_file"
|
65
|
+
|
66
|
+
@horizontalLayout_2.addWidget(@btn_file)
|
67
|
+
|
68
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
69
|
+
|
70
|
+
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
71
|
+
|
72
|
+
|
73
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
74
|
+
|
75
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
76
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
77
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
78
|
+
|
79
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
80
|
+
|
81
|
+
@btn_cancel = Qt::PushButton.new(import)
|
82
|
+
@btn_cancel.objectName = "btn_cancel"
|
83
|
+
|
84
|
+
@horizontalLayout.addWidget(@btn_cancel)
|
85
|
+
|
86
|
+
@btn_import = Qt::PushButton.new(import)
|
87
|
+
@btn_import.objectName = "btn_import"
|
88
|
+
|
89
|
+
@horizontalLayout.addWidget(@btn_import)
|
90
|
+
|
91
|
+
|
92
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
93
|
+
|
94
|
+
|
95
|
+
@gridLayout.addLayout(@verticalLayout, 1, 0, 1, 1)
|
96
|
+
|
97
|
+
|
98
|
+
retranslateUi(import)
|
99
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), import, SLOT('close()'))
|
100
|
+
Qt::Object.connect(@btn_import, SIGNAL('clicked()'), import, SLOT('import()'))
|
101
|
+
Qt::Object.connect(@btn_file, SIGNAL('clicked()'), import, SLOT('import_file()'))
|
102
|
+
|
103
|
+
Qt::MetaObject.connectSlotsByName(import)
|
104
|
+
end # setupUi
|
105
|
+
|
106
|
+
def setup_ui(import)
|
107
|
+
setupUi(import)
|
108
|
+
end
|
109
|
+
|
110
|
+
def retranslateUi(import)
|
111
|
+
import.windowTitle = Qt::Application.translate("Import", "Import", nil, Qt::Application::UnicodeUTF8)
|
112
|
+
@lbl_import.text = Qt::Application.translate("Import", "Importing:", nil, Qt::Application::UnicodeUTF8)
|
113
|
+
@rbn_comp.text = Qt::Application.translate("Import", "Component", nil, Qt::Application::UnicodeUTF8)
|
114
|
+
@rbn_cmds.text = Qt::Application.translate("Import", "Commands", nil, Qt::Application::UnicodeUTF8)
|
115
|
+
@rbn_both.text = Qt::Application.translate("Import", "Both", nil, Qt::Application::UnicodeUTF8)
|
116
|
+
@btn_file.text = Qt::Application.translate("Import", "File...", nil, Qt::Application::UnicodeUTF8)
|
117
|
+
@btn_cancel.text = Qt::Application.translate("Import", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
118
|
+
@btn_import.text = Qt::Application.translate("Import", "Import", nil, Qt::Application::UnicodeUTF8)
|
119
|
+
end # retranslateUi
|
120
|
+
|
121
|
+
def retranslate_ui(import)
|
122
|
+
retranslateUi(import)
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
module Ui
|
128
|
+
class Import < Ui_Import
|
129
|
+
end
|
130
|
+
end # module Ui
|
131
|
+
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
** Form generated from reading ui file 'gui_parallel_settings.ui'
|
3
3
|
**
|
4
|
-
** Created:
|
4
|
+
** Created: ven. avr. 29 14:38:25 2016
|
5
5
|
** by: Qt User Interface Compiler version 4.8.6
|
6
6
|
**
|
7
7
|
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
@@ -104,6 +104,7 @@ class Ui_Parallel_settings
|
|
104
104
|
@rbn_8b = Qt::RadioButton.new(@groupBox)
|
105
105
|
@rbn_8b.objectName = "rbn_8b"
|
106
106
|
@rbn_8b.geometry = Qt::Rect.new(0, 0, 71, 20)
|
107
|
+
@rbn_8b.checked = true
|
107
108
|
@rbn_16b = Qt::RadioButton.new(@groupBox)
|
108
109
|
@rbn_16b.objectName = "rbn_16b"
|
109
110
|
@rbn_16b.geometry = Qt::Rect.new(80, 0, 81, 21)
|
data/lib/gui/gui_progress_bar.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
** Form generated from reading ui file 'gui_progress_bar.ui'
|
3
3
|
**
|
4
|
-
** Created: mar.
|
4
|
+
** Created: mar. juil. 12 16:05:25 2016
|
5
5
|
** by: Qt User Interface Compiler version 4.8.6
|
6
6
|
**
|
7
7
|
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
@@ -20,6 +20,7 @@ class Ui_Progress_bar
|
|
20
20
|
if progress_bar.objectName.nil?
|
21
21
|
progress_bar.objectName = "progress_bar"
|
22
22
|
end
|
23
|
+
progress_bar.windowModality = Qt::ApplicationModal
|
23
24
|
progress_bar.resize(358, 90)
|
24
25
|
@gridLayout = Qt::GridLayout.new(progress_bar)
|
25
26
|
@gridLayout.objectName = "gridLayout"
|
@@ -0,0 +1,121 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_signal_mapper.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. juil. 20 11:26:24 2016
|
5
|
+
** by: Qt User Interface Compiler version 4.8.6
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Signal_mapper
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :vl
|
13
|
+
attr_reader :hl
|
14
|
+
attr_reader :lbl_bus
|
15
|
+
attr_reader :cbx_bus
|
16
|
+
attr_reader :hs
|
17
|
+
attr_reader :map_table
|
18
|
+
attr_reader :hl2
|
19
|
+
attr_reader :hs2
|
20
|
+
attr_reader :btn_cancel
|
21
|
+
attr_reader :btn_save
|
22
|
+
|
23
|
+
def setupUi(signal_mapper)
|
24
|
+
if signal_mapper.objectName.nil?
|
25
|
+
signal_mapper.objectName = "signal_mapper"
|
26
|
+
end
|
27
|
+
signal_mapper.resize(268, 411)
|
28
|
+
@gridLayout = Qt::GridLayout.new(signal_mapper)
|
29
|
+
@gridLayout.objectName = "gridLayout"
|
30
|
+
@vl = Qt::VBoxLayout.new()
|
31
|
+
@vl.objectName = "vl"
|
32
|
+
@hl = Qt::HBoxLayout.new()
|
33
|
+
@hl.objectName = "hl"
|
34
|
+
@lbl_bus = Qt::Label.new(signal_mapper)
|
35
|
+
@lbl_bus.objectName = "lbl_bus"
|
36
|
+
|
37
|
+
@hl.addWidget(@lbl_bus)
|
38
|
+
|
39
|
+
@cbx_bus = Qt::ComboBox.new(signal_mapper)
|
40
|
+
@cbx_bus.objectName = "cbx_bus"
|
41
|
+
|
42
|
+
@hl.addWidget(@cbx_bus)
|
43
|
+
|
44
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
45
|
+
|
46
|
+
@hl.addItem(@hs)
|
47
|
+
|
48
|
+
|
49
|
+
@vl.addLayout(@hl)
|
50
|
+
|
51
|
+
@map_table = Qt::TableWidget.new(signal_mapper)
|
52
|
+
@map_table.objectName = "map_table"
|
53
|
+
|
54
|
+
@vl.addWidget(@map_table)
|
55
|
+
|
56
|
+
@hl2 = Qt::HBoxLayout.new()
|
57
|
+
@hl2.objectName = "hl2"
|
58
|
+
@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
59
|
+
|
60
|
+
@hl2.addItem(@hs2)
|
61
|
+
|
62
|
+
@btn_cancel = Qt::PushButton.new(signal_mapper)
|
63
|
+
@btn_cancel.objectName = "btn_cancel"
|
64
|
+
|
65
|
+
@hl2.addWidget(@btn_cancel)
|
66
|
+
|
67
|
+
@btn_save = Qt::PushButton.new(signal_mapper)
|
68
|
+
@btn_save.objectName = "btn_save"
|
69
|
+
|
70
|
+
@hl2.addWidget(@btn_save)
|
71
|
+
|
72
|
+
|
73
|
+
@vl.addLayout(@hl2)
|
74
|
+
|
75
|
+
|
76
|
+
@gridLayout.addLayout(@vl, 0, 0, 1, 1)
|
77
|
+
|
78
|
+
|
79
|
+
retranslateUi(signal_mapper)
|
80
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), signal_mapper, SLOT('close()'))
|
81
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), signal_mapper, SLOT('save_signal_mapping()'))
|
82
|
+
Qt::Object.connect(@cbx_bus, SIGNAL('currentIndexChanged(QString)'), signal_mapper, SLOT('update_map_table(QString)'))
|
83
|
+
Qt::Object.connect(@map_table, SIGNAL('itemChanged(QTableWidgetItem*)'), signal_mapper, SLOT('check_mapping_value(QTableWidgetItem*)'))
|
84
|
+
|
85
|
+
Qt::MetaObject.connectSlotsByName(signal_mapper)
|
86
|
+
end # setupUi
|
87
|
+
|
88
|
+
def setup_ui(signal_mapper)
|
89
|
+
setupUi(signal_mapper)
|
90
|
+
end
|
91
|
+
|
92
|
+
def retranslateUi(signal_mapper)
|
93
|
+
signal_mapper.windowTitle = Qt::Application.translate("Signal_mapper", "Signal mapper", nil, Qt::Application::UnicodeUTF8)
|
94
|
+
@lbl_bus.text = Qt::Application.translate("Signal_mapper", "Select a bus", nil, Qt::Application::UnicodeUTF8)
|
95
|
+
@cbx_bus.insertItems(0, [Qt::Application.translate("Signal_mapper", "Bus...", nil, Qt::Application::UnicodeUTF8)])
|
96
|
+
if @map_table.columnCount < 2
|
97
|
+
@map_table.columnCount = 2
|
98
|
+
end
|
99
|
+
|
100
|
+
__colItem = Qt::TableWidgetItem.new
|
101
|
+
__colItem.setText(Qt::Application.translate("Signal_mapper", "Signal Name", nil, Qt::Application::UnicodeUTF8))
|
102
|
+
@map_table.setHorizontalHeaderItem(0, __colItem)
|
103
|
+
|
104
|
+
__colItem1 = Qt::TableWidgetItem.new
|
105
|
+
__colItem1.setText(Qt::Application.translate("Signal_mapper", "Associated Pin", nil, Qt::Application::UnicodeUTF8))
|
106
|
+
@map_table.setHorizontalHeaderItem(1, __colItem1)
|
107
|
+
@btn_cancel.text = Qt::Application.translate("Signal_mapper", "Close", nil, Qt::Application::UnicodeUTF8)
|
108
|
+
@btn_save.text = Qt::Application.translate("Signal_mapper", "Save", nil, Qt::Application::UnicodeUTF8)
|
109
|
+
end # retranslateUi
|
110
|
+
|
111
|
+
def retranslate_ui(signal_mapper)
|
112
|
+
retranslateUi(signal_mapper)
|
113
|
+
end
|
114
|
+
|
115
|
+
end
|
116
|
+
|
117
|
+
module Ui
|
118
|
+
class Signal_mapper < Ui_Signal_mapper
|
119
|
+
end
|
120
|
+
end # module Ui
|
121
|
+
|
@@ -0,0 +1,146 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_signal_scanner.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. juil. 27 09:23:50 2016
|
5
|
+
** by: Qt User Interface Compiler version 4.8.6
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Signal_scanner
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :horizontalLayout_2
|
14
|
+
attr_reader :lbl_nbr_pin
|
15
|
+
attr_reader :cbx_start
|
16
|
+
attr_reader :label
|
17
|
+
attr_reader :cbx_stop
|
18
|
+
attr_reader :tbl_result
|
19
|
+
attr_reader :horizontalLayout
|
20
|
+
attr_reader :btn_scan
|
21
|
+
attr_reader :btn_autowiring
|
22
|
+
attr_reader :btn_close
|
23
|
+
|
24
|
+
def setupUi(signal_scanner)
|
25
|
+
if signal_scanner.objectName.nil?
|
26
|
+
signal_scanner.objectName = "signal_scanner"
|
27
|
+
end
|
28
|
+
signal_scanner.windowModality = Qt::ApplicationModal
|
29
|
+
signal_scanner.resize(259, 368)
|
30
|
+
@gridLayout = Qt::GridLayout.new(signal_scanner)
|
31
|
+
@gridLayout.objectName = "gridLayout"
|
32
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
33
|
+
@verticalLayout.objectName = "verticalLayout"
|
34
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
35
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
36
|
+
@lbl_nbr_pin = Qt::Label.new(signal_scanner)
|
37
|
+
@lbl_nbr_pin.objectName = "lbl_nbr_pin"
|
38
|
+
|
39
|
+
@horizontalLayout_2.addWidget(@lbl_nbr_pin)
|
40
|
+
|
41
|
+
@cbx_start = Qt::ComboBox.new(signal_scanner)
|
42
|
+
@cbx_start.objectName = "cbx_start"
|
43
|
+
@cbx_start.minimumSize = Qt::Size.new(50, 0)
|
44
|
+
@cbx_start.maximumSize = Qt::Size.new(50, 16777215)
|
45
|
+
|
46
|
+
@horizontalLayout_2.addWidget(@cbx_start)
|
47
|
+
|
48
|
+
@label = Qt::Label.new(signal_scanner)
|
49
|
+
@label.objectName = "label"
|
50
|
+
@label.minimumSize = Qt::Size.new(20, 0)
|
51
|
+
@label.maximumSize = Qt::Size.new(20, 16777215)
|
52
|
+
@label.alignment = Qt::AlignCenter
|
53
|
+
|
54
|
+
@horizontalLayout_2.addWidget(@label)
|
55
|
+
|
56
|
+
@cbx_stop = Qt::ComboBox.new(signal_scanner)
|
57
|
+
@cbx_stop.objectName = "cbx_stop"
|
58
|
+
@cbx_stop.minimumSize = Qt::Size.new(50, 0)
|
59
|
+
@cbx_stop.maximumSize = Qt::Size.new(50, 16777215)
|
60
|
+
|
61
|
+
@horizontalLayout_2.addWidget(@cbx_stop)
|
62
|
+
|
63
|
+
|
64
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
65
|
+
|
66
|
+
@tbl_result = Qt::TableWidget.new(signal_scanner)
|
67
|
+
@tbl_result.objectName = "tbl_result"
|
68
|
+
|
69
|
+
@verticalLayout.addWidget(@tbl_result)
|
70
|
+
|
71
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
72
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
73
|
+
@btn_scan = Qt::PushButton.new(signal_scanner)
|
74
|
+
@btn_scan.objectName = "btn_scan"
|
75
|
+
|
76
|
+
@horizontalLayout.addWidget(@btn_scan)
|
77
|
+
|
78
|
+
@btn_autowiring = Qt::PushButton.new(signal_scanner)
|
79
|
+
@btn_autowiring.objectName = "btn_autowiring"
|
80
|
+
|
81
|
+
@horizontalLayout.addWidget(@btn_autowiring)
|
82
|
+
|
83
|
+
@btn_close = Qt::PushButton.new(signal_scanner)
|
84
|
+
@btn_close.objectName = "btn_close"
|
85
|
+
|
86
|
+
@horizontalLayout.addWidget(@btn_close)
|
87
|
+
|
88
|
+
|
89
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
90
|
+
|
91
|
+
|
92
|
+
@gridLayout.addLayout(@verticalLayout, 1, 0, 1, 1)
|
93
|
+
|
94
|
+
|
95
|
+
retranslateUi(signal_scanner)
|
96
|
+
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), signal_scanner, SLOT('close()'))
|
97
|
+
Qt::Object.connect(@btn_scan, SIGNAL('clicked()'), signal_scanner, SLOT('scan()'))
|
98
|
+
Qt::Object.connect(@btn_autowiring, SIGNAL('clicked()'), signal_scanner, SLOT('autowiring()'))
|
99
|
+
Qt::Object.connect(@cbx_start, SIGNAL('currentIndexChanged(QString)'), signal_scanner, SLOT('update_cbx(QString)'))
|
100
|
+
Qt::Object.connect(@cbx_stop, SIGNAL('currentIndexChanged(QString)'), signal_scanner, SLOT('update_tbl(QString)'))
|
101
|
+
|
102
|
+
Qt::MetaObject.connectSlotsByName(signal_scanner)
|
103
|
+
end # setupUi
|
104
|
+
|
105
|
+
def setup_ui(signal_scanner)
|
106
|
+
setupUi(signal_scanner)
|
107
|
+
end
|
108
|
+
|
109
|
+
def retranslateUi(signal_scanner)
|
110
|
+
signal_scanner.windowTitle = Qt::Application.translate("Signal_scanner", "Hardsploit - Scanner", nil, Qt::Application::UnicodeUTF8)
|
111
|
+
@lbl_nbr_pin.text = Qt::Application.translate("Signal_scanner", "Pin used:", nil, Qt::Application::UnicodeUTF8)
|
112
|
+
@cbx_start.insertItems(0, [Qt::Application.translate("Signal_scanner", "B0", nil, Qt::Application::UnicodeUTF8),
|
113
|
+
Qt::Application.translate("Signal_scanner", "B1", nil, Qt::Application::UnicodeUTF8),
|
114
|
+
Qt::Application.translate("Signal_scanner", "B2", nil, Qt::Application::UnicodeUTF8),
|
115
|
+
Qt::Application.translate("Signal_scanner", "B3", nil, Qt::Application::UnicodeUTF8),
|
116
|
+
Qt::Application.translate("Signal_scanner", "B4", nil, Qt::Application::UnicodeUTF8),
|
117
|
+
Qt::Application.translate("Signal_scanner", "B5", nil, Qt::Application::UnicodeUTF8),
|
118
|
+
Qt::Application.translate("Signal_scanner", "B6", nil, Qt::Application::UnicodeUTF8)])
|
119
|
+
@label.text = Qt::Application.translate("Signal_scanner", "to", nil, Qt::Application::UnicodeUTF8)
|
120
|
+
if @tbl_result.columnCount < 2
|
121
|
+
@tbl_result.columnCount = 2
|
122
|
+
end
|
123
|
+
|
124
|
+
__colItem = Qt::TableWidgetItem.new
|
125
|
+
__colItem.setText(Qt::Application.translate("Signal_scanner", "Hardsploit PIN", nil, Qt::Application::UnicodeUTF8))
|
126
|
+
@tbl_result.setHorizontalHeaderItem(0, __colItem)
|
127
|
+
|
128
|
+
__colItem1 = Qt::TableWidgetItem.new
|
129
|
+
__colItem1.setText(Qt::Application.translate("Signal_scanner", "Signal found", nil, Qt::Application::UnicodeUTF8))
|
130
|
+
@tbl_result.setHorizontalHeaderItem(1, __colItem1)
|
131
|
+
@btn_scan.text = Qt::Application.translate("Signal_scanner", "Scan", nil, Qt::Application::UnicodeUTF8)
|
132
|
+
@btn_autowiring.text = Qt::Application.translate("Signal_scanner", "Autowiring", nil, Qt::Application::UnicodeUTF8)
|
133
|
+
@btn_close.text = Qt::Application.translate("Signal_scanner", "Close", nil, Qt::Application::UnicodeUTF8)
|
134
|
+
end # retranslateUi
|
135
|
+
|
136
|
+
def retranslate_ui(signal_scanner)
|
137
|
+
retranslateUi(signal_scanner)
|
138
|
+
end
|
139
|
+
|
140
|
+
end
|
141
|
+
|
142
|
+
module Ui
|
143
|
+
class Signal_scanner < Ui_Signal_scanner
|
144
|
+
end
|
145
|
+
end # module Ui
|
146
|
+
|