Skip to content

Commit a051b7f

Browse files
committed
pwn_serial_msr206 Driver - Reserve yellow led for minor errors
1 parent cf398ad commit a051b7f

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
3737
$ rvm list gemsets
3838
$ gem install --verbose pwn
3939
$ pwn
40-
pwn[v0.4.467]:001 >>> PWN.help
40+
pwn[v0.4.468]:001 >>> PWN.help
4141
```
4242

4343
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.1.2@pwn
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.467]:001 >>> PWN.help
55+
pwn[v0.4.468]:001 >>> PWN.help
5656
```
5757

5858

bin/pwn_serial_msr206

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ begin
101101
unless menu_msg.include?('ERROR')
102102
exec_resp = PWN::Plugins::MSR206.exec(
103103
msr206_obj: msr206_obj,
104-
cmd: :yellow_on
104+
cmd: :green_flash
105105
)
106106
end
107107

@@ -156,14 +156,33 @@ begin
156156
)
157157
file = ''
158158
loop do
159+
exec_resp = PWN::Plugins::MSR206.exec(
160+
msr206_obj: msr206_obj,
161+
cmd: :green_flash
162+
)
163+
159164
print 'Enter File Name to Save Backup: '
160165
file = gets.scrub.chomp.strip
161166
file_dir = File.dirname(file)
162167
break if Dir.exist?(file_dir)
163168

164169
puts "\nDirectory #{file_dir} for #{file} does not exist."
170+
exec_resp = PWN::Plugins::MSR206.exec(
171+
msr206_obj: msr206_obj,
172+
cmd: :green_off
173+
)
174+
exec_resp = PWN::Plugins::MSR206.exec(
175+
msr206_obj: msr206_obj,
176+
cmd: :yellow_flash
177+
)
165178
end
179+
166180
File.write(file, "#{track_data.to_json}\n")
181+
exec_resp = PWN::Plugins::MSR206.exec(
182+
msr206_obj: msr206_obj,
183+
cmd: :yellow_off
184+
)
185+
167186
puts 'complete.'
168187
when :W
169188
exec_resp = PWN::Plugins::MSR206.exec(
@@ -177,12 +196,12 @@ begin
177196
menu_msg = '****** ERROR: Invalid Menu Option Selected ******'
178197
exec_resp = PWN::Plugins::MSR206.exec(
179198
msr206_obj: msr206_obj,
180-
cmd: :yellow_off
199+
cmd: :green_off
181200
)
182201

183202
exec_resp = PWN::Plugins::MSR206.exec(
184203
msr206_obj: msr206_obj,
185-
cmd: :red_flash
204+
cmd: :yellow_flash
186205
)
187206
end
188207
end

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.467'
4+
VERSION = '0.4.468'
55
end

0 commit comments

Comments
 (0)