Skip to content

Commit 5458200

Browse files
committed
Fix a couple minor annoyances in PJL
2 parents f4e62a8 + c1fdc4d commit 5458200

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

modules/auxiliary/scanner/printer/printer_env_vars.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ def run_host(ip)
4949

5050
if env_vars
5151
print_good("#{ip}:#{rport} - #{env_vars}")
52-
report_note({
52+
report_note(
5353
:host => ip,
5454
:port => rport,
5555
:proto => "tcp",
5656
:type => "printer.env.vars",
5757
:data => env_vars
58-
})
58+
)
5959
end
6060
end
6161

modules/auxiliary/scanner/printer/printer_list_dir.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ def run_host(ip)
5353

5454
if listing
5555
print_good("#{ip}:#{rport} - #{listing}")
56-
report_note({
56+
report_note(
5757
:host => ip,
5858
:port => rport,
5959
:proto => "tcp",
6060
:type => "printer.dir.listing",
6161
:data => listing
62-
})
62+
)
6363
end
6464
end
6565

modules/auxiliary/scanner/printer/printer_list_volumes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ def run_host(ip)
5050

5151
if listing
5252
print_good("#{ip}:#{rport} - #{listing}")
53-
report_note({
53+
report_note(
5454
:host => ip,
5555
:port => rport,
5656
:proto => "tcp",
5757
:type => "printer.vol.listing",
5858
:data => listing
59-
})
59+
)
6060
end
6161
end
6262

modules/auxiliary/scanner/printer/printer_ready_message.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def initialize(info = {})
3535
register_options([
3636
Opt::RPORT(Rex::Proto::PJL::DEFAULT_PORT),
3737
OptBool.new("CHANGE", [false, "Change ready message", false]),
38-
OptBool.new("RESET", [false, "Reset ready message (CHANGE must be true)", false]),
38+
OptBool.new("RESET", [false, "Reset ready message if CHANGE", false]),
3939
OptString.new("MESSAGE", [false, "Ready message", "PC LOAD LETTER"])
4040
], self.class)
4141
end
@@ -62,13 +62,13 @@ def run_host(ip)
6262

6363
if rdymsg
6464
print_good("#{ip}:#{rport} - #{rdymsg}")
65-
report_note({
65+
report_note(
6666
:host => ip,
6767
:port => rport,
6868
:proto => "tcp",
6969
:type => "printer.rdymsg",
7070
:data => rdymsg
71-
})
71+
)
7272
end
7373
end
7474

0 commit comments

Comments
 (0)