hardsploit_gui 2.2 → 2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/bin/hardsploit_gui +2 -2
  3. data/lib/{Firmware → Firmwares}/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
  4. 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
  5. data/lib/Firmwares/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
  6. 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
  7. data/lib/Firmwares/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
  8. data/lib/{Firmware → Firmwares}/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
  9. data/lib/Firmwares/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
  10. data/lib/{Firmware → Firmwares}/FPGA/VersionFPGA.rb +1 -1
  11. data/lib/{Firmware → Firmwares}/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
  12. data/lib/{Firmware → Firmwares}/UC/VersionUC.rb +1 -1
  13. data/lib/HardsploitAPI/Core/HardsploitAPI.rb +210 -0
  14. data/lib/HardsploitAPI/Core/HardsploitAPI_CONSTANT.rb +150 -0
  15. data/lib/HardsploitAPI/Core/HardsploitAPI_ERROR.rb +109 -0
  16. data/lib/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb +305 -0
  17. data/lib/HardsploitAPI/{HardsploitAPI_PROGRESS.rb → Core/HardsploitAPI_PROGRESS.rb} +0 -0
  18. data/lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb +166 -0
  19. data/lib/HardsploitAPI/Modules/I2C/HardsploitAPI_I2C.rb +356 -0
  20. data/lib/HardsploitAPI/{HardsploitAPI_NO_MUX_PARALLELE_MEMORY.rb → Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb} +26 -49
  21. data/lib/HardsploitAPI/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +306 -0
  22. data/lib/HardsploitAPI/Modules/SPI/HardsploitAPI_SPI.rb +340 -0
  23. data/lib/HardsploitAPI/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +83 -0
  24. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD.rb +367 -0
  25. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +89 -0
  26. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +61 -0
  27. data/lib/HardsploitAPI/{SWD → Modules/SWD}/HardsploitAPI_SWD_STM32.rb +32 -15
  28. data/lib/HardsploitAPI/{HardsploitAPI_TEST_INTERACT.rb → Modules/TEST/HardsploitAPI_TEST_INTERACT.rb} +1 -1
  29. data/lib/HardsploitAPI/Modules/UART/HardsploitAPI_UART.rb +196 -0
  30. data/lib/Hardsploit_gui.rb +96 -0
  31. data/lib/class/Chip_editor.rb +186 -330
  32. data/lib/class/Chip_management.rb +496 -0
  33. data/lib/class/Command_editor.rb +130 -182
  34. data/lib/class/Command_table.rb +16 -22
  35. data/lib/class/Console.rb +0 -2
  36. data/lib/class/ErrorMsg.rb +312 -0
  37. data/lib/class/Export.rb +140 -0
  38. data/lib/class/Export_manager.rb +43 -43
  39. data/lib/class/Firmware.rb +52 -11
  40. data/lib/class/Generic_commands.rb +180 -190
  41. data/lib/class/Import.rb +193 -0
  42. data/lib/class/Progress_bar.rb +1 -0
  43. data/lib/class/Signal_mapper.rb +120 -0
  44. data/lib/class/Wire_helper.rb +132 -148
  45. data/lib/class/{I2C → i2c}/I2c_command.rb +16 -13
  46. data/lib/class/i2c/I2c_export.rb +95 -0
  47. data/lib/class/i2c/I2c_import.rb +117 -0
  48. data/lib/class/i2c/I2c_scanner.rb +114 -0
  49. data/lib/class/i2c/I2c_settings.rb +148 -0
  50. data/lib/class/parallel/Parallel_export.rb +118 -0
  51. data/lib/class/parallel/Parallel_import.rb +113 -0
  52. data/lib/class/parallel/Parallel_settings.rb +81 -0
  53. data/lib/class/spi/Spi_export.rb +108 -0
  54. data/lib/class/spi/Spi_import.rb +159 -0
  55. data/lib/class/spi/Spi_settings.rb +108 -0
  56. data/lib/class/spi/Spi_sniffer.rb +101 -0
  57. data/lib/class/swd/Swd.rb +125 -0
  58. data/lib/class/swd/Swd_scanner.rb +121 -0
  59. data/lib/class/swd/Swd_settings.rb +76 -0
  60. data/lib/class/uart/Uart_baudrate.rb +62 -0
  61. data/lib/class/uart/Uart_console.rb +115 -0
  62. data/lib/class/uart/Uart_settings.rb +102 -0
  63. data/lib/db/associations.rb +42 -29
  64. data/lib/db/database.rb +4 -0
  65. data/lib/db/development.sqlite3 +0 -0
  66. data/lib/db/migrate/004_create_manufacturers.rb +13 -0
  67. data/lib/db/migrate/005_create_packages.rb +13 -0
  68. data/lib/db/migrate/006_create_chip_types.rb +11 -0
  69. data/lib/db/migrate/007_create_buses.rb +11 -0
  70. data/lib/db/migrate/008_create_signals.rb +14 -0
  71. data/lib/db/migrate/009_create_chips.rb +25 -0
  72. data/lib/db/migrate/010_create_commands.rb +21 -0
  73. data/lib/db/migrate/011_create_bytes.rb +19 -0
  74. data/lib/db/migrate/012_create_i2c_settings.rb +21 -0
  75. data/lib/db/migrate/013_create_spi_settings.rb +26 -0
  76. data/lib/db/migrate/014_create_parallel_settings.rb +21 -0
  77. data/lib/db/migrate/015_create_pins.rb +19 -0
  78. data/lib/db/migrate/016_create_uses.rb +17 -0
  79. data/lib/db/migrate/017_create_swd_settings.rb +19 -0
  80. data/lib/db/migrate/018_create_uart_settings.rb +22 -0
  81. data/lib/db/schema.rb +157 -0
  82. data/lib/db/seeds.rb +161 -0
  83. data/lib/gui/gui_chip_editor.rb +23 -22
  84. data/lib/gui/gui_chip_management.rb +43 -38
  85. data/lib/gui/gui_command_editor.rb +2 -1
  86. data/lib/gui/gui_export.rb +132 -0
  87. data/lib/gui/gui_generic_commands.rb +69 -31
  88. data/lib/gui/gui_generic_export.rb +18 -2
  89. data/lib/gui/gui_generic_import.rb +18 -2
  90. data/lib/gui/gui_i2c_command.rb +2 -1
  91. data/lib/gui/gui_i2c_settings.rb +2 -2
  92. data/lib/gui/gui_import.rb +131 -0
  93. data/lib/gui/gui_parallel_settings.rb +2 -1
  94. data/lib/gui/gui_progress_bar.rb +2 -1
  95. data/lib/gui/gui_signal_mapper.rb +121 -0
  96. data/lib/gui/gui_signal_scanner.rb +146 -0
  97. data/lib/gui/gui_spi_settings.rb +6 -2
  98. data/lib/gui/gui_spi_sniffer.rb +112 -0
  99. data/lib/gui/gui_swd_settings.rb +166 -0
  100. data/lib/gui/gui_uart_baudrate.rb +114 -0
  101. data/lib/gui/gui_uart_console.rb +164 -0
  102. data/lib/gui/gui_uart_settings.rb +243 -0
  103. data/lib/gui_designer/gui_chip_editor.ui +9 -6
  104. data/lib/gui_designer/gui_chip_management.ui +79 -35
  105. data/lib/gui_designer/gui_command_editor.ui +3 -0
  106. data/lib/gui_designer/gui_export.ui +171 -0
  107. data/lib/gui_designer/gui_generic_commands.ui +274 -190
  108. data/lib/gui_designer/gui_generic_export.ui +24 -1
  109. data/lib/gui_designer/gui_generic_import.ui +25 -2
  110. data/lib/gui_designer/gui_i2c_command.ui +3 -0
  111. data/lib/gui_designer/gui_i2c_settings.ui +2 -2
  112. data/lib/gui_designer/gui_import.ui +168 -0
  113. data/lib/gui_designer/gui_parallel_settings.ui +4 -1
  114. data/lib/gui_designer/gui_progress_bar.ui +3 -0
  115. data/lib/gui_designer/gui_signal_mapper.ui +179 -0
  116. data/lib/gui_designer/gui_signal_scanner.ui +261 -0
  117. data/lib/gui_designer/gui_spi_settings.ui +15 -2
  118. data/lib/gui_designer/gui_spi_sniffer.ui +156 -0
  119. data/lib/gui_designer/gui_swd_settings.ui +189 -0
  120. data/lib/gui_designer/gui_uart_baudrate.ui +161 -0
  121. data/lib/gui_designer/gui_uart_console.ui +284 -0
  122. data/lib/gui_designer/gui_uart_settings.ui +280 -0
  123. data/lib/logs/error.log +63 -0
  124. data/lib/models/bus.rb +19 -0
  125. data/lib/models/byte.rb +29 -0
  126. data/lib/models/chip.rb +41 -0
  127. data/lib/models/chip_type.rb +14 -0
  128. data/lib/models/command.rb +20 -0
  129. data/lib/models/i2c_setting.rb +41 -0
  130. data/lib/models/manufacturer.rb +14 -0
  131. data/lib/models/package.rb +26 -0
  132. data/lib/models/parallel_setting.rb +37 -0
  133. data/lib/models/pin.rb +14 -0
  134. data/lib/models/signall.rb +20 -0
  135. data/lib/models/spi_setting.rb +67 -0
  136. data/lib/models/swd_setting.rb +25 -0
  137. data/lib/models/uart_setting.rb +52 -0
  138. data/lib/models/use.rb +6 -0
  139. data/lib/startHardsploit.rb +2 -2
  140. metadata +106 -41
  141. data/lib/Firmware/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
  142. data/lib/HardsploitAPI/HardsploitAPI.rb +0 -133
  143. data/lib/HardsploitAPI/HardsploitAPI_CONSTANT.rb +0 -145
  144. data/lib/HardsploitAPI/HardsploitAPI_ERROR.rb +0 -38
  145. data/lib/HardsploitAPI/HardsploitAPI_FIRMWARE.rb +0 -311
  146. data/lib/HardsploitAPI/HardsploitAPI_I2C.rb +0 -360
  147. data/lib/HardsploitAPI/HardsploitAPI_SPI.rb +0 -369
  148. data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +0 -148
  149. data/lib/HardsploitAPI/LICENSE.txt +0 -674
  150. data/lib/HardsploitAPI/README.md +0 -22
  151. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD.rb +0 -249
  152. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_DEBUG.rb +0 -102
  153. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_MEM_AP.rb +0 -78
  154. data/lib/HardsploitAPI/TRADEMARK +0 -3
  155. data/lib/class/HardsploitGUI.rb +0 -463
  156. data/lib/class/I2C/I2c_export.rb +0 -118
  157. data/lib/class/I2C/I2c_import.rb +0 -79
  158. data/lib/class/I2C/I2c_settings.rb +0 -129
  159. data/lib/class/PARALLEL/Parallel_export.rb +0 -146
  160. data/lib/class/PARALLEL/Parallel_import.rb +0 -88
  161. data/lib/class/PARALLEL/Parallel_settings.rb +0 -102
  162. data/lib/class/SPI/Spi_export.rb +0 -138
  163. data/lib/class/SPI/Spi_import.rb +0 -113
  164. data/lib/class/SPI/Spi_settings.rb +0 -134
  165. data/lib/db/hs.db +0 -0
  166. data/lib/hardsploit.rb +0 -131
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  ** Form generated from reading ui file 'gui_command_editor.ui'
3
3
  **
