Skip to content

Commit bfabb38

Browse files
committed
@void-in suggestions styles
1 parent 39407dd commit bfabb38

File tree

1 file changed

+5
-5
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher

1 file changed

+5
-5
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/winpmem.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def commands
3737

3838
def cmd_dump_ram(*args)
3939
unless args[0]
40-
print_error("Usage: dump_ram [raw-memory-file]")
40+
print_error("Usage: dump_ram [output_file]")
4141
return
4242
end
4343
path_raw = args[0]
@@ -46,16 +46,16 @@ def cmd_dump_ram(*args)
4646
memory_size, response_code, channel = client.winpmem.dump_ram
4747
case response_code
4848
when WINPMEM_ERROR_FAILED_LOAD_DRIVER
49-
print_bad("Failed to load the driver")
49+
print_error("Failed to load the driver")
5050
return true
5151
when WINPMEM_ERROR_FAILED_MEMORY_GEOMETRY
52-
print_bad("Failed to get the memory geometry")
52+
print_error("Failed to get the memory geometry")
5353
return true
5454
when WINPMEM_ERROR_FAILED_ALLOCATE_MEMORY
55-
print_bad("Failed to allocate memory")
55+
print_error("Failed to allocate memory")
5656
return true
5757
when WINPMEM_ERROR_FAILED_METERPRETER_CHANNEL
58-
print_bad("Failed to open the meterpreter Channel")
58+
print_error("Failed to open the meterpreter Channel")
5959
return true
6060
end
6161
print_good("Driver PMEM loaded successfully")

0 commit comments

Comments
 (0)