Skip to content

Commit

Permalink
fix: go-releaser ci config (#3)
Browse files Browse the repository at this point in the history
* docs: update docs structure

* fix: go-releaser ci config
  • Loading branch information
DVKunion committed Jul 18, 2023
1 parent ee5145c commit b489fb3
Show file tree
Hide file tree
Showing 16 changed files with 168 additions and 61 deletions.
11 changes: 2 additions & 9 deletions .github/conf/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,11 @@ builds:
- 6
- 7
ldflags:
- -s -w -X github.com/DVKunion/SeaMoon/pkg/consts.Version=1.0.0
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- -s -w -X github.com/DVKunion/SeaMoon/pkg/consts.Version={{.Version}}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
go-version: 1.18

- name: Build
run: go build --ldflags "-s -w -X github.com/DVKunion/SeaMoon/pkg/consts.Version=1.0.0" cmd/client.go
run: go build --ldflags "-s -w -X github.com/DVKunion/SeaMoon/pkg/consts.Version=${{github.ref_name}}" cmd/client.go

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

<p align="center">

<img src="https://goreportcard.com/badge/github.com/DVKunion/SeaMoon" />
<img src="https://img.shields.io/github/stars/DVKunion/SeaMoon.svg" alt="stars"/>
<img src="https://img.shields.io/github/downloads/dvkunion/seamoon/total?color=orange" alt="downloads" />
<img src="https://img.shields.io/github/languages/top/DVKunion/SeaMoon.svg?&color=blueviolet" alt="languages">
<img src="https://img.shields.io/github/license/DVKunion/SeaMoon.svg?color=brightgreen" alt="license"/>
<img src="https://img.shields.io/badge/LICENSE-MIT-777777.svg" alt="license"/>
</p>

<p align="center">
Expand Down
87 changes: 50 additions & 37 deletions docs/guide/00.概述/00.introduce.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,73 @@
---
title: 简介
date: 2022-09-28 22:39:36
permalink: /guide/introduce
article: false
title: 简介 titleTag: version:1.1.0 date: 2022-09-28 22:39:36 permalink: /guide/introduce article: false
---

## SeaMoon - 月海
## SeaMoon - 月海

![go-report](https://goreportcard.com/badge/github.com/DVKunion/SeaMoon)
![start](https://img.shields.io/github/stars/DVKunion/SeaMoon.svg)
![download](https://img.shields.io/github/downloads/dvkunion/seamoon/total?color=orange)
![language](https://img.shields.io/github/languages/top/DVKunion/SeaMoon.svg?&color=blueviolet)
![license](https://img.shields.io/github/license/DVKunion/SeaMoon.svg?color=brightgreen)
![license](https://img.shields.io/badge/LICENSE-MIT-777777.svg)

<p style="color:pink"><b>
目前工具正处于开发中,版本迭代变动会比较大,可能会存在各种bug和问题,欢迎各位提交</b> <a href="https://github.com/DVKunion/SeaMoon/issues" ><b>Issue</b></a> | <a href="https://github.com/DVKunion/SeaMoon/pulls"><b>Pr</b></a>
</p>

## ☁️ 什么是月海

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

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

说人话的总结,月海其实就是一款利用云函数来隐匿攻击行踪以及分布式处理扫描任务的集成工具
说人话的总结,月海其实就是一款利用云函数来隐匿攻击行踪以及分布式处理扫描任务的跨平台集成工具

## 🌟 月海能做什么

### 网络层

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

| 代理类型 | 技术文档 | 服务端支持 | 客户端支持 |
|-----------|-------------------------------------------------------------------------------|:-----:|:-----:|
| HTTP | [HTTP.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/HTTP.md) |||
| HTTPS | [HTTP.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/HTTP.md) |||
| Socks5 | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) |||
| SS/SSR | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) | 🐷待开发 | 🐷待开发 |
| VMess | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) | 🐷待开发 | 🐷待开发 |
| 链式代理 | | ❌暂无计划 | ❌暂无计划 |
目前网络层功能支持如下:

| 代理类型 | 技术文档 | 服务端支持 | 客户端支持 |
|---------|--------------------------------|:-----:|:-----:|
| HTTP(S) | [HTTP.md](/tech/net/http/) |||
| Socks5 | [Socks5.md](/tech/net/socks5/) |||
| SS/SSR | [SS.md](/tech/net/socks5/) | 🐷待开发 | 🐷待开发 |
| VMess | [VMESS.md](/tech/net/socks5/) | 🐷待开发 | 🐷待开发 |
| 链式代理 | | ❌暂无计划 | ❌暂无计划 |

### 应用层

月海的应用层能力是基于网络层的思考基础上,实现的真正上层渗透业务,例如:端口探测,网络反馈等
月海的应用层能力是基于网络层的思考基础上,实现的真正上层渗透业务。主要分为两个方向:

+ 传统工具云上集成。例如:端口探测,网络反馈等,将传统且重要地渗透步骤打包上云,实现封装。
+ 隐蔽性功能: 重点在于思考如何结合serverless的特性,深入挖掘隐蔽性的一些实现,如:动态webshell连接。

| 能力名称 | 原理文档 | 服务端支持 | 客户端支持 |
|--------------|-----------------------------------------------------------------------------------|:-----:|:-----:|
| 动态WebShell隐匿 | [WebShell.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/app/WEBSHELL.md) | 🐷待开发 | 🐷待开发 |
| 分布式扫描 | | 🐷待开发 | 🐷待开发 |
| 反弹Shell代理 | | 🐷待开发 | 🐷待开发 |
| CI容器云扫描利用 | | 🐷待开发 | 🐷待开发 |
目前应用层功能如下:

| 能力名称 | 原理文档 | 服务端支持 | 客户端支持 |
|--------------|------------------------------------|:-----:|:-----:|
| 动态WebShell隐匿 | [WebShell.md](/tech/app/webshell/) | 🐷待开发 | 🐷待开发 |
| 分布式扫描 | | 🐷待开发 | 🐷待开发 |
| 反弹Shell代理 | | 🐷待开发 | 🐷待开发 |
| CI容器云扫描利用 | | 🐷待开发 | 🐷待开发 |

### 其他特性

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

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

## 🧭 支持平台

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

Expand All @@ -68,38 +85,33 @@ article: false
| AWS | 🐷调研中 |
| Google | 🐷调研中 |

### 其他特性

+ 身份认证加强保密性: 🐶开发中
+ 探活机制/心跳检测: 🐷待开发
+ 多云平台/区域环境部署后随机选择机制: 🐷待开发

### 后续方向
## ➡️ 后续方向

等serverless支持力度大了之后,将全面修改客户端为grpc模式。

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

## 🕹 ️开始使用

[三步部署月海(Sea Moon)到阿里云](https://github.com/DVKunion/SeaMoon/blob/main/docs/DEPLOY.md)
[继续阅读: 开始使用](https://seamoon.dvkunion.cn/guide/start)

[开启月海客户端使用](https://github.com/DVKunion/SeaMoon/blob/main/docs/START.md)
[跳过新手环节,直接进入部署](https://seamoon.dvkunion.cn/guide/deploy)

## ❗ 免责声明

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

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

## 参考文献与项目
## 📒 参考文献与项目

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

**文档类**
**文章类**

+ [浅谈云函数的利用面](https://xz.aliyun.com/t/9502)
+ [白嫖CDN,打造封不尽IP的代理池](https://freewechat.com/a/MzI0MDI5MTQ3OQ==/2247484068/1)
Expand All @@ -116,4 +128,5 @@ article: false
+ [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)
+ [protoplex](https://github.com/SapphicCode/protoplex)
+ [DFShell](https://github.com/D3Ext/DFShell)
18 changes: 18 additions & 0 deletions docs/guide/00.概述/01.structure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: 项目结构
date: 2022-09-30 00:30:21
permalink: /guide/structure
article: false
---

# 项目结构

月海主要分为两部分:

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


## 服务端

服务端形式主要为云函数(FC)模式,主要用于实际运行各项
6 changes: 6 additions & 0 deletions docs/guide/00.概述/02.zero-learning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 使用须知
date: 2022-09-30 00:31:26
permalink: /guide/zero-learning
article: false
---
6 changes: 6 additions & 0 deletions docs/guide/02.快速部署/00.deploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 如何部署
date: 2022-09-30 00:25:17
permalink: /pages/b07687/
article: false
---
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
title: 阿里云部署
title: 三步部署到阿里云
date: 2022-09-28 00:27:13
permalink: /guide/deploy/aliyun
article: false
---

## 阿里云

0. 阿里云首先要开通函数计算服务。
1. fork 该仓库到您自己的 github 账户下
2. 进入阿里云控制台,点击应用 -> 创建应用

Expand Down
12 changes: 12 additions & 0 deletions docs/guide/02.快速部署/02.serverless.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Serverless-Devs
date: 2022-09-29 23:43:29
permalink: /guide/deploy/serverlessDevs
article: false
---

## serverless devs

http://www.serverless-devs.com

通过serverless devs可实现快速部署到各个云平台
15 changes: 15 additions & 0 deletions docs/guide/03.客户端/01.客户端下载.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: 客户端下载
date: 2022-09-29 23:45:03
permalink: /guide/client/download
article: false
---

## 客户端下载

[Github Release](https://github.com/DVKunion/SeaMoon/releases) 界面。在最新版本列表哪,选择您对应系统型号的client 包下载。

> 由于项目仍处于开发阶段,请尽量保证使用最新版本的客户端使用。
![release.png](https://cdn.dvkunion.cn/seamoon/b99b44ea50754bef959bfee42a07059b.png)

14 changes: 14 additions & 0 deletions docs/guide/03.客户端/02.客户端配置.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: 客户端配置
date: 2022-09-30 00:01:03
permalink: /guide/client/setting
article: false
---

## 客户端配置

客户端界面如下:

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

点击配置管理
15 changes: 15 additions & 0 deletions docs/tech/00.定位与特性/00.position.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: 月海的定位
date: 2022-09-30 00:08:14
permalink: /tech/position/
article: false
---

# Position

## 前言: 为什么要写月海这个工具? (Why Sea Moon)

+ 随着云原生不断地推广,希望渗透测试也能够与时俱进,开启一个新的纪元。不论从测试的手段还是挖掘方向,都应该朝着时代发展的方向跟进。
+ 现有项目模式较为松散,部署还是需要花费一些经历来理解和操作。而类似阿里云已经上升到serverless应用的层级,相应的部署方式和玩法更新颖。
+ 如果将这些项目比作是概念性工具,那么月海致力于打造的是一个较为成熟化的,能够快速简易应用的工具集产品。
+ 月海希望能够抛砖引玉,提出一个简易的框架和模式,将现有的大部分可迁移至云端操作的攻击手段集成进来,最终达到随手拿来的一台崭新电脑,5分钟即可进入攻击状态(理想)。
10 changes: 1 addition & 9 deletions docs/tech/00.定位与特性/01.FEATURE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
---
title: FEATURE
title: 月海的特性
date: 2022-09-28 00:27:13
permalink: /tech/feature/
article: false
---

# FEATURE

## 0.0.0 前言: 为什么要写月海这个工具? (Why Sea Moon)

1. 随着云原生不断地推广,希望渗透测试也能够与时俱进,开启一个新的纪元。不论从测试的手段还是挖掘方向,都应该朝着时代发展的方向跟进。
2. 现有的大部分云函数利用止步于网络层(http/sock5/c2),且大部分代理需要自行编写特定的Client端。
3. 现有项目模式较为松散,部署还是需要花费一些经历来理解和操作。而类似阿里云已经上升到serverless应用的层级,相应的部署方式和玩法更新颖。
4. 如果将这些项目比作是概念性工具,那么月海致力于打造的是一个较为成熟化的,能够快速简易应用的工具集产品。
5. 月海希望能够抛砖引玉,提出一个简易的框架和模式,将现有的大部分可迁移至云端操作的攻击手段集成进来,最终达到随手拿来的一台崭新电脑,5分钟即可进入攻击状态(理想)。

## 1.1.0

+ 修复了HTTP连接的一些bug,并使用更活跃的客户端代理库 `martian` 代替 `goproxy`
Expand Down
20 changes: 20 additions & 0 deletions docs/tech/00.定位与特性/01.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: 月海的特性
date: 2022-09-28 00:27:13
permalink: /tech/feature/
article: false
---

# FEATURE

## 1.1.0

+ 修复了HTTP连接的一些bug,并使用更活跃的客户端代理库 `martian` 代替 `goproxy`
+ 重构了客户端结构,提供了一个简易的B/S架构的控制管理端
+ 修复了SOCKS链接不断开导致的函数计费超时问题。
+ 增加了Controller管理

## 1.0.0

+ 重新实现了 https://github.com/shimmeris/SCFProxy 大佬原有的网络功能: HTTP代理、SOCKs5代理
+ 优化了 SCFProxy 的部分机制:比如socks5的连接模式、socks5 15分钟超时的问题等。
4 changes: 2 additions & 2 deletions docs/tech/01.网络层/02.SOCKS5.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ article: false
---
# SOCKS5

## s5效果
## SOCKS5 效果

相比http代理更稳定,速度更快。
![speed.png](https://cdn.dvkunion.cn/SeaMoon/speed2.png)

## 原理
## SOCKS5 原理

### SOCKS5

Expand Down
3 changes: 2 additions & 1 deletion static/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ <h1 class="ui center inverted aligned icon header">
<div class="content center">
<p>SeaMoon - 月海</p>
<p align="center">
<img src="https://goreportcard.com/badge/github.com/DVKunion/SeaMoon" />
<img src="https://img.shields.io/github/stars/DVKunion/SeaMoon.svg" alt="stars"/>
<img src="https://img.shields.io/github/downloads/dvkunion/seamoon/total?color=orange" alt="downloads" />
<img src="https://img.shields.io/github/languages/top/DVKunion/SeaMoon.svg?&color=blueviolet" alt="languages">
<img src="https://img.shields.io/github/license/DVKunion/SeaMoon.svg?color=brightgreen" alt="license"/>
<img src="https://img.shields.io/badge/LICENSE-MIT-777777.svg" alt="license"/>
<a href='https://github.com/DVKunion/SeaMoon'><img
src="https://img.shields.io/github/watchers/dvkunion/seamoon?style=social"/></a>
</p>
Expand Down

0 comments on commit b489fb3

Please sign in to comment.