4
- ** Created: mer. déc. 9 14:17:48 2015
4
+ ** Created: ven. mai 20 11:11:13 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!
@@ -38,6 +38,7 @@ class Ui_Command_editor
38
38
  if command_editor.objectName.nil?
39
39
  command_editor.objectName = "command_editor"
40
40
  end
41
+ command_editor.windowModality = Qt::ApplicationModal
41
42
  command_editor.resize(540, 440)
42
43
  @gridLayout = Qt::GridLayout.new(command_editor)
43
44
  @gridLayout.objectName = "gridLayout"
@@ -0,0 +1,132 @@
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_export.ui'
3
+ **
4
+ ** Created: mer. févr. 17 15:04:42 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_Export
11
+ attr_reader :gridLayout
12
+ attr_reader :vl
13
+ attr_reader :lbl_export
14
+ attr_reader :hl2
15
+ attr_reader :rbn_comp
16
+ attr_reader :rbn_cmds
17
+ attr_reader :rbn_both
18
+ attr_reader :hl3
19
+ attr_reader :btn_file
20
+ attr_reader :hs2
21
+ attr_reader :hl
22
+ attr_reader :hs
23
+ attr_reader :btn_cancel
24
+ attr_reader :btn_export
25
+
26
+ def setupUi(export)
27
+ if export.objectName.nil?
28
+ export.objectName = "export"
29
+ end
30
+ export.resize(303, 120)
31
+ @gridLayout = Qt::GridLayout.new(export)
32
+ @gridLayout.objectName = "gridLayout"
33
+ @vl = Qt::VBoxLayout.new()
34
+ @vl.objectName = "vl"
35
+ @lbl_export = Qt::Label.new(export)
36
+ @lbl_export.objectName = "lbl_export"
37
+
38
+ @vl.addWidget(@lbl_export)
39
+
40
+ @hl2 = Qt::HBoxLayout.new()
41
+ @hl2.objectName = "hl2"
42
+ @rbn_comp = Qt::RadioButton.new(export)
43
+ @rbn_comp.objectName = "rbn_comp"
44
+ @rbn_comp.checked = true
45
+
46
+ @hl2.addWidget(@rbn_comp)
47
+
48
+ @rbn_cmds = Qt::RadioButton.new(export)
49
+ @rbn_cmds.objectName = "rbn_cmds"
50
+
51
+ @hl2.addWidget(@rbn_cmds)
52
+
53
+ @rbn_both = Qt::RadioButton.new(export)
54
+ @rbn_both.objectName = "rbn_both"
55
+ @rbn_both.checked = false
56
+
57
+ @hl2.addWidget(@rbn_both)
58
+
59
+
60
+ @vl.addLayout(@hl2)
61
+
62
+ @hl3 = Qt::HBoxLayout.new()
63
+ @hl3.objectName = "hl3"
64
+ @btn_file = Qt::PushButton.new(export)
65
+ @btn_file.objectName = "btn_file"
66
+
67
+ @hl3.addWidget(@btn_file)
68
+
69
+ @hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
70
+
71
+ @hl3.addItem(@hs2)
72
+
73
+
74
+ @vl.addLayout(@hl3)
75
+
76
+ @hl = Qt::HBoxLayout.new()
77
+ @hl.objectName = "hl"
78
+ @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
79
+
80
+ @hl.addItem(@hs)
81
+
82
+ @btn_cancel = Qt::PushButton.new(export)
83
+ @btn_cancel.objectName = "btn_cancel"
84
+
85
+ @hl.addWidget(@btn_cancel)
86
+
87
+ @btn_export = Qt::PushButton.new(export)
88
+ @btn_export.objectName = "btn_export"
89
+
90
+ @hl.addWidget(@btn_export)
91
+
92
+
93
+ @vl.addLayout(@hl)
94
+
95
+
96
+ @gridLayout.addLayout(@vl, 0, 0, 1, 1)
97
+
98
+
99
+ retranslateUi(export)
100
+ Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), export, SLOT('close()'))
101
+ Qt::Object.connect(@btn_export, SIGNAL('clicked()'), export, SLOT('export()'))
102
+ Qt::Object.connect(@btn_file, SIGNAL('clicked()'), export, SLOT('export_file()'))
103
+
104
+ Qt::MetaObject.connectSlotsByName(export)
105
+ end # setupUi
106
+
107
+ def setup_ui(export)
108
+ setupUi(export)
109
+ end
110
+
111
+ def retranslateUi(export)
112
+ export.windowTitle = Qt::Application.translate("Export", "Export", nil, Qt::Application::UnicodeUTF8)
113
+ @lbl_export.text = Qt::Application.translate("Export", "Exporting:", nil, Qt::Application::UnicodeUTF8)
114
+ @rbn_comp.text = Qt::Application.translate("Export", "Component", nil, Qt::Application::UnicodeUTF8)
115
+ @rbn_cmds.text = Qt::Application.translate("Export", "Commands", nil, Qt::Application::UnicodeUTF8)
116
+ @rbn_both.text = Qt::Application.translate("Export", "Both", nil, Qt::Application::UnicodeUTF8)
117
+ @btn_file.text = Qt::Application.translate("Export", "File...", nil, Qt::Application::UnicodeUTF8)
118
+ @btn_cancel.text = Qt::Application.translate("Export", "Cancel", nil, Qt::Application::UnicodeUTF8)
119
+ @btn_export.text = Qt::Application.translate("Export", "Export", nil, Qt::Application::UnicodeUTF8)
120
+ end # retranslateUi
121
+
122
+ def retranslate_ui(export)
123
+ retranslateUi(export)
124
+ end
125
+
126
+ end
127
+
128
+ module Ui
129
+ class Export < Ui_Export
130
+ end
131
+ end # module Ui
132
+
@@ -1,13 +1,19 @@
1
1
  =begin
