惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
量子位
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
博客园 - 聂微东
博客园_首页
D
Docker
博客园 - 叶小钗
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
腾讯CDC
罗磊的独立博客
雷峰网
雷峰网
博客园 - Franky

ABB00717

SecList Knock Pivoting and Tunneling Broken Authentication File Inclusion Login Brute Forcing Reverse Shell Web Fuzzing HTB - SpeedNet PHP Filter to RCE HTB - Pollution HTB - Pollution 工具 常見服務 HTB - BroScience HTB - BroScience 如何把爛爛的 shell 升級成好用的 TTY 滲透筆記 HTB - Imagery HTB - Imagery HTB - Reset HTB - Reset HTB - Trick HTB - Trick HTB - Editorial HTB - Editorial 150. Evaluate Reverse Polish Notation droopescan 安裝找不到 module imp 解決「桌面背景被當成一個視窗不斷重新彈出並覆蓋其他視窗」的問題 桌面不斷彈出覆蓋其他視窗
Redis
2026-09-08 · via ABB00717

Redis is an open-source, in-memory data structure store used as a database, cache, message broker, and streaming engine. It delivers sub-millisecond latency, supports rich data types (Strings, Hashes, Lists, Sets, Sorted Sets, Streams, JSON, vector sets), and scales horizontally with Redis Cluster. Redis also supports vector search for GenAI apps, including semantic search, RAG, and recommendation systems. Redis is free to use, runs anywhere, and offers a managed option through Redis Cloud.

反正就是說它很快、有資料結構、單執行緒,Blah Blah Blah。

簡單教學

通常會用 redis-cli,假設在 pollution.htb 的端口 6379 上找到 Reddis 的 Open Port:

$ nmap -sC -sV -p6379 pollution.htb
PORT     STATE SERVICE VERSION
6379/tcp open  redis   Redis key-value store

我們就可以透過 redis-cli 與他互動:

$ redis-cli -h pollution.htb
pollution.htb:6379> AUTH COLLECTR3D1SPASS
OK
...<SNIP>...

而 Redis 其實就只是個 Python Dict:

redis = {}
redis["user:1:name"] = "Alice"
redis["page:views"] = 42

大家習慣用 : 當作命名分隔,這樣查詢比較方便,像是 SCAN user:*。在 Redis 你會看到類似這樣的東西:

pollution.htb:6379> keys *
1) "PHPREDIS_SESSION:umicnume7bm2gf2opghp0pr129"
2) "PHPREDIS_SESSION:r8qne20hig1k3li6prgk91t33j"

透過 GET 查看鍵值:

pollution.htb:6379> GET PHPREDIS_SESSION:umicnume7bm2gf2opghp0pr129
""

透過 SET 設定鍵值:

pollution.htb:6379> SET PHPREDIS_SESSION:umicnume7bm2gf2opghp0pr129 'auth|b:1;'
OK
pollution.htb:6379> GET PHPREDIS_SESSION:umicnume7bm2gf2opghp0pr129
"auth|b:1;"

如果不熟,打到一半也會告訴你接下來該怎麼做:

學習指引