2024-03-09 14:23:42 +00:00
|
|
|
id: redis-info
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Redis Info - Detect
|
|
|
|
author: DhiyaneshDK
|
|
|
|
severity: info
|
|
|
|
description: |
|
|
|
|
Retrieves information (such as version number and architecture) from a Redis key-value store.
|
|
|
|
reference:
|
|
|
|
- https://nmap.org/nsedoc/scripts/redis-info.html
|
|
|
|
metadata:
|
|
|
|
max-request: 1
|
|
|
|
shodan-query: product:"redis"
|
2024-04-08 11:34:33 +00:00
|
|
|
tags: js,redis,network
|
2024-03-09 14:23:42 +00:00
|
|
|
|
|
|
|
javascript:
|
|
|
|
- code: |
|
|
|
|
const redis = require('nuclei/redis');
|
|
|
|
const info = redis.GetServerInfo(Host,Port);
|
|
|
|
Export(info);
|
|
|
|
|
|
|
|
args:
|
|
|
|
Host: "{{Host}}"
|
|
|
|
Port: "6379"
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: response
|
|
|
|
regex:
|
|
|
|
- redis_version:(\d+\.\d+\.\d+)
|
|
|
|
- os:(.*?)\\r\\n
|
|
|
|
- arch_bits:(\d+)\s+bits
|
|
|
|
- process_id:(\d+)
|
|
|
|
- used_cpu_sys:(\d+\.\d+)
|
|
|
|
- used_cpu_user:(\d+\.\d+)
|
|
|
|
- connected_clients:(\d+)
|
|
|
|
- connected_slaves:(\d+)
|
|
|
|
- used_memory_human:(\d+\.\d+[KMGTPEZY]?)
|
|
|
|
- role:(\w+)
|
2024-03-23 09:23:23 +00:00
|
|
|
# digest: 4b0a00483046022100b7a5c7e93d73f0e0842951a4d03dd43a9aecd421dae60c8270dbd2c127972cea022100f7312083422a05b3f8014b41a338f2992d17ef8e4efe39d0aebf5074f85b8c64:922c64590222798bb761d5b6d8e72950
|