2
2
  ** Form generated from reading ui file 'gui_generic_commands.ui'
3
3
  **
4
- ** Created: jeu. déc. 3 15:41:54 2015
4
+ ** Created: jeu. mai 26 15:29:15 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!
8
8
  =end
9
9
 
10
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
11
17
  attr_reader :gridLayout
12
18
  attr_reader :vl
13
19
  attr_reader :hl
@@ -18,31 +24,45 @@ class Ui_Generic_commands
18
24
  attr_reader :lbl_chip
19
25
  attr_reader :vl2
20
26
  attr_reader :tbl_cmd
27
+ attr_reader :label
21
28
  attr_reader :hl3
22
29
  attr_reader :check_result
23
30
  attr_reader :hs2
24
31
  attr_reader :btn_new_cmd
25
- attr_reader :cbx_action
26
- attr_reader :btn_next
32
+ attr_reader :menubar
33
+ attr_reader :menuCommandes
34
+ attr_reader :statusbar
27
35
 
28
36
  def setupUi(generic_commands)
29
37
  if generic_commands.objectName.nil?
30
38
  generic_commands.objectName = "generic_commands"
31
39
  end
32
- generic_commands.resize(532, 384)
33
- generic_commands.minimumSize = Qt::Size.new(532, 384)
34
- @gridLayout = Qt::GridLayout.new(generic_commands)
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)
35
55
  @gridLayout.objectName = "gridLayout"
