hacktricks/src/network-services-pentesting/24007-24008-24009-49152-pentesting-glusterfs.md

36 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{#include ../banners/hacktricks-training.md}}
# 基本信息
**GlusterFS** 是一个 **分布式文件系统**,将多个服务器的存储结合成一个 **统一系统**。它允许 **任意扩展性**,这意味着您可以轻松添加或移除存储服务器,而不会干扰整体文件系统。这确保了您的数据具有高 **可用性****容错性**。使用 GlusterFS您可以像访问本地存储的文件一样访问您的文件无论底层服务器基础设施如何。它为跨多个服务器管理大量数据提供了强大而灵活的解决方案。
**默认端口**24007/tcp/udp, 24008/tcp/udp, 49152/tcp (及以上)\
对于端口 49152需要打开递增 1 的端口以使用更多的砖块。_之前使用的是端口 24009而不是 49152._
```
PORT STATE SERVICE
24007/tcp open rpcbind
49152/tcp open ssl/unknown
```
## 枚举
要与此文件系统交互,您需要安装 [**GlusterFS 客户端**](https://download.gluster.org/pub/gluster/glusterfs/LATEST/) (`sudo apt-get install glusterfs-cli`)。
要列出并挂载可用的卷,您可以使用:
```bash
sudo gluster --remote-host=10.10.11.131 volume list
# This will return the name of the volumes
sudo mount -t glusterfs 10.10.11.131:/<vol_name> /mnt/
```
如果您收到**挂载文件系统时出错**,您可以检查`/var/log/glusterfs/`中的日志。
**提到证书的错误**可以通过窃取文件来修复(如果您有系统访问权限):
- /etc/ssl/glusterfs.ca
- /etc/ssl/glusterfs.key
- /etc/ssl/glusterfs.ca.pem
并将它们存储在您的机器`/etc/ssl``/usr/lib/ssl`目录中如果使用不同的目录请检查日志中类似于“_无法在/usr/lib/ssl/glusterfs.pem加载我们的证书_”的行
{{#include ../banners/hacktricks-training.md}}