hardsploit_gui 2.1 → 2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +10 -10
- data/lib/class/HardsploitGUI.rb +1 -1
- data/lib/class/SPI/Spi_settings.rb +4 -6
- data/lib/db/hs.db +0 -0
- data/lib/gui/gui_spi_settings.rb +1 -5
- data/lib/gui_designer/gui_spi_settings.ui +1 -14
- data/lib/logs/error.log +0 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7307c772e8b3f54b1002fab4f345ebe6cedf03a
|
4
|
+
data.tar.gz: f8c2fa22801cccd46aba0827e7df99f53d7f082a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9e513dff9867a765efcd05b201adc6ef65f4400048e33ae9e919d5c5618ece34437f55460e91ce118346d1f9305819335a64fce9736997682d323d73051320c
|
7
|
+
data.tar.gz: cd870eb9329e07c4b695fecc88a764ef45265004122bc332b9451c302847e6d9cd953463af3ef1a47f396ace36f580dfd88d074fd871bcd5869dd77ea1ab35a2
|
@@ -29,22 +29,22 @@ public
|
|
29
29
|
# Connect board and get an instance to work with
|
30
30
|
# Return USB_STATE
|
31
31
|
def connect
|
32
|
-
@device = @usb.devices(:idVendor => 0x0483, :idProduct => 0xFFFF)
|
33
|
-
if @device ==
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
32
|
+
@device = @usb.devices(:idVendor => 0x0483, :idProduct => 0xFFFF)
|
33
|
+
if @device.size == 0 then
|
34
|
+
@device_version = ""
|
35
|
+
return USB_STATE::NOT_CONNECTED
|
36
|
+
else
|
37
|
+
@dev = @device.first.open
|
38
|
+
if RUBY_PLATFORM=~/linux/i && @dev.kernel_driver_active?(0)
|
39
|
+
@dev.detach_kernel_driver(0)
|
40
|
+
end
|
41
41
|
@dev.claim_interface(0)
|
42
42
|
Thread.abort_on_exception = true
|
43
43
|
setStatutLed(USB_COMMAND::GREEN_LED,true);
|
44
44
|
return USB_STATE::CONNECTED
|
45
45
|
end
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
# Obtain low byte of a word
|
49
49
|
# * +word+:: 16 bit word
|
50
50
|
# Return low byte of the word
|
data/lib/class/HardsploitGUI.rb
CHANGED
@@ -49,12 +49,10 @@ class Spi_settings < Qt::Widget
|
|
49
49
|
@spi_settings_gui.lie_erase_time.setText(@chip_settings.spi_erase_time.to_s)
|
50
50
|
@spi_settings_gui.lie_page_size.setText(@chip_settings.spi_page_size.to_s)
|
51
51
|
@spi_settings_gui.lie_total_size.setText(@chip_settings.spi_total_size.to_s)
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
@spi_settings_gui.rbn_yes.setChecked(true)
|
57
|
-
end
|
52
|
+
if @chip_settings.spi_is_flash.zero?
|
53
|
+
@spi_settings_gui.rbn_no.setChecked(true)
|
54
|
+
else
|
55
|
+
@spi_settings_gui.rbn_yes.setChecked(true)
|
58
56
|
end
|
59
57
|
end
|
60
58
|
rescue Exception => msg
|
data/lib/db/hs.db
CHANGED
Binary file
|
data/lib/gui/gui_spi_settings.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
** Form generated from reading ui file 'gui_spi_settings.ui'
|
3
3
|
**
|
4
|
-
** Created: ven. févr. 12
|
4
|
+
** Created: ven. févr. 12 11:41: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!
|
@@ -272,18 +272,14 @@ class Ui_Spi_settings
|
|
272
272
|
Qt::Application.translate("Spi_settings", "0.29", nil, Qt::Application::UnicodeUTF8)])
|
273
273
|
@lbl_cmd_read.text = Qt::Application.translate("Spi_settings", "Read command:", nil, Qt::Application::UnicodeUTF8)
|
274
274
|
@lie_cmd_read.text = ''
|
275
|
-
@lie_cmd_read.placeholderText = Qt::Application.translate("Spi_settings", "in decimals", nil, Qt::Application::UnicodeUTF8)
|
276
275
|
@lbl_cmd_erase.text = Qt::Application.translate("Spi_settings", "Erase command:", nil, Qt::Application::UnicodeUTF8)
|
277
|
-
@lie_cmd_erase.placeholderText = Qt::Application.translate("Spi_settings", "in decimals", nil, Qt::Application::UnicodeUTF8)
|
278
276
|
@lbl_cmd_write.text = Qt::Application.translate("Spi_settings", "Enable write command:", nil, Qt::Application::UnicodeUTF8)
|
279
|
-
@lie_cmd_write_enable.placeholderText = Qt::Application.translate("Spi_settings", "in decimals", nil, Qt::Application::UnicodeUTF8)
|
280
277
|
@lbl_mode.text = Qt::Application.translate("Spi_settings", "Mode:", nil, Qt::Application::UnicodeUTF8)
|
281
278
|
@cbx_mode.insertItems(0, [Qt::Application.translate("Spi_settings", "0", nil, Qt::Application::UnicodeUTF8),
|
282
279
|
Qt::Application.translate("Spi_settings", "1", nil, Qt::Application::UnicodeUTF8),
|
283
280
|
Qt::Application.translate("Spi_settings", "2", nil, Qt::Application::UnicodeUTF8),
|
284
281
|
Qt::Application.translate("Spi_settings", "3", nil, Qt::Application::UnicodeUTF8)])
|
285
282
|
@label.text = Qt::Application.translate("Spi_settings", "Write command:", nil, Qt::Application::UnicodeUTF8)
|
286
|
-
@lie_cmd_write.placeholderText = Qt::Application.translate("Spi_settings", "in decimals", nil, Qt::Application::UnicodeUTF8)
|
287
283
|
@lbl_total_size.text = Qt::Application.translate("Spi_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
288
284
|
@lie_total_size.placeholderText = Qt::Application.translate("Spi_settings", "8 bits word", nil, Qt::Application::UnicodeUTF8)
|
289
285
|
@lbl_page_size.text = Qt::Application.translate("Spi_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
|
@@ -157,9 +157,6 @@
|
|
157
157
|
<property name="maxLength">
|
158
158
|
<number>5</number>
|
159
159
|
</property>
|
160
|
-
<property name="placeholderText">
|
161
|
-
<string>in decimals</string>
|
162
|
-
</property>
|
163
160
|
</widget>
|
164
161
|
</item>
|
165
162
|
<item row="5" column="0">
|
@@ -174,9 +171,6 @@
|
|
174
171
|
<property name="maxLength">
|
175
172
|
<number>5</number>
|
176
173
|
</property>
|
177
|
-
<property name="placeholderText">
|
178
|
-
<string>in decimals</string>
|
179
|
-
</property>
|
180
174
|
</widget>
|
181
175
|
</item>
|
182
176
|
<item row="6" column="0">
|
@@ -191,9 +185,6 @@
|
|
191
185
|
<property name="maxLength">
|
192
186
|
<number>5</number>
|
193
187
|
</property>
|
194
|
-
<property name="placeholderText">
|
195
|
-
<string>in decimals</string>
|
196
|
-
</property>
|
197
188
|
</widget>
|
198
189
|
</item>
|
199
190
|
<item row="1" column="0">
|
@@ -241,11 +232,7 @@
|
|
241
232
|
</widget>
|
242
233
|
</item>
|
243
234
|
<item row="4" column="1">
|
244
|
-
<widget class="QLineEdit" name="lie_cmd_write"
|
245
|
-
<property name="placeholderText">
|
246
|
-
<string>in decimals</string>
|
247
|
-
</property>
|
248
|
-
</widget>
|
235
|
+
<widget class="QLineEdit" name="lie_cmd_write"/>
|
249
236
|
</item>
|
250
237
|
</layout>
|
251
238
|
</item>
|
data/lib/logs/error.log
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hardsploit_gui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OPALE SECURITY
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
version: '0'
|
234
234
|
requirements: []
|
235
235
|
rubyforge_project:
|
236
|
-
rubygems_version: 2.
|
236
|
+
rubygems_version: 2.5.1
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: The essential security auditing tool for Internet of Things devices you'll
|