36
56
  @vl = Qt::VBoxLayout.new()
37
57
  @vl.objectName = "vl"
38
58
  @hl = Qt::HBoxLayout.new()
39
59
  @hl.objectName = "hl"
40
- @lbl_search = Qt::Label.new(generic_commands)
60
+ @lbl_search = Qt::Label.new(@centralwidget)
41
61
  @lbl_search.objectName = "lbl_search"
42
62
 
43
63
  @hl.addWidget(@lbl_search)
44
64
 
45
- @lie_search = Qt::LineEdit.new(generic_commands)
65
+ @lie_search = Qt::LineEdit.new(@centralwidget)
46
66
  @lie_search.objectName = "lie_search"
47
67
  @lie_search.maxLength = 10
48
68
 
@@ -52,12 +72,12 @@ class Ui_Generic_commands
52
72
 
53
73
  @hl.addItem(@hs)
54
74
 
55
- @lbl_current_chip = Qt::Label.new(generic_commands)
75
+ @lbl_current_chip = Qt::Label.new(@centralwidget)
56
76
  @lbl_current_chip.objectName = "lbl_current_chip"
57
77
 
58
78
  @hl.addWidget(@lbl_current_chip)
59
79
 
60
- @lbl_chip = Qt::Label.new(generic_commands)
80
+ @lbl_chip = Qt::Label.new(@centralwidget)
61
81
  @lbl_chip.objectName = "lbl_chip"
