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,114 +1,114 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_uart_baudrate.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_Uart_baudrate
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :verticalLayout
|
13
|
-
attr_reader :lbl_tip
|
14
|
-
attr_reader :horizontalLayout
|
15
|
-
attr_reader :btn_start
|
16
|
-
attr_reader :btn_stop
|
17
|
-
attr_reader :lbl_baudrate
|
18
|
-
attr_reader :horizontalLayout_2
|
19
|
-
attr_reader :horizontalSpacer
|
20
|
-
attr_reader :pushButton
|
21
|
-
attr_reader :btn_close
|
22
|
-
|
23
|
-
def setupUi(uart_baudrate)
|
24
|
-
if uart_baudrate.objectName.nil?
|
25
|
-
uart_baudrate.objectName = "uart_baudrate"
|
26
|
-
end
|
27
|
-
uart_baudrate.resize(259, 114)
|
28
|
-
@gridLayout = Qt::GridLayout.new(uart_baudrate)
|
29
|
-
@gridLayout.objectName = "gridLayout"
|
30
|
-
@verticalLayout = Qt::VBoxLayout.new()
|
31
|
-
@verticalLayout.objectName = "verticalLayout"
|
32
|
-
@lbl_tip = Qt::Label.new(uart_baudrate)
|
33
|
-
@lbl_tip.objectName = "lbl_tip"
|
34
|
-
|
35
|
-
@verticalLayout.addWidget(@lbl_tip)
|
36
|
-
|
37
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
38
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
39
|
-
@btn_start = Qt::PushButton.new(uart_baudrate)
|
40
|
-
@btn_start.objectName = "btn_start"
|
41
|
-
|
42
|
-
@horizontalLayout.addWidget(@btn_start)
|
43
|
-
|
44
|
-
@btn_stop = Qt::PushButton.new(uart_baudrate)
|
45
|
-
@btn_stop.objectName = "btn_stop"
|
46
|
-
@btn_stop.enabled = false
|
47
|
-
|
48
|
-
@horizontalLayout.addWidget(@btn_stop)
|
49
|
-
|
50
|
-
|
51
|
-
@verticalLayout.addLayout(@horizontalLayout)
|
52
|
-
|
53
|
-
@lbl_baudrate = Qt::Label.new(uart_baudrate)
|
54
|
-
@lbl_baudrate.objectName = "lbl_baudrate"
|
55
|
-
|
56
|
-
@verticalLayout.addWidget(@lbl_baudrate)
|
57
|
-
|
58
|
-
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
59
|
-
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
60
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
61
|
-
|
62
|
-
@horizontalLayout_2.addItem(@horizontalSpacer)
|
63
|
-
|
64
|
-
@pushButton = Qt::PushButton.new(uart_baudrate)
|
65
|
-
@pushButton.objectName = "pushButton"
|
66
|
-
|
67
|
-
@horizontalLayout_2.addWidget(@pushButton)
|
68
|
-
|
69
|
-
@btn_close = Qt::PushButton.new(uart_baudrate)
|
70
|
-
@btn_close.objectName = "btn_close"
|
71
|
-
|
72
|
-
@horizontalLayout_2.addWidget(@btn_close)
|
73
|
-
|
74
|
-
|
75
|
-
@verticalLayout.addLayout(@horizontalLayout_2)
|
76
|
-
|
77
|
-
|
78
|
-
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
79
|
-
|
80
|
-
|
81
|
-
retranslateUi(uart_baudrate)
|
82
|
-
Qt::Object.connect(@btn_start, SIGNAL('clicked()'), uart_baudrate, SLOT('start_detect()'))
|
83
|
-
Qt::Object.connect(@btn_stop, SIGNAL('clicked()'), uart_baudrate, SLOT('stop_detect()'))
|
84
|
-
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), uart_baudrate, SLOT('close()'))
|
85
|
-
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_baudrate, SLOT('copy()'))
|
86
|
-
|
87
|
-
Qt::MetaObject.connectSlotsByName(uart_baudrate)
|
88
|
-
end # setupUi
|
89
|
-
|
90
|
-
def setup_ui(uart_baudrate)
|
91
|
-
setupUi(uart_baudrate)
|
92
|
-
end
|
93
|
-
|
94
|
-
def retranslateUi(uart_baudrate)
|
95
|
-
uart_baudrate.windowTitle = Qt::Application.translate("Uart_baudrate", "Hardsploit - Baudrate autodetect", nil, Qt::Application::UnicodeUTF8)
|
96
|
-
@lbl_tip.text = Qt::Application.translate("Uart_baudrate", "Push \"Start\", restart your target then click \"Stop\"", nil, Qt::Application::UnicodeUTF8)
|
97
|
-
@btn_start.text = Qt::Application.translate("Uart_baudrate", "Start", nil, Qt::Application::UnicodeUTF8)
|
98
|
-
@btn_stop.text = Qt::Application.translate("Uart_baudrate", "Stop", nil, Qt::Application::UnicodeUTF8)
|
99
|
-
@lbl_baudrate.text = Qt::Application.translate("Uart_baudrate", "Baud rate detected:", nil, Qt::Application::UnicodeUTF8)
|
100
|
-
@pushButton.text = Qt::Application.translate("Uart_baudrate", "Copy to settings", nil, Qt::Application::UnicodeUTF8)
|
101
|
-
@btn_close.text = Qt::Application.translate("Uart_baudrate", "Close", nil, Qt::Application::UnicodeUTF8)
|
102
|
-
end # retranslateUi
|
103
|
-
|
104
|
-
def retranslate_ui(uart_baudrate)
|
105
|
-
retranslateUi(uart_baudrate)
|
106
|
-
end
|
107
|
-
|
108
|
-
end
|
109
|
-
|
110
|
-
module Ui
|
111
|
-
class Uart_baudrate < Ui_Uart_baudrate
|
112
|
-
end
|
113
|
-
end # module Ui
|
114
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_uart_baudrate.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_Uart_baudrate
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :lbl_tip
|
14
|
+
attr_reader :horizontalLayout
|
15
|
+
attr_reader :btn_start
|
16
|
+
attr_reader :btn_stop
|
17
|
+
attr_reader :lbl_baudrate
|
18
|
+
attr_reader :horizontalLayout_2
|
19
|
+
attr_reader :horizontalSpacer
|
20
|
+
attr_reader :pushButton
|
21
|
+
attr_reader :btn_close
|
22
|
+
|
23
|
+
def setupUi(uart_baudrate)
|
24
|
+
if uart_baudrate.objectName.nil?
|
25
|
+
uart_baudrate.objectName = "uart_baudrate"
|
26
|
+
end
|
27
|
+
uart_baudrate.resize(259, 114)
|
28
|
+
@gridLayout = Qt::GridLayout.new(uart_baudrate)
|
29
|
+
@gridLayout.objectName = "gridLayout"
|
30
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
31
|
+
@verticalLayout.objectName = "verticalLayout"
|
32
|
+
@lbl_tip = Qt::Label.new(uart_baudrate)
|
33
|
+
@lbl_tip.objectName = "lbl_tip"
|
34
|
+
|
35
|
+
@verticalLayout.addWidget(@lbl_tip)
|
36
|
+
|
37
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
38
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
39
|
+
@btn_start = Qt::PushButton.new(uart_baudrate)
|
40
|
+
@btn_start.objectName = "btn_start"
|
41
|
+
|
42
|
+
@horizontalLayout.addWidget(@btn_start)
|
43
|
+
|
44
|
+
@btn_stop = Qt::PushButton.new(uart_baudrate)
|
45
|
+
@btn_stop.objectName = "btn_stop"
|
46
|
+
@btn_stop.enabled = false
|
47
|
+
|
48
|
+
@horizontalLayout.addWidget(@btn_stop)
|
49
|
+
|
50
|
+
|
51
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
52
|
+
|
53
|
+
@lbl_baudrate = Qt::Label.new(uart_baudrate)
|
54
|
+
@lbl_baudrate.objectName = "lbl_baudrate"
|
55
|
+
|
56
|
+
@verticalLayout.addWidget(@lbl_baudrate)
|
57
|
+
|
58
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
59
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
60
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
61
|
+
|
62
|
+
@horizontalLayout_2.addItem(@horizontalSpacer)
|
63
|
+
|
64
|
+
@pushButton = Qt::PushButton.new(uart_baudrate)
|
65
|
+
@pushButton.objectName = "pushButton"
|
66
|
+
|
67
|
+
@horizontalLayout_2.addWidget(@pushButton)
|
68
|
+
|
69
|
+
@btn_close = Qt::PushButton.new(uart_baudrate)
|
70
|
+
@btn_close.objectName = "btn_close"
|
71
|
+
|
72
|
+
@horizontalLayout_2.addWidget(@btn_close)
|
73
|
+
|
74
|
+
|
75
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
76
|
+
|
77
|
+
|
78
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
79
|
+
|
80
|
+
|
81
|
+
retranslateUi(uart_baudrate)
|
82
|
+
Qt::Object.connect(@btn_start, SIGNAL('clicked()'), uart_baudrate, SLOT('start_detect()'))
|
83
|
+
Qt::Object.connect(@btn_stop, SIGNAL('clicked()'), uart_baudrate, SLOT('stop_detect()'))
|
84
|
+
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), uart_baudrate, SLOT('close()'))
|
85
|
+
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_baudrate, SLOT('copy()'))
|
86
|
+
|
87
|
+
Qt::MetaObject.connectSlotsByName(uart_baudrate)
|
88
|
+
end # setupUi
|
89
|
+
|
90
|
+
def setup_ui(uart_baudrate)
|
91
|
+
setupUi(uart_baudrate)
|
92
|
+
end
|
93
|
+
|
94
|
+
def retranslateUi(uart_baudrate)
|
95
|
+
uart_baudrate.windowTitle = Qt::Application.translate("Uart_baudrate", "Hardsploit - Baudrate autodetect", nil, Qt::Application::UnicodeUTF8)
|
96
|
+
@lbl_tip.text = Qt::Application.translate("Uart_baudrate", "Push \"Start\", restart your target then click \"Stop\"", nil, Qt::Application::UnicodeUTF8)
|
97
|
+
@btn_start.text = Qt::Application.translate("Uart_baudrate", "Start", nil, Qt::Application::UnicodeUTF8)
|
98
|
+
@btn_stop.text = Qt::Application.translate("Uart_baudrate", "Stop", nil, Qt::Application::UnicodeUTF8)
|
99
|
+
@lbl_baudrate.text = Qt::Application.translate("Uart_baudrate", "Baud rate detected:", nil, Qt::Application::UnicodeUTF8)
|
100
|
+
@pushButton.text = Qt::Application.translate("Uart_baudrate", "Copy to settings", nil, Qt::Application::UnicodeUTF8)
|
101
|
+
@btn_close.text = Qt::Application.translate("Uart_baudrate", "Close", nil, Qt::Application::UnicodeUTF8)
|
102
|
+
end # retranslateUi
|
103
|
+
|
104
|
+
def retranslate_ui(uart_baudrate)
|
105
|
+
retranslateUi(uart_baudrate)
|
106
|
+
end
|
107
|
+
|
108
|
+
end
|
109
|
+
|
110
|
+
module Ui
|
111
|
+
class Uart_baudrate < Ui_Uart_baudrate
|
112
|
+
end
|
113
|
+
end # module Ui
|
114
|
+
|
data/lib/gui/gui_uart_console.rb
CHANGED
@@ -1,164 +1,164 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_uart_console.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_Uart_console
|
11
|
-
attr_reader :actionSend
|
12
|
-
attr_reader :gridLayout
|
13
|
-
attr_reader :verticalLayout
|
14
|
-
attr_reader :horizontalLayout_2
|
15
|
-
attr_reader :lbl_chip
|
16
|
-
attr_reader :label
|
17
|
-
attr_reader :btn_connect
|
18
|
-
attr_reader :btn_disconnect
|
19
|
-
attr_reader :pushButton
|
20
|
-
attr_reader :horizontalSpacer
|
21
|
-
attr_reader :btn_clear
|
22
|
-
attr_reader :console
|
23
|
-
attr_reader :horizontalLayout
|
24
|
-
attr_reader :lie_cmd
|
25
|
-
attr_reader :btn_send
|
26
|
-
|
27
|
-
def setupUi(uart_console)
|
28
|
-
if uart_console.objectName.nil?
|
29
|
-
uart_console.objectName = "uart_console"
|
30
|
-
end
|
31
|
-
uart_console.windowModality = Qt::WindowModal
|
32
|
-
uart_console.resize(710, 587)
|
33
|
-
@actionSend = Qt::Action.new(uart_console)
|
34
|
-
@actionSend.objectName = "actionSend"
|
35
|
-
@gridLayout = Qt::GridLayout.new(uart_console)
|
36
|
-
@gridLayout.objectName = "gridLayout"
|
37
|
-
@verticalLayout = Qt::VBoxLayout.new()
|
38
|
-
@verticalLayout.objectName = "verticalLayout"
|
39
|
-
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
40
|
-
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
41
|
-
@lbl_chip = Qt::Label.new(uart_console)
|
42
|
-
@lbl_chip.objectName = "lbl_chip"
|
43
|
-
|
44
|
-
@horizontalLayout_2.addWidget(@lbl_chip)
|
45
|
-
|
46
|
-
@label = Qt::Label.new(uart_console)
|
47
|
-
@label.objectName = "label"
|
48
|
-
|
49
|
-
@horizontalLayout_2.addWidget(@label)
|
50
|
-
|
51
|
-
@btn_connect = Qt::PushButton.new(uart_console)
|
52
|
-
@btn_connect.objectName = "btn_connect"
|
53
|
-
|
54
|
-
@horizontalLayout_2.addWidget(@btn_connect)
|
55
|
-
|
56
|
-
@btn_disconnect = Qt::PushButton.new(uart_console)
|
57
|
-
@btn_disconnect.objectName = "btn_disconnect"
|
58
|
-
@btn_disconnect.enabled = false
|
59
|
-
|
60
|
-
@horizontalLayout_2.addWidget(@btn_disconnect)
|
61
|
-
|
62
|
-
@pushButton = Qt::PushButton.new(uart_console)
|
63
|
-
@pushButton.objectName = "pushButton"
|
64
|
-
|
65
|
-
@horizontalLayout_2.addWidget(@pushButton)
|
66
|
-
|
67
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
68
|
-
|
69
|
-
@horizontalLayout_2.addItem(@horizontalSpacer)
|
70
|
-
|
71
|
-
@btn_clear = Qt::PushButton.new(uart_console)
|
72
|
-
@btn_clear.objectName = "btn_clear"
|
73
|
-
|
74
|
-
@horizontalLayout_2.addWidget(@btn_clear)
|
75
|
-
|
76
|
-
|
77
|
-
@verticalLayout.addLayout(@horizontalLayout_2)
|
78
|
-
|
79
|
-
@console = Qt::TextEdit.new(uart_console)
|
80
|
-
@console.objectName = "console"
|
81
|
-
@palette = Qt::Palette.new
|
82
|
-
brush = Qt::Brush.new(Qt::Color.new(170, 255, 0, 255))
|
83
|
-
brush.style = Qt::SolidPattern
|
84
|
-
@palette.setBrush(Qt::Palette::Active, Qt::Palette::Text, brush)
|
85
|
-
brush1 = Qt::Brush.new(Qt::Color.new(0, 0, 0, 255))
|
86
|
-
brush1.style = Qt::SolidPattern
|
87
|
-
@palette.setBrush(Qt::Palette::Active, Qt::Palette::Base, brush1)
|
88
|
-
@palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Text, brush)
|
89
|
-
@palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Base, brush1)
|
90
|
-
brush2 = Qt::Brush.new(Qt::Color.new(120, 120, 120, 255))
|
91
|
-
brush2.style = Qt::SolidPattern
|
92
|
-
@palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Text, brush2)
|
93
|
-
brush3 = Qt::Brush.new(Qt::Color.new(240, 240, 240, 255))
|
94
|
-
brush3.style = Qt::SolidPattern
|
95
|
-
@palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Base, brush3)
|
96
|
-
@console.palette = @palette
|
97
|
-
@font = Qt::Font.new
|
98
|
-
@font.family = "Small Fonts"
|
99
|
-
@font.bold = false
|
100
|
-
@font.weight = 50
|
101
|
-
@console.font = @font
|
102
|
-
@console.frameShape = Qt::Frame::StyledPanel
|
103
|
-
@console.frameShadow = Qt::Frame::Sunken
|
104
|
-
@console.readOnly = true
|
105
|
-
|
106
|
-
@verticalLayout.addWidget(@console)
|
107
|
-
|
108
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
109
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
110
|
-
@lie_cmd = Qt::LineEdit.new(uart_console)
|
111
|
-
@lie_cmd.objectName = "lie_cmd"
|
112
|
-
|
113
|
-
@horizontalLayout.addWidget(@lie_cmd)
|
114
|
-
|
115
|
-
@btn_send = Qt::PushButton.new(uart_console)
|
116
|
-
@btn_send.objectName = "btn_send"
|
117
|
-
|
118
|
-
@horizontalLayout.addWidget(@btn_send)
|
119
|
-
|
120
|
-
|
121
|
-
@verticalLayout.addLayout(@horizontalLayout)
|
122
|
-
|
123
|
-
|
124
|
-
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
125
|
-
|
126
|
-
|
127
|
-
retranslateUi(uart_console)
|
128
|
-
Qt::Object.connect(@btn_send, SIGNAL('clicked()'), uart_console, SLOT('send()'))
|
129
|
-
Qt::Object.connect(@btn_connect, SIGNAL('clicked()'), uart_console, SLOT('connect()'))
|
130
|
-
Qt::Object.connect(@btn_disconnect, SIGNAL('clicked()'), uart_console, SLOT('disconnect()'))
|
131
|
-
Qt::Object.connect(@btn_clear, SIGNAL('clicked()'), uart_console, SLOT('clear_console()'))
|
132
|
-
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_console, SLOT('open_settings()'))
|
133
|
-
|
134
|
-
Qt::MetaObject.connectSlotsByName(uart_console)
|
135
|
-
end # setupUi
|
136
|
-
|
137
|
-
def setup_ui(uart_console)
|
138
|
-
setupUi(uart_console)
|
139
|
-
end
|
140
|
-
|
141
|
-
def retranslateUi(uart_console)
|
142
|
-
uart_console.windowTitle = Qt::Application.translate("Uart_console", "Hardsploit - UART console", nil, Qt::Application::UnicodeUTF8)
|
143
|
-
@actionSend.text = Qt::Application.translate("Uart_console", "Send", nil, Qt::Application::UnicodeUTF8)
|
144
|
-
@actionSend.shortcut = Qt::Application.translate("Uart_console", "Return", nil, Qt::Application::UnicodeUTF8)
|
145
|
-
@lbl_chip.text = Qt::Application.translate("Uart_console", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
146
|
-
@label.text = Qt::Application.translate("Uart_console", "UART console", nil, Qt::Application::UnicodeUTF8)
|
147
|
-
@btn_connect.text = Qt::Application.translate("Uart_console", "Connect", nil, Qt::Application::UnicodeUTF8)
|
148
|
-
@btn_disconnect.text = Qt::Application.translate("Uart_console", "Disconnect", nil, Qt::Application::UnicodeUTF8)
|
149
|
-
@pushButton.text = Qt::Application.translate("Uart_console", "Settings", nil, Qt::Application::UnicodeUTF8)
|
150
|
-
@btn_clear.text = Qt::Application.translate("Uart_console", "Clear", nil, Qt::Application::UnicodeUTF8)
|
151
|
-
@btn_send.text = Qt::Application.translate("Uart_console", "Send", nil, Qt::Application::UnicodeUTF8)
|
152
|
-
end # retranslateUi
|
153
|
-
|
154
|
-
def retranslate_ui(uart_console)
|
155
|
-
retranslateUi(uart_console)
|
156
|
-
end
|
157
|
-
|
158
|
-
end
|
159
|
-
|
160
|
-
module Ui
|
161
|
-
class Uart_console < Ui_Uart_console
|
162
|
-
end
|
163
|
-
end # module Ui
|
164
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_uart_console.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:10 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_Uart_console
|
11
|
+
attr_reader :actionSend
|
12
|
+
attr_reader :gridLayout
|
13
|
+
attr_reader :verticalLayout
|
14
|
+
attr_reader :horizontalLayout_2
|
15
|
+
attr_reader :lbl_chip
|
16
|
+
attr_reader :label
|
17
|
+
attr_reader :btn_connect
|
18
|
+
attr_reader :btn_disconnect
|
19
|
+
attr_reader :pushButton
|
20
|
+
attr_reader :horizontalSpacer
|
21
|
+
attr_reader :btn_clear
|
22
|
+
attr_reader :console
|
23
|
+
attr_reader :horizontalLayout
|
24
|
+
attr_reader :lie_cmd
|
25
|
+
attr_reader :btn_send
|
26
|
+
|
27
|
+
def setupUi(uart_console)
|
28
|
+
if uart_console.objectName.nil?
|
29
|
+
uart_console.objectName = "uart_console"
|
30
|
+
end
|
31
|
+
uart_console.windowModality = Qt::WindowModal
|
32
|
+
uart_console.resize(710, 587)
|
33
|
+
@actionSend = Qt::Action.new(uart_console)
|
34
|
+
@actionSend.objectName = "actionSend"
|
35
|
+
@gridLayout = Qt::GridLayout.new(uart_console)
|
36
|
+
@gridLayout.objectName = "gridLayout"
|
37
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
38
|
+
@verticalLayout.objectName = "verticalLayout"
|
39
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
40
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
41
|
+
@lbl_chip = Qt::Label.new(uart_console)
|
42
|
+
@lbl_chip.objectName = "lbl_chip"
|
43
|
+
|
44
|
+
@horizontalLayout_2.addWidget(@lbl_chip)
|
45
|
+
|
46
|
+
@label = Qt::Label.new(uart_console)
|
47
|
+
@label.objectName = "label"
|
48
|
+
|
49
|
+
@horizontalLayout_2.addWidget(@label)
|
50
|
+
|
51
|
+
@btn_connect = Qt::PushButton.new(uart_console)
|
52
|
+
@btn_connect.objectName = "btn_connect"
|
53
|
+
|
54
|
+
@horizontalLayout_2.addWidget(@btn_connect)
|
55
|
+
|
56
|
+
@btn_disconnect = Qt::PushButton.new(uart_console)
|
57
|
+
@btn_disconnect.objectName = "btn_disconnect"
|
58
|
+
@btn_disconnect.enabled = false
|
59
|
+
|
60
|
+
@horizontalLayout_2.addWidget(@btn_disconnect)
|
61
|
+
|
62
|
+
@pushButton = Qt::PushButton.new(uart_console)
|
63
|
+
@pushButton.objectName = "pushButton"
|
64
|
+
|
65
|
+
@horizontalLayout_2.addWidget(@pushButton)
|
66
|
+
|
67
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
68
|
+
|
69
|
+
@horizontalLayout_2.addItem(@horizontalSpacer)
|
70
|
+
|
71
|
+
@btn_clear = Qt::PushButton.new(uart_console)
|
72
|
+
@btn_clear.objectName = "btn_clear"
|
73
|
+
|
74
|
+
@horizontalLayout_2.addWidget(@btn_clear)
|
75
|
+
|
76
|
+
|
77
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
78
|
+
|
79
|
+
@console = Qt::TextEdit.new(uart_console)
|
80
|
+
@console.objectName = "console"
|
81
|
+
@palette = Qt::Palette.new
|
82
|
+
brush = Qt::Brush.new(Qt::Color.new(170, 255, 0, 255))
|
83
|
+
brush.style = Qt::SolidPattern
|
84
|
+
@palette.setBrush(Qt::Palette::Active, Qt::Palette::Text, brush)
|
85
|
+
brush1 = Qt::Brush.new(Qt::Color.new(0, 0, 0, 255))
|
86
|
+
brush1.style = Qt::SolidPattern
|
87
|
+
@palette.setBrush(Qt::Palette::Active, Qt::Palette::Base, brush1)
|
88
|
+
@palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Text, brush)
|
89
|
+
@palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Base, brush1)
|
90
|
+
brush2 = Qt::Brush.new(Qt::Color.new(120, 120, 120, 255))
|
91
|
+
brush2.style = Qt::SolidPattern
|
92
|
+
@palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Text, brush2)
|
93
|
+
brush3 = Qt::Brush.new(Qt::Color.new(240, 240, 240, 255))
|
94
|
+
brush3.style = Qt::SolidPattern
|
95
|
+
@palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Base, brush3)
|
96
|
+
@console.palette = @palette
|
97
|
+
@font = Qt::Font.new
|
98
|
+
@font.family = "Small Fonts"
|
99
|
+
@font.bold = false
|
100
|
+
@font.weight = 50
|
101
|
+
@console.font = @font
|
102
|
+
@console.frameShape = Qt::Frame::StyledPanel
|
103
|
+
@console.frameShadow = Qt::Frame::Sunken
|
104
|
+
@console.readOnly = true
|
105
|
+
|
106
|
+
@verticalLayout.addWidget(@console)
|
107
|
+
|
108
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
109
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
110
|
+
@lie_cmd = Qt::LineEdit.new(uart_console)
|
111
|
+
@lie_cmd.objectName = "lie_cmd"
|
112
|
+
|
113
|
+
@horizontalLayout.addWidget(@lie_cmd)
|
114
|
+
|
115
|
+
@btn_send = Qt::PushButton.new(uart_console)
|
116
|
+
@btn_send.objectName = "btn_send"
|
117
|
+
|
118
|
+
@horizontalLayout.addWidget(@btn_send)
|
119
|
+
|
120
|
+
|
121
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
122
|
+
|
123
|
+
|
124
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
125
|
+
|
126
|
+
|
127
|
+
retranslateUi(uart_console)
|
128
|
+
Qt::Object.connect(@btn_send, SIGNAL('clicked()'), uart_console, SLOT('send()'))
|
129
|
+
Qt::Object.connect(@btn_connect, SIGNAL('clicked()'), uart_console, SLOT('connect()'))
|
130
|
+
Qt::Object.connect(@btn_disconnect, SIGNAL('clicked()'), uart_console, SLOT('disconnect()'))
|
131
|
+
Qt::Object.connect(@btn_clear, SIGNAL('clicked()'), uart_console, SLOT('clear_console()'))
|
132
|
+
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_console, SLOT('open_settings()'))
|
133
|
+
|
134
|
+
Qt::MetaObject.connectSlotsByName(uart_console)
|
135
|
+
end # setupUi
|
136
|
+
|
137
|
+
def setup_ui(uart_console)
|
138
|
+
setupUi(uart_console)
|
139
|
+
end
|
140
|
+
|
141
|
+
def retranslateUi(uart_console)
|
142
|
+
uart_console.windowTitle = Qt::Application.translate("Uart_console", "Hardsploit - UART console", nil, Qt::Application::UnicodeUTF8)
|
143
|
+
@actionSend.text = Qt::Application.translate("Uart_console", "Send", nil, Qt::Application::UnicodeUTF8)
|
144
|
+
@actionSend.shortcut = Qt::Application.translate("Uart_console", "Return", nil, Qt::Application::UnicodeUTF8)
|
145
|
+
@lbl_chip.text = Qt::Application.translate("Uart_console", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
146
|
+
@label.text = Qt::Application.translate("Uart_console", "UART console", nil, Qt::Application::UnicodeUTF8)
|
147
|
+
@btn_connect.text = Qt::Application.translate("Uart_console", "Connect", nil, Qt::Application::UnicodeUTF8)
|
148
|
+
@btn_disconnect.text = Qt::Application.translate("Uart_console", "Disconnect", nil, Qt::Application::UnicodeUTF8)
|
149
|
+
@pushButton.text = Qt::Application.translate("Uart_console", "Settings", nil, Qt::Application::UnicodeUTF8)
|
150
|
+
@btn_clear.text = Qt::Application.translate("Uart_console", "Clear", nil, Qt::Application::UnicodeUTF8)
|
151
|
+
@btn_send.text = Qt::Application.translate("Uart_console", "Send", nil, Qt::Application::UnicodeUTF8)
|
152
|
+
end # retranslateUi
|
153
|
+
|
154
|
+
def retranslate_ui(uart_console)
|
155
|
+
retranslateUi(uart_console)
|
156
|
+
end
|
157
|
+
|
158
|
+
end
|
159
|
+
|
160
|
+
module Ui
|
161
|
+
class Uart_console < Ui_Uart_console
|
162
|
+
end
|
163
|
+
end # module Ui
|
164
|
+
|