Skip to content

Commit 9c1b7e9

Browse files
author
laptop
committed
�fix(redis_server): Correctly parse multi-word Redis commands
1 parent 0a1cbf1 commit 9c1b7e9

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)