62
82
 
63
83
  @hl.addWidget(@lbl_chip)
@@ -67,7 +87,7 @@ class Ui_Generic_commands
67
87
 
68
88
  @vl2 = Qt::VBoxLayout.new()
69
89
  @vl2.objectName = "vl2"
70
- @tbl_cmd = Qt::TableWidget.new(generic_commands)
90
+ @tbl_cmd = Qt::TableWidget.new(@centralwidget)
71
91
  @tbl_cmd.objectName = "tbl_cmd"
72
92
  @font = Qt::Font.new
73
93
  @font.family = "Arial"
@@ -76,10 +96,16 @@ class Ui_Generic_commands
76
96
 
77
97
  @vl2.addWidget(@tbl_cmd)
78
98
 
99
+ @label = Qt::Label.new(@centralwidget)
100
+ @label.objectName = "label"
101
+
102
+ @vl2.addWidget(@label)
103
+
79
104
  @hl3 = Qt::HBoxLayout.new()
80
105
  @hl3.objectName = "hl3"
81
- @check_result = Qt::CheckBox.new(generic_commands)
106
+ @check_result = Qt::CheckBox.new(@centralwidget)
82
107
  @check_result.objectName = "check_result"
108
+ @check_result.checked = true
83
109
 
84
110
  @hl3.addWidget(@check_result)
