Skip to content

Commit

Permalink
docs: Reorganized the structure and added Tencent Cloud deployment (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
DVKunion committed Jul 21, 2023
1 parent 03d9235 commit b8da445
Show file tree
Hide file tree
Showing 17 changed files with 247 additions and 147 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@

> 🌕 月出于云却隐于海
月海(Sea Moon) 是一款使用 FaaS/BaaS 实现的的 Serverless 渗透工具,致力于开启云原生的渗透模式。
月海(Sea Moon) 是一款 FaaS/BaaS 实现的 Serverless 云代理/渗透工具集,致力于开启云原生的渗透模式。

说人话的总结,月海其实就是一款利用云函数来隐匿攻击行踪以及分布式处理扫描任务的集成工具
月海之名取自于苏轼的《西江月·顷在黄州》,寓意月海取自于传统安全工具,用之于云,最终达到隐匿于海的效果

基于 Serverless 的动态特性、分别从网络层、应用层实现对应的安全能力,并利用serverless-devs工具来实现快捷的部署/跨厂商操作
直白来讲,月海其实就是一款利用云函数来代理/隐匿攻击行踪以及一些安全相关的匿名性对抗

真正的实现渗透上云,赋能安全云原生红利。
想要了解更多,请移步[官方手册](https://seamoon.dvkunion.cn)

觉得项目不错的话,[还请给一个star ✨](https://github.com/DVKunion/SeaMoon), 你的支持是更新的最大动力~

## 🔥 使用展示
![](https://cdn.dvkunion.cn/seamoon/bf0f8d2fc5084c329f9638d5c3f0bf46.png)
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
text: '使用手册', link: '/guide/introduce/'
},
{
text: '技术文档', link: '/tech/feature/'
text: '技术博客', link: '/tech/'
}
],
archive: false,
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ bannerBg: none
postList: none
features:
- title: 🫥 隐匿
details: 基于 FaaS/BaaS 实现动态IP,云上渗透
details: 基于 FaaS/BaaS 实现动态IP代理,云上无痕
- title: 🗃️ 集成
details: 在传统渗透的基础上,集成常用功能,实现零学习成本隐匿
details: 在传统渗透的基础上,集成常用功能,实现渗透一键开火
- title: 🚀 便携
details: 以 Serverless Devs为基础,实现跨平台快速部署。
---
83 changes: 24 additions & 59 deletions docs/guide/00.概述/00.introduce.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: 简介
title: 简介
titleTag: 1.1.3
date: 2022-09-28 22:39:36
permalink: /guide/introduce
date: 2022-09-28 22:39:36
permalink: /guide/introduce
article: false
---

Expand All @@ -18,21 +18,25 @@ article: false

> 🌕 月出于云却隐于海
月海(Sea Moon) 是一款 FaaS/BaaS 实现的 Serverless 云渗透工具集,致力于开启云原生的渗透模式。
月海(Sea Moon) 是一款 FaaS/BaaS 实现的 Serverless 云代理/渗透工具集,致力于开启云原生的渗透模式。

月海之名取自于苏轼的《西江月·顷在黄州》,寓意月海取自于传统安全工具,用之于云,最终达到隐匿于海的效果。

说人话的总结,月海其实就是一款利用云函数来隐匿代理/攻击行踪以及分布式处理扫描任务的集成工具
直白来讲,月海其实就是一款利用云函数来代理/隐匿攻击行踪以及一些安全相关的匿名性对抗

基于 Serverless 的动态特性、分别从网络层、应用层实现对应的安全能力,并利用serverless-devs工具来实现快捷的部署/跨厂商操作。

真正的实现渗透上云,赋能安全云原生红利。

觉得项目不错的话,[还请给一个star ✨](https://github.com/DVKunion/SeaMoon), 你的支持是更新的最大动力~

## 🌟 月海能做什么

### 网络层

网络层支持是月海的基础功能,也是云函数最基本的优势和特性。利用云函数的动态实例不同的出口IP, 从而获取到了干净(非威胁情报黑名单)、随机的外网IP代理来进行测试。
网络层支持是月海的基础功能,也是云函数最基本的优势和特性。

利用云函数的动态实例不同的出口IP,从而获取到了干净(非威胁情报黑名单)、随机的外网IP代理来进行测试。

目前网络层功能支持如下:

Expand All @@ -42,9 +46,6 @@ article: false
|---------|-----------------------------------------------------------|:-----:|:-----:|
| HTTP(S) | [HTTP.md](https://seamoon.dvkunion.cn/tech/net/http/) |||
| Socks5 | [Socks5.md](https://seamoon.dvkunion.cn/tech/net/socks5/) |||
| SS/SSR | [SS.md]() | 🐷待开发 | 🐷待开发 |
| VMess | [VMESS.md]() | 🐷待开发 | 🐷待开发 |
| 链式代理 | | ❌暂无计划 | ❌暂无计划 |

**端口转发**

Expand All @@ -62,81 +63,45 @@ article: false
| 能力名称 | 原理文档 | 服务端支持 | 客户端支持 |
|--------------|---------------------------------------------------------------|:-----:|:-----:|
| 动态WebShell隐匿 | [WebShell.md](https://seamoon.dvkunion.cn/tech/app/webshell/) | 🐷待开发 | 🐷待开发 |
| 分布式扫描 | | 🐷待开发 | 🐷待开发 |
| 反弹Shell代理 | | 🐷待开发 | 🐷待开发 |
| CI容器云扫描利用 | | 🐷待开发 | 🐷待开发 |

### 其他特性

| 能力名称 | 原理文档 | 服务端支持 | 客户端支持 |
|---------------------|------|:-----:|:-----:|
| 身份认证加强保密性 | | 🐷待开发 | 🐷待开发 |
| 探活机制/心跳检测 | | 🐷待开发 | 🐷待开发 |
| serverless-devs快速部署 | | 🐷待开发 | 🐷待开发 |
| 跨平台部署后随机选择机制 | | 🐷待开发 | 🐷待开发 |

更多特性相关请移步: [技术文档](https://seamoon.dvkunion.cn/tech/feature/)

## 🧭 支持平台

目前使用下来,serverless契合度最好的还是阿里云。其他厂家收费、支持力度都不太满意。

腾讯云只有三个月的免费额度,最低套餐价格12.8,每月只有2G流量; 并且不支持Go的serverless应用模式部署。

华为云...直接没有远程仓库部署,需要把项目托管到他们自己的dev git,而且这种模式部署还需要自己提供ECS(那我用云函数的意义在哪里?)

国外的厂商免费的场景较少,而且有些注册需要信用卡,门槛很尴尬。

| 平台名称 | 是否支持 |
|--------|:-----:|
| 阿里云 ||
| 腾讯云 | 🐷调研中 |
| 华为云 | 🐷调研中 |
| AWS | 🐷调研中 |
| Google | 🐷调研中 |
| 平台名称 | 是否支持 | 部署文档 |
|----------|:-----:|:------:|
| 阿里云 || [部署]() |
| 腾讯云 || [部署]() |
| 🔥Sealos || [部署]() |
| 华为云 | 🐷调研中 | [部署]() |
| AWS | 🐷调研中 | [部署]() |
| Google | 🐷调研中 | [部署]() |

## ➡️ 后续方向

等serverless支持力度大了之后,将全面修改客户端为grpc模式。
::: tip 关于规则匹配代理
很多代理支持根据不同的规则来进行转发或选择不走代理。月海的定位其实更偏重于利用云原生基础设施来廉价的进行渗透测试工作。

> 关于规则匹配代理:
> 很多代理支持根据不同的规则来进行转发或选择不走代理。月海的定位其实更偏重于利用云原生基础设施来廉价的进行渗透测试工作。
> 因此在当前版本,并不打算支持规则代理,(因为很多代理客户端其实也有这个功能了,走客户端即可实现。)
因此在当前版本,并不打算支持规则代理,(因为很多代理客户端其实也有这个功能了,走客户端即可实现。)
:::

更多发展方向的说明和讨论请移步: [技术文档](https://seamoon.dvkunion.cn/tech/)

## 🕹 ️开始使用

[继续阅读: 开始使用](https://seamoon.dvkunion.cn/guide/start)
[继续阅读: 快速开始](https://seamoon.dvkunion.cn/guide/start)

[跳过新手环节,直接进入部署](https://seamoon.dvkunion.cn/guide/deploy)

## ❗ 免责声明

本工具仅用于学习serverless以及云原生相关技术,请勿用于其他用途。

如您在使用本工具的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。

## 📒 参考文献与项目

感谢各位前辈师傅们的分享与沉淀。

**文章类**

+ [浅谈云函数的利用面](https://xz.aliyun.com/t/9502)
+ [白嫖CDN,打造封不尽IP的代理池](https://freewechat.com/a/MzI0MDI5MTQ3OQ==/2247484068/1)
+ [Serverless 应用开发指南](https://serverless.ink/)
+ [HTTP被动扫描代理的那些事](https://www.freebuf.com/articles/web/212382.html)
+ [Subsocks: 用GO实现一个Socks5安全代理](https://luyuhuang.tech/2020/12/02/subsocks.html)

**项目类**

+ [SFCProxy](https://github.com/shimmeris/SCFProxy)
+ [go-socks5](https://github.com/armon/go-socks5)
+ [subsocks](https://github.com/luyuhuang/subsocks)
+ [gost](https://github.com/ginuerzh/gost)
+ [InCloud](https://github.com/inbug-team/InCloud)
+ [sfc-proxy](https://github.com/Sakurasan/scf-proxy)
+ [Serverless-transitcode](https://github.com/copriwolf/serverless-transitcode)
+ [protoplex](https://github.com/SapphicCode/protoplex)
+ [DFShell](https://github.com/D3Ext/DFShell)
如您在使用本工具的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。
12 changes: 10 additions & 2 deletions docs/guide/00.概述/01.structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@ permalink: /guide/structure
article: false
---

# 项目结构
## 项目结构

月海主要分为两部分:

+ 部署在云端的服务端
+ 客户端

服务端负责实际的业务功能,客户端用于转化用户意图和编排FC调度。
## 客户端

云函数限制了大部分的协议模式,将能力限制在了七层网络;因此我们想在云函数上实现7层及一下的模式,就需要通过本地的客户端来进行协议封装。

由此以来,我们将能够快速的

## 服务端

服务端为实际部署在云厂商的代码,负责实际计算的功能模块。
6 changes: 0 additions & 6 deletions docs/guide/00.概述/02.zero-learning.md

This file was deleted.

14 changes: 8 additions & 6 deletions docs/guide/01.开始使用/01.start.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ article: false

通过该页面,您可以通过推荐的部署方式快速开始使用 SeaMoon。

> 🔥 如果您的钱包和预算有限,并且代理IP需求并不是特别高,这里推荐使用[sealos部署服务端](https://seamoon.dvkunion.cn/guide/deploy/sealos)
> 本页面按照阿里云标准云函数服务进行部署,如果您希望获取到更多自定义的配置和使用方式,[请跳转](https://seamoon.dvkunion.cn/guide/deploy)
::: tip 写在前面
本页面按照阿里云标准云函数服务进行部署,如果您希望获取到更多自定义的配置和使用方式,[请跳转](https://seamoon.dvkunion.cn/guide/deploy)

🔥 如果您的钱包和预算有限,并且代理IP需求并不是特别高,这里推荐使用[sealos部署服务端](https://seamoon.dvkunion.cn/guide/deploy/sealos)
:::

### 事前准备

Expand Down Expand Up @@ -69,7 +72,7 @@ $ s deploy

稍等片刻,你将会得到部署好的两个地址:

```shell
```yaml
SeaMoon-FC-HTTP-Proxy:
.....
url:
Expand All @@ -95,9 +98,9 @@ SeaMoon-FC-HTTP-Proxy:
name: httpTrigger
```
这里是用的都是默认配置,如果你需要更多高级可选项,请继续阅读https://seamoon.dvkunion.cn/guide/deploy
这里是用的都是默认配置,如果你需要更多高级可选项,[请继续阅读](https://seamoon.dvkunion.cn/guide/deploy)
同样,如果你不想使用阿里云,或者想寻求更廉价的计费方式,请继续阅读https://seamoon.dvkunion.cn/guide/deploy
同样,如果你不想使用阿里云,或者想寻求更廉价的计费方式,[请继续阅读](https://seamoon.dvkunion.cn/guide/deploy)
服务端部署完成
Expand All @@ -120,7 +123,6 @@ $ docker run -it -d --net=host dvkunion/seamoon-client
![](https://cdn.dvkunion.cn/seamoon/dfcc22b01c4a4f358bdee59acc5c563b.png)

> 注意,此处填写的值为 Step.2 中输出的 domain字段,并去除 http:// 协议头,属于对应域名即可。
>
开启socks5代理,并保持默认`:1080`不改变。

Expand Down
29 changes: 21 additions & 8 deletions docs/guide/02.服务部署/01.aliyun.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
---
title: 三步部署到阿里云
title: 阿里云
date: 2022-09-28 00:27:13
permalink: /guide/deploy/aliyun
article: false
---

## 阿里云
## 三步部署到阿里云

0. 阿里云首先要开通函数计算服务。
1. fork 该仓库(https://github.com/DVKunion/SeaMoon.git)到您自己的 github 账户下
2. 进入阿里云控制台,点击应用 -> 创建应用
阿里云是使用上最为规范、标准化场景下的serverless部署方式。

如果你对serverless的运作感兴趣,并希望寻找更多的玩法,阿里云是一个不错的选择,各种选项可以帮助你更好地理解和配置serverless。

## 如何部署

### Step.1

+ 阿里云首先要开通函数计算服务。
+ fork 该仓库(https://github.com/DVKunion/SeaMoon.git)到您自己的 github 账户下
+ 进入阿里云控制台,点击应用 -> 创建应用

![创建应用](https://cdn.dvkunion.cn/SeaMoon/deploy-aliyun-1.png)

3. 选择 `通过仓库导入应用` , 授权Github账户后,选择fork好的仓库,如果您之前没有使用过阿里云,在角色权限处还需要进行一次授权。
### Step.2

选择 `通过仓库导入应用` , 授权Github账户后,选择fork好的仓库,如果您之前没有使用过阿里云,在角色权限处还需要进行一次授权。

![导入应用](https://cdn.dvkunion.cn/SeaMoon/deploy-aliyun-2.png)

4. 点击创建,等待服务部署成功,即可获取到代理地址
### Step.3

点击创建,等待服务部署成功,即可获取到代理地址

![img.png](https://cdn.dvkunion.cn/SeaMoon/deploy-aliyun-3.png)

Expand All @@ -32,6 +44,7 @@ article: false
>
> 目前阿里云支持的字段有: cn-hangzhou, cn-beijing, cn-beijing, cn-hangzhou, cn-shanghai, cn-qingdao, cn-zhangjiakou, cn-huhehaote, cn-shenzhen, cn-chengdu, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1, eu-west-1, us-west-1, us-east-1, ap-south-1
5. [开启客户端](https://seamoon.dvkunion.cn/guide/client/), 尽情享用
[开启客户端](https://seamoon.dvkunion.cn/guide/client/), 尽情享用

## 效果展示
![speed.png](https://cdn.dvkunion.cn/SeaMoon/speed.png)
14 changes: 6 additions & 8 deletions docs/guide/02.服务部署/02.sealos.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 部署到Sealos
title: Sealos
date: 2023-07-21 18:29
permalink: /guide/deploy/sealos
article: false
Expand All @@ -9,8 +9,6 @@ article: false

[Sealos公有云地址](https://cloud.sealos.io/)

### 选择Sealos的原因

先说下我喜欢Sealos的原因:

<font color="pink"><b>简单的页面,适合新手小白,无需了解过多的云服务相关知识</b></font>
Expand All @@ -34,17 +32,17 @@ sealos的计费方式真正的做到按照计算量计费,费用透明,整

![](https://cdn.dvkunion.cn/seamoon/4cfd4e22aa954bc7a19d22a4e9b21035.png)

### 如何部署
## 如何部署

sealos上部署seamoon服务将更加简单,只需要鼠标点击操作:

#### STEP.1
### Step.1

注册并登陆[cloud.sealos.io](https://cloud.sealos.io/), 点击`App Launchpad`

![](https://cdn.dvkunion.cn/seamoon/d17d6c38e3e2418db9a1545161ebdaca.png)

#### STEP.2
### Step.2

点击右上角`create application`, 如下填写参数:

Expand All @@ -63,7 +61,7 @@ Network: #此项不要动任何字段,完全按照截图填写
Advance: 配置环境变量: serverMod=socks5 # 如果需要http代理,填写serverMod=http
```

#### STEP.3
### Step.3

填写完成后,点击右上角 `Deploy`, 等待部署完成,状态success后,获取到服务地址

Expand All @@ -72,7 +70,7 @@ Advance: 配置环境变量: serverMod=socks5 # 如果需要http代理,填写s

![](https://cdn.dvkunion.cn/seamoon/444615d4be064ca980e92e2d120beaf3.png)

### 效果
## 效果展示

[旺柴] 谷歌云的IP访问谷歌简直不能再丝滑

Expand Down
Loading

0 comments on commit b8da445

Please sign in to comment.