Skip to content

Commit a89607b

Browse files
committed
Prefer keyword argument
1 parent b7ea465 commit a89607b

File tree

2 files changed

+2
-2
lines changed
  • lib/rex/post/meterpreter

2 files changed

+2
-2
lines changed

lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def getenv(var_name)
104104
#
105105
# Returns a hash of information about the remote computer.
106106
#
107-
def sysinfo(refresh = false)
107+
def sysinfo(refresh: false)
108108
request = Packet.create_request('stdapi_sys_config_sysinfo')
109109
if @sysinfo.nil? || refresh
110110
response = client.send_request(request)

lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ def cmd_drop_token(*args)
808808
# Displays information about the remote system.
809809
#
810810
def cmd_sysinfo(*args)
811-
info = client.sys.config.sysinfo(:refresh)
811+
info = client.sys.config.sysinfo(refresh: true)
812812
width = "Meterpreter".length
813813
info.keys.each { |k| width = k.length if k.length > width and info[k] }
814814

0 commit comments

Comments
 (0)