85
111
 
@@ -87,21 +113,11 @@ class Ui_Generic_commands
87
113
 
88
114
  @hl3.addItem(@hs2)
89
115
 
90
- @btn_new_cmd = Qt::PushButton.new(generic_commands)
116
+ @btn_new_cmd = Qt::PushButton.new(@centralwidget)
91
117
  @btn_new_cmd.objectName = "btn_new_cmd"
92
118
 
93
119
  @hl3.addWidget(@btn_new_cmd)
94
120
 
95
- @cbx_action = Qt::ComboBox.new(generic_commands)
96
- @cbx_action.objectName = "cbx_action"
97
-
98
- @hl3.addWidget(@cbx_action)
99
-
100
- @btn_next = Qt::PushButton.new(generic_commands)
101
- @btn_next.objectName = "btn_next"
102
-
103
- @hl3.addWidget(@btn_next)
104
-
105
121
 
106
122
  @vl2.addLayout(@hl3)
107
123
 
@@ -111,11 +127,32 @@ class Ui_Generic_commands
111
127
 
112
128
  @gridLayout.addLayout(@vl, 0, 0, 1, 1)
113
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)
114
147
 
115
148
  retranslateUi(generic_commands)
116
149
  Qt::Object.connect(@lie_search, SIGNAL('textChanged(QString)'), generic_commands, SLOT('feed_cmd_array()'))
117
- Qt::Object.connect(@btn_new_cmd, SIGNAL('clicked()'), generic_commands, SLOT('open_cmd_form()'))
118
- Qt::Object.connect(@btn_next, SIGNAL('clicked()'), generic_commands, SLOT('exec_action()'))
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()'))
119
156
 
120
157
  Qt::MetaObject.connectSlotsByName(generic_commands)
121
158
  end # setupUi
