Skip to content

Commit 1fb76b1

Browse files
authored
Land #20408, fixes arguments passing to redis_command function in auxiliary/scanner/redis/redis_server
Fix modules\auxiliary\scanner\redis\redis_server
2 parents fcff88b + e4686fe commit 1fb76b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/auxiliary/scanner/redis/redis_server.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ def run_host(_ip)
4343
vprint_status("Contacting redis")
4444
begin
4545
connect
46-
return unless (data = redis_command(command))
46+
# Split the input command into parts using space as the delimiter
47+
command_parts=command.split(' ')
48+
# Execute the Redis command using the split parts
49+
return unless (data = redis_command(*command_parts))
4750

4851
report_service(host: rhost, port: rport, name: "redis server", info: "#{command} response: #{data}")
4952
print_good("Found redis with #{command} command: #{Rex::Text.to_hex_ascii(data)}")

0 commit comments

Comments
 (0)