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
|
2024-06-07 10:04:29 +00:00
|
|
|
shodan-query:
|
|
|
|
- product:"redis"
|
|
|
|
- http.title:"airflow - dags" || http.html:"apache airflow"
|
|
|
|
- http.title:"sign in - airflow"
|
|
|
|
product: airflow
|
|
|
|
vendor: apache
|
|
|
|
fofa-query:
|
|
|
|
- apache airflow
|
|
|
|
- title="airflow - dags" || http.html:"apache airflow"
|
|
|
|
- title="sign in - airflow"
|
|
|
|
google-query:
|
|
|
|
- intitle:"airflow - dags" || http.html:"apache airflow"
|
|
|
|
- intitle:"sign in - airflow"
|
|
|
|
tags: js,redis,network,enum
|
2024-07-10 12:08:01 +00:00
|
|
|
|
2024-03-09 14:23:42 +00:00
|
|
|
javascript:
|
2024-07-10 12:08:01 +00:00
|
|
|
- pre-condition: |
|
|
|
|
isPortOpen(Host,Port);
|
|
|
|
code: |
|
2024-03-09 14:23:42 +00:00
|
|
|
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-06-08 16:02:17 +00:00
|
|
|
# digest: 4b0a0048304602210095932719db8fcff3d52ee421d063089bf07192a5a0065d3b7a6c3b036a66d249022100c314e177086cc5db933282f514fe0001b5f86e6c95d557af18165d1dc7ef95bc:922c64590222798bb761d5b6d8e72950
|