@@ -126,6 +163,11 @@ class Ui_Generic_commands
126
163
 
127
164
  def retranslateUi(generic_commands)
128
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)
129
171
  @lbl_search.text = Qt::Application.translate("Generic_commands", "Search", nil, Qt::Application::UnicodeUTF8)
130
172
  @lie_search.inputMask = ''
131
173
  @lbl_current_chip.text = Qt::Application.translate("Generic_commands", "Current chip:", nil, Qt::Application::UnicodeUTF8)
@@ -141,14 +183,10 @@ class Ui_Generic_commands
141
183
  __colItem1 = Qt::TableWidgetItem.new
142
184
  __colItem1.setText(Qt::Application.translate("Generic_commands", "Description", nil, Qt::Application::UnicodeUTF8))
143
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)
144
187
  @check_result.text = Qt::Application.translate("Generic_commands", "Show command result", nil, Qt::Application::UnicodeUTF8)
145
188
  @btn_new_cmd.text = Qt::Application.translate("Generic_commands", "New Command", nil, Qt::Application::UnicodeUTF8)
146
- @cbx_action.insertItems(0, [Qt::Application.translate("Generic_commands", "Action...", nil, Qt::Application::UnicodeUTF8),
147
- Qt::Application.translate("Generic_commands", "Execute", nil, Qt::Application::UnicodeUTF8),
148
- Qt::Application.translate("Generic_commands", "Edit", nil, Qt::Application::UnicodeUTF8),
149
- Qt::Application.translate("Generic_commands", "Delete", nil, Qt::Application::UnicodeUTF8),
150
- Qt::Application.translate("Generic_commands", "Template", nil, Qt::Application::UnicodeUTF8)])
151
- @btn_next.text = Qt::Application.translate("Generic_commands", "Next", nil, Qt::Application::UnicodeUTF8)
189
+ @menuCommandes.title = Qt::Application.translate("Generic_commands", "Commandes...", nil, Qt::Application::UnicodeUTF8)
152
190
  end # retranslateUi
153
191
 
154
192
  def retranslate_ui(generic_commands)
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  ** Form generated from reading ui file 'gui_generic_export.ui'
3
3
  **
4
- ** Created: mar. déc. 8 10:22:41 2015
4
+ ** Created: mar. juil. 12 16:04:54 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!
@@ -21,6 +21,8 @@ class Ui_Generic_export
21
21
  attr_reader :lie_stop
22
22
  attr_reader :lbl_file
23
23
  attr_reader :btn_file
24
+ attr_reader :lbl_selected
25
+ attr_reader :lbl_selected_file
24
26
  attr_reader :hl
25
27
  attr_reader :btn_export
26
28
  attr_reader :btn_full_export
@@ -29,7 +31,8 @@ class Ui_Generic_export
29
31
  if generic_export.objectName.nil?
30
32
  generic_export.objectName = "generic_export"
31
33
  end
32
- generic_export.resize(254, 168)
34
+ generic_export.windowModality = Qt::ApplicationModal
35
+ generic_export.resize(254, 203)
33
36
  @gridLayout = Qt::GridLayout.new(generic_export)
34
37
  @gridLayout.objectName = "gridLayout"
35
38
  @vl = Qt::VBoxLayout.new()
@@ -87,6 +90,17 @@ class Ui_Generic_export
87
90
 
88
91
  @fl.setWidget(4, Qt::FormLayout::FieldRole, @btn_file)
89
92
 
93
+ @lbl_selected = Qt::Label.new(generic_export)
94
+ @lbl_selected.objectName = "lbl_selected"
95
+
96
+ @fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_selected)
97
+
98
+ @lbl_selected_file = Qt::Label.new(generic_export)
99
+ @lbl_selected_file.objectName = "lbl_selected_file"
100
+ @lbl_selected_file.maximumSize = Qt::Size.new(250, 16777215)
101
+
102
+ @fl.setWidget(5, Qt::FormLayout::FieldRole, @lbl_selected_file)
103
+
90
104
 
91
105
  @vl.addLayout(@fl)
92
106
 
@@ -131,6 +145,8 @@ class Ui_Generic_export
131
145
  @lbl_stop.text = Qt::Application.translate("Generic_export", "Stop address:", nil, Qt::Application::UnicodeUTF8)
132
146
  @lbl_file.text = Qt::Application.translate("Generic_export", "File:", nil, Qt::Application::UnicodeUTF8)
133
147
  @btn_file.text = Qt::Application.translate("Generic_export", "File...", nil, Qt::Application::UnicodeUTF8)
148
+ @lbl_selected.text = Qt::Application.translate("Generic_export", "Selected file:", nil, Qt::Application::UnicodeUTF8)
149
+ @lbl_selected_file.text = Qt::Application.translate("Generic_export", "None", nil, Qt::Application::UnicodeUTF8)
134
150
  @btn_export.text = Qt::Application.translate("Generic_export", "Export", nil, Qt::Application::UnicodeUTF8)
135
151
  @btn_full_export.text = Qt::Application.translate("Generic_export", "Full export", nil, Qt::Application::UnicodeUTF8)
136
152
  end # retranslateUi
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  ** Form generated from reading ui file 'gui_generic_import.ui'
3
3
  **
4
- ** Created: mar. déc. 8 14:09:40 2015
4
+ ** Created: mar. juil. 19 13:51:01 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!
@@ -19,6 +19,8 @@ class Ui_Generic_import
19
19
  attr_reader :lie_start
20
20
  attr_reader :btn_file
21
21
  attr_reader :lbl_file
22
+ attr_reader :lbl_selected
23
+ attr_reader :lbl_selected_file
22
24
  attr_reader :hl
23
25
  attr_reader :btn_import
24
26
 
@@ -26,7 +28,8 @@ class Ui_Generic_import
26
28
  if generic_import.objectName.nil?
27
29
  generic_import.objectName = "generic_import"
28
30
  end
29
- generic_import.resize(265, 137)
31
+ generic_import.windowModality = Qt::ApplicationModal
32
+ generic_import.resize(317, 155)
30
33
  @gridLayout = Qt::GridLayout.new(generic_import)
31
34
  @gridLayout.objectName = "gridLayout"
32
35
  @vl = Qt::VBoxLayout.new()
@@ -73,6 +76,17 @@ class Ui_Generic_import
73
76
 
74
77
  @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_file)
75
78
 
79
+ @lbl_selected = Qt::Label.new(generic_import)
80
+ @lbl_selected.objectName = "lbl_selected"
81
+
82
+ @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_selected)
83
+
84
+ @lbl_selected_file = Qt::Label.new(generic_import)
85
+ @lbl_selected_file.objectName = "lbl_selected_file"
86
+ @lbl_selected_file.maximumSize = Qt::Size.new(250, 16777215)
87
+
88
+ @fl.setWidget(3, Qt::FormLayout::FieldRole, @lbl_selected_file)
89
+
76
90
 
77
91
  @vl.addLayout(@fl)
78
92
 
@@ -110,6 +124,8 @@ class Ui_Generic_import
110
124
  @lie_start.text = Qt::Application.translate("Generic_import", "0", nil, Qt::Application::UnicodeUTF8)
111
125
  @btn_file.text = Qt::Application.translate("Generic_import", "File...", nil, Qt::Application::UnicodeUTF8)
112
126
  @lbl_file.text = Qt::Application.translate("Generic_import", "File:", nil, Qt::Application::UnicodeUTF8)
127
+ @lbl_selected.text = Qt::Application.translate("Generic_import", "Selected file:", nil, Qt::Application::UnicodeUTF8)
128
+ @lbl_selected_file.text = Qt::Application.translate("Generic_import", "None", nil, Qt::Application::UnicodeUTF8)
113
129
  @btn_import.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8)
114
130
  end # retranslateUi
115
131