Projects STRLCPY SeaMoon Commits 8d09fd0c
🤬
  • ■ ■ ■ ■ ■ ■
    .github/workflows/pages.yml
     1 +# Simple workflow for deploying static content to GitHub Pages
     2 +name: Deploy
     3 + 
     4 +on:
     5 + push:
     6 + branches: [ "main", "feat/docs" ]
     7 +jobs:
     8 + # Single deploy job since we're just deploying
     9 + deploy:
     10 + environment:
     11 + name: github-pages
     12 + url: ${{ steps.deployment.outputs.page_url }}
     13 + runs-on: ubuntu-latest
     14 + strategy:
     15 + matrix:
     16 + node-version: [ 14.x ]
     17 + steps:
     18 + - name: Checkout
     19 + uses: actions/checkout@v3
     20 + - name: Use Node.js ${{ matrix.node-version }}
     21 + uses: actions/setup-node@v1
     22 + with:
     23 + node-version: ${{ matrix.node-version }}
     24 + - name: Build
     25 + # 安装 Node 之后就可以执行构建脚本
     26 + run: |
     27 + npm install yarn -g
     28 + yarn install && yarn build
     29 + echo seamoon.dvkunion.cn > ./docs/.vuepress/dist/CNAME
     30 + - name: Deploy to gh-pages
     31 + uses: peaceiris/actions-gh-pages@v3
     32 + with:
     33 + # Github 会在 workflow 中自动生成 GIHUBT_TOKEN,用于认证 workflow 的运行
     34 + github_token: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
     35 + # 静态资源目录设置
     36 + publish_dir: ./docs/.vuepress/dist
     37 + # 默认发布到 gh-pages 分支上,可以指定特定的发布分支(不能选拉取代码的分支)
     38 + publish_branch: gh-pages
     39 + 
  • ■ ■ ■ ■ ■
    .gitignore
    skipped 25 lines
    26 26  *.toml
    27 27  .config
    28 28  .secret
     29 +node_modules
  • ■ ■ ■ ■ ■
    README.md
    skipped 30 lines
    31 31   
    32 32  说人话的总结,月海其实就是一款利用云函数来隐匿攻击行踪以及分布式处理扫描任务的集成工具,
    33 33   
    34  -## 🌟 月海能做什么
    35  - 
    36  -### 网络层
    37  - 
    38  -网络层支持是月海的基础功能,也是云函数最基本的优势和特性。 支持一级代理 / 链式代理,
    39  - 
    40  -| 代理类型 | 原理文档 | 服务端支持 | 客户端支持 |
    41  -|-----------|-------------------------------------------------------------------------------|:-----:|:-----:|
    42  -| HTTP | [HTTP.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/HTTP.md) | ✅ | ✅ |
    43  -| HTTPS | [HTTP.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/HTTP.md) | ✅ | ✅ |
    44  -| Socks5 | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) | ✅ | ✅ |
    45  -| SS/SSR | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) | 🐷待开发 | 🐷待开发 |
    46  -| VMess | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) | 🐷待开发 | 🐷待开发 |
    47  -| 链式代理 | | ❌暂无计划 | ❌暂无计划 |
    48  - 
    49  -### 应用层
    50  - 
    51  -月海的应用层能力是基于网络层的思考基础上,实现的真正上层渗透业务,例如:端口探测,网络反馈等
    52  - 
    53  -| 能力名称 | 原理文档 | 服务端支持 | 客户端支持 |
    54  -|--------------|-----------------------------------------------------------------------------------|:-----:|:-----:|
    55  -| 动态WebShell隐匿 | [WebShell.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/app/WEBSHELL.md) | 🐷待开发 | 🐷待开发 |
    56  -| 分布式扫描 | | 🐷待开发 | 🐷待开发 |
    57  -| 反弹Shell代理 | | 🐷待开发 | 🐷待开发 |
    58  -| CI容器云扫描利用 | | 🐷待开发 | 🐷待开发 |
    59  - 
    60  -### 支持平台
    61  - 
    62  -目前使用下来,serverless契合度最好的还是阿里云。其他厂家收费、支持力度都不太满意。
    63  - 
    64  -腾讯云只有三个月的免费额度,最低套餐价格12.8,每月只有2G流量; 并且不支持Go的serverless应用模式部署。
    65  - 
    66  -华为云...直接没有远程仓库部署,需要把项目托管到他们自己的dev git,而且这种模式部署还需要自己提供ECS(那我用云函数的意义在哪里?)
    67  - 
    68  -国外的厂商免费的场景较少,而且有些注册需要信用卡,门槛很尴尬。
    69  - 
    70  -| 平台名称 | 是否支持 |
    71  -|--------|:-----:|
    72  -| 阿里云 | ✅ |
    73  -| 腾讯云 | 🐷调研中 |
    74  -| 华为云 | 🐷调研中 |
    75  -| AWS | 🐷调研中 |
    76  -| Google | 🐷调研中 |
    77  - 
    78  -### 其他特性
    79  - 
    80  -+ 身份认证加强保密性: 🐶开发中
    81  -+ 探活机制/心跳检测: 🐷待开发
    82  -+ 多云平台/区域环境部署后随机选择机制: 🐷待开发
    83  - 
    84  -### 后续方向
    85  - 
    86  -等serverless支持力度大了之后,将全面修改客户端为grpc模式。
    87  - 
    88  -> 关于规则匹配代理:
    89  -> 很多代理支持根据不同的规则来进行转发或选择不走代理。月海的定位其实更偏重于利用云原生基础设施来廉价的进行渗透测试工作。
    90  -> 因此在当前版本,并不打算支持规则代理,(因为很多代理客户端其实也有这个功能了,走客户端即可实现。)
    91  ->
    92  - 
    93 34  ## 🕹 ️开始使用
    94 35   
    95  -[三步部署月海(Sea Moon)到阿里云](https://github.com/DVKunion/SeaMoon/blob/main/docs/DEPLOY.md)
    96  - 
    97  -[开启月海客户端使用](https://github.com/DVKunion/SeaMoon/blob/main/docs/START.md)
     36 +[使用手册](https://seamoon.dvkunion.cn)
    98 37   
    99 38  ## ❗ 免责声明
    100 39   
    skipped 1 lines
    102 41   
    103 42  如您在使用本工具的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。
    104 43   
    105  -## 参考文献与项目
     44 +## ✨ 联系方式
    106 45   
    107  -感谢各位前辈师傅们的分享与沉淀。
    108  - 
    109  -**文档类**
    110  - 
    111  -+ [浅谈云函数的利用面](https://xz.aliyun.com/t/9502)
    112  -+ [白嫖CDN,打造封不尽IP的代理池](https://freewechat.com/a/MzI0MDI5MTQ3OQ==/2247484068/1)
    113  -+ [Serverless 应用开发指南](https://serverless.ink/)
    114  -+ [HTTP被动扫描代理的那些事](https://www.freebuf.com/articles/web/212382.html)
    115  -+ [Subsocks: 用GO实现一个Socks5安全代理](https://luyuhuang.tech/2020/12/02/subsocks.html)
    116  - 
    117  -**项目类**
    118  - 
    119  -+ [SFCProxy](https://github.com/shimmeris/SCFProxy)
    120  -+ [go-socks5](https://github.com/armon/go-socks5)
    121  -+ [subsocks](https://github.com/luyuhuang/subsocks)
    122  -+ [gost](https://github.com/ginuerzh/gost)
    123  -+ [InCloud](https://github.com/inbug-team/InCloud)
    124  -+ [sfc-proxy](https://github.com/Sakurasan/scf-proxy)
    125  -+ [Serverless-transitcode](https://github.com/copriwolf/serverless-transitcode)
    126  -+ [protoplex](https://github.com/SapphicCode/protoplex)
     46 +wechat:
     47 +![wechat](https://cdn.dvkunion.cn/SeaMoon/WX20220929-183606.png)
  • ■ ■ ■ ■ ■ ■
    docs/.vuepress/config.js
     1 +module.exports = {
     2 + title: "SeaMoon",
     3 + theme: 'vdoing',
     4 + description: "月海(Sea Moon) 是一款 FaaS/BaaS 实现的 Serverless 云渗透工具集,致力于开启云原生的渗透模式。",
     5 + 
     6 + head: [ // 注入到页面<head> 中的标签,格式[tagName, { attrName: attrValue }, innerHTML?]
     7 + ['link', {rel: 'icon', href: '/img/favicon.ico'}], //favicons,资源放在public文件夹
     8 + ['meta', {name: 'keywords', content: 'serverless,proxy,pentest,seamoon'}],
     9 + ['script', {}, `
     10 + var _hmt = _hmt || [];
     11 + (function() {
     12 + var hm = document.createElement("script");
     13 + hm.src = "https://hm.baidu.com/hm.js?7dac4248d29ddaacd4b3c0b71d9b2015";
     14 + var s = document.getElementsByTagName("script")[0];
     15 + s.parentNode.insertBefore(hm, s);
     16 + })();
     17 + </script>
     18 + `],
     19 + ],
     20 + 
     21 + themeConfig: {
     22 + defaultMode: "dark",
     23 + bodyBgImgOpacity: 1.0,
     24 + nav: [
     25 + {text: '首页', link: '/'},
     26 + {
     27 + text: '使用手册', link: '/guide/introduce/'
     28 + },
     29 + {
     30 + text: '技术文档', link: '/tech/feature/'
     31 + }
     32 + ],
     33 + archive: false,
     34 + category: false,
     35 + tag: false,
     36 + updateBar: { // 最近更新栏
     37 + showToArticle: false, // 显示到文章页底部,默认true
     38 + },
     39 + sidebar: 'structuring', // 'structuring' | { mode: 'structuring', collapsable: Boolean} | 'auto' | 自定义
     40 + sidebarOpen: true,
     41 + searchMaxSuggestions: 10,
     42 + repo: 'Dvkunion/SeaMoon',
     43 + author: { // 文章默认的作者信息,可在md文件中单独配置此信息 String | {name: String, href: String}
     44 + name: 'DVKunion', // 必需
     45 + href: 'https://github.com/DVKunion' // 可选的
     46 + },
     47 + social: { // 社交图标,显示于博主信息栏和页脚栏
     48 + icons: [
     49 + {
     50 + iconClass: 'icon-youjian',
     51 + title: '发邮件',
     52 + link: 'mailto:[email protected]'
     53 + },
     54 + {
     55 + iconClass: 'icon-mao',
     56 + title: '放一只猫',
     57 + link: 'http://www.serverless-devs.com'
     58 + },
     59 + {
     60 + iconClass: 'icon-github',
     61 + title: 'GitHub',
     62 + link: 'https://github.com/Dvkunion'
     63 + },
     64 + {
     65 + iconClass: 'icon-weixin',
     66 + title: 'weixin',
     67 + link: ''
     68 + },
     69 + ]
     70 + },
     71 + footer: { // 页脚信息
     72 + createYear: 2022, // 博客创建年份
     73 + copyrightInfo: 'DVKunion | MIT License', // 博客版权信息,支持a标签
     74 + },
     75 + extendFrontmatter: {
     76 + article: false
     77 + }
     78 + },
     79 +}
  • docs/.vuepress/public/img/favicon.ico
  • ■ ■ ■ ■ ■ ■
    docs/.vuepress/styles/index.styl
     1 +.home-wrapper .banner .banner-conent .hero img{
     2 + margin-top: -2rem !important;
     3 + margin-bottom: -1.5rem !important;
     4 +}
     5 + 
     6 +.home-wrapper .banner .banner-conent .hero .action-button{
     7 + margin-top: 2rem;
     8 +}
     9 + 
     10 +.home-wrapper .banner .banner-conent .features{
     11 + padding-top: 1rem !important;
     12 + padding-bottom: 1rem !important;
     13 +}
     14 + 
     15 +.right-menu-wrapper .right-menu-content .right-menu-item.level3{
     16 + padding-left: 37px !important;
     17 +}
  • ■ ■ ■ ■ ■ ■
    docs/.vuepress/styles/palette.styl
     1 +// 主题调色板
     2 + 
     3 +// 原主题预设变量
     4 +// 颜色
     5 +// $accentColor = #3eaf7c
     6 +// $textColor = #2c3e50
     7 +// $borderColor = #eaecef
     8 +// $codeBgColor = #282c34
     9 +// $arrowBgColor = #ccc
     10 +// $badgeTipColor = #42b983
     11 +// $badgeWarningColor = darken(#ffe564, 35%)
     12 +// $badgeErrorColor = #DA5961
     13 +// 布局
     14 +// $navbarHeight = 3.6rem
     15 +// $sidebarWidth = 20rem
     16 +// $contentWidth = 740px
     17 +// $homePageWidth = 960px
     18 +// 代码块
     19 +// $lineNumbersWrapperWidth = 3.5rem
     20 + 
     21 +//***vdoing主题-变量***//
     22 + 
     23 +// 颜色
     24 + 
     25 +$bannerTextColor = #fff // 首页banner区(博客标题)文本颜色
     26 +$accentColor = #11A8CD
     27 +$activeColor = #ff5722
     28 +$arrowBgColor = #ccc
     29 +// 放弃使用
     30 +// $badgeTipColor = #42b983
     31 +// $badgeWarningColor = darken(#ffe564, 35%)
     32 +// $badgeErrorColor = #DA5961
     33 + 
     34 +// 布局
     35 +$navbarHeight = 3.6rem
     36 +$sidebarWidth = 18rem
     37 +$contentWidth = 860px
     38 +$homePageWidth = 1100px
     39 +$rightMenuWidth = 230px // 右侧菜单
     40 + 
     41 +// 代码块
     42 +$lineNumbersWrapperWidth = 2.5rem
     43 + 
     44 +// 深色模式
     45 +.theme-mode-dark
     46 + --bodyBg: #22272e;
     47 + --mainBg: #22272e;
     48 + --sidebarBg: rgba(30,30,34,.8)
     49 + --blurBg: rgba(30,30,34,.8)
     50 + --customBlockBg: rgb(39,39,43)
     51 + --textColor: #adbac7;
     52 + --textLightenColor: #8b9eb0;
     53 + --borderColor: #2C2C3A
     54 + --borderColor: #30363d
     55 + --codeBg: #252526
     56 + --codeColor: #fff
     57 + codeThemeDark()
     58 + 
     59 +.theme-style-line.theme-mode-dark
     60 + --bodyBg: rgba(30,30,34,1)
  • ■ ■ ■ ■ ■ ■
    docs/README.md
     1 +---
     2 +home: true
     3 +heroImage: https://cdn.dvkunion.cn/SeaMoon/logo.png
     4 +heroText: SeaMoon - 月海
     5 +tagline: 🌕 月出于云却隐于海
     6 +actionText: 快速上手 →
     7 +actionLink: /guide/introduce/
     8 +bannerBg: none
     9 +postList: none
     10 +features:
     11 +- title: 🫥 隐匿
     12 + details: 基于 FaaS/BaaS 实现动态IP,云上渗透。
     13 +- title: 🗃️ 集成
     14 + details: 在传统渗透的基础上,集成常用功能,实现零学习成本隐匿。
     15 +- title: 🚀 便携
     16 + details: 以 Serverless Devs为基础,实现跨平台快速部署。
     17 +---
  • ■ ■ ■ ■ ■ ■
    docs/guide/00.概述/00.introduce.md
     1 +---
     2 +title: 简介
     3 +date: 2022-09-28 22:39:36
     4 +permalink: /guide/introduce
     5 +article: false
     6 +---
     7 + 
     8 +## SeaMoon - 月海
     9 +![start](https://img.shields.io/github/stars/DVKunion/SeaMoon.svg)
     10 +![download](https://img.shields.io/github/downloads/dvkunion/seamoon/total?color=orange)
     11 +![language](https://img.shields.io/github/languages/top/DVKunion/SeaMoon.svg?&color=blueviolet)
     12 +![license](https://img.shields.io/github/license/DVKunion/SeaMoon.svg?color=brightgreen)
     13 + 
     14 +<p style="color:pink"><b>
     15 +目前工具正处于开发中,版本迭代变动会比较大,可能会存在各种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>
     16 +</p>
     17 + 
     18 +## ☁️ 什么是月海
     19 +> 🌕 月出于云却隐于海
     20 + 
     21 +月海(Sea Moon) 是一款 FaaS/BaaS 实现的 Serverless 云渗透工具集,致力于开启云原生的渗透模式。
     22 + 
     23 +月海之名取自于苏轼的《西江月·顷在黄州》,寓意月海取自于传统安全工具,用之于云,最终达到隐匿于海的效果。
     24 + 
     25 +说人话的总结,月海其实就是一款利用云函数来隐匿攻击行踪以及分布式处理扫描任务的集成工具,
     26 + 
     27 +## 🌟 月海能做什么
     28 + 
     29 +### 网络层
     30 + 
     31 +网络层支持是月海的基础功能,也是云函数最基本的优势和特性。 支持一级代理 / 链式代理,
     32 + 
     33 +| 代理类型 | 技术文档 | 服务端支持 | 客户端支持 |
     34 +|-----------|-------------------------------------------------------------------------------|:-----:|:-----:|
     35 +| HTTP | [HTTP.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/HTTP.md) | ✅ | ✅ |
     36 +| HTTPS | [HTTP.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/HTTP.md) | ✅ | ✅ |
     37 +| Socks5 | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) | ✅ | ✅ |
     38 +| SS/SSR | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) | 🐷待开发 | 🐷待开发 |
     39 +| VMess | [Socks5.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/net/SOCKS5.md) | 🐷待开发 | 🐷待开发 |
     40 +| 链式代理 | | ❌暂无计划 | ❌暂无计划 |
     41 + 
     42 +### 应用层
     43 + 
     44 +月海的应用层能力是基于网络层的思考基础上,实现的真正上层渗透业务,例如:端口探测,网络反馈等
     45 + 
     46 +| 能力名称 | 原理文档 | 服务端支持 | 客户端支持 |
     47 +|--------------|-----------------------------------------------------------------------------------|:-----:|:-----:|
     48 +| 动态WebShell隐匿 | [WebShell.md](https://github.com/DVKunion/SeaMoon/blob/main/docs/app/WEBSHELL.md) | 🐷待开发 | 🐷待开发 |
     49 +| 分布式扫描 | | 🐷待开发 | 🐷待开发 |
     50 +| 反弹Shell代理 | | 🐷待开发 | 🐷待开发 |
     51 +| CI容器云扫描利用 | | 🐷待开发 | 🐷待开发 |
     52 + 
     53 +### 支持平台
     54 + 
     55 +目前使用下来,serverless契合度最好的还是阿里云。其他厂家收费、支持力度都不太满意。
     56 + 
     57 +腾讯云只有三个月的免费额度,最低套餐价格12.8,每月只有2G流量; 并且不支持Go的serverless应用模式部署。
     58 + 
     59 +华为云...直接没有远程仓库部署,需要把项目托管到他们自己的dev git,而且这种模式部署还需要自己提供ECS(那我用云函数的意义在哪里?)
     60 + 
     61 +国外的厂商免费的场景较少,而且有些注册需要信用卡,门槛很尴尬。
     62 + 
     63 +| 平台名称 | 是否支持 |
     64 +|--------|:-----:|
     65 +| 阿里云 | ✅ |
     66 +| 腾讯云 | 🐷调研中 |
     67 +| 华为云 | 🐷调研中 |
     68 +| AWS | 🐷调研中 |
     69 +| Google | 🐷调研中 |
     70 + 
     71 +### 其他特性
     72 + 
     73 ++ 身份认证加强保密性: 🐶开发中
     74 ++ 探活机制/心跳检测: 🐷待开发
     75 ++ 多云平台/区域环境部署后随机选择机制: 🐷待开发
     76 + 
     77 +### 后续方向
     78 + 
     79 +等serverless支持力度大了之后,将全面修改客户端为grpc模式。
     80 + 
     81 +> 关于规则匹配代理:
     82 +> 很多代理支持根据不同的规则来进行转发或选择不走代理。月海的定位其实更偏重于利用云原生基础设施来廉价的进行渗透测试工作。
     83 +> 因此在当前版本,并不打算支持规则代理,(因为很多代理客户端其实也有这个功能了,走客户端即可实现。)
     84 +>
     85 + 
     86 +## 🕹 ️开始使用
     87 + 
     88 +[三步部署月海(Sea Moon)到阿里云](https://github.com/DVKunion/SeaMoon/blob/main/docs/DEPLOY.md)
     89 + 
     90 +[开启月海客户端使用](https://github.com/DVKunion/SeaMoon/blob/main/docs/START.md)
     91 + 
     92 +## ❗ 免责声明
     93 + 
     94 +本工具仅用于学习serverless以及云原生相关技术,请勿用于其他用途。
     95 + 
     96 +如您在使用本工具的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。
     97 + 
     98 +## 参考文献与项目
     99 + 
     100 +感谢各位前辈师傅们的分享与沉淀。
     101 + 
     102 +**文档类**
     103 + 
     104 ++ [浅谈云函数的利用面](https://xz.aliyun.com/t/9502)
     105 ++ [白嫖CDN,打造封不尽IP的代理池](https://freewechat.com/a/MzI0MDI5MTQ3OQ==/2247484068/1)
     106 ++ [Serverless 应用开发指南](https://serverless.ink/)
     107 ++ [HTTP被动扫描代理的那些事](https://www.freebuf.com/articles/web/212382.html)
     108 ++ [Subsocks: 用GO实现一个Socks5安全代理](https://luyuhuang.tech/2020/12/02/subsocks.html)
     109 + 
     110 +**项目类**
     111 + 
     112 ++ [SFCProxy](https://github.com/shimmeris/SCFProxy)
     113 ++ [go-socks5](https://github.com/armon/go-socks5)
     114 ++ [subsocks](https://github.com/luyuhuang/subsocks)
     115 ++ [gost](https://github.com/ginuerzh/gost)
     116 ++ [InCloud](https://github.com/inbug-team/InCloud)
     117 ++ [sfc-proxy](https://github.com/Sakurasan/scf-proxy)
     118 ++ [Serverless-transitcode](https://github.com/copriwolf/serverless-transitcode)
     119 ++ [protoplex](https://github.com/SapphicCode/protoplex)
  • ■ ■ ■ ■ ■ ■
    docs/START.md docs/guide/01.开始使用/01.start.md
    1  -# 客户端使用手册
     1 +---
     2 +title: 快速开始
     3 +date: 2022-09-28 00:27:13
     4 +permalink: /guide/start
     5 +article: false
     6 +---
    2 7   
    3 8  > 在阅读客户端使用手册之前,请确保您已经阅读并部署好了[云端服务](https://github.com/DVKunion/SeaMoon/blob/main/docs/DEPLOY.md)
    4 9   
    5 10  ## 客户端使用
    6  - 
    7  -> Github Action自动打包还在开发中,后续会陆续支持各种平台环境的Client,点击下载即可用。
    8 11   
    9 12  客户端启动:
    10 13  `go mod tidy`
    skipped 27 lines
  • ■ ■ ■ ■ ■
    docs/DEPLOY.md docs/guide/02.服务部署/01.aliyun.md
    1  -# 部署
     1 +---
     2 +title: 阿里云部署
     3 +date: 2022-09-28 00:27:13
     4 +permalink: /guide/deploy/aliyun
     5 +article: false
     6 +---
    2 7   
    3 8  ## 阿里云
    4 9   
    skipped 27 lines
  • ■ ■ ■ ■ ■ ■
    docs/FEATURE.md docs/tech/00.定位与特性/01.FEATURE.md
     1 +---
     2 +title: FEATURE
     3 +date: 2022-09-28 00:27:13
     4 +permalink: /tech/feature/
     5 +article: false
     6 +---
     7 + 
    1 8  # FEATURE
    2 9   
    3 10  ## 0.0.0 前言: 为什么要写月海这个工具? (Why Sea Moon)
    skipped 18 lines
  • ■ ■ ■ ■ ■ ■
    docs/net/HTTP.md docs/tech/01.网络层/01.HTTP.md
     1 +---
     2 +title: HTTP
     3 +date: 2022-08-30 19:47:20
     4 +permalink: /tech/net/http/
     5 +article: false
     6 +---
    1 7  # HTTP
    2 8   
    3 9  [TODO] 重构HTTP逻辑,通过net进行转发而不是上层的http
    skipped 70 lines
  • ■ ■ ■ ■ ■ ■
    docs/net/SOCKS5.md docs/tech/01.网络层/02.SOCKS5.md
     1 +---
     2 +title: SOCKS5
     3 +date: 2022-08-30 19:47:32
     4 +permalink: /tech/net/socks5/
     5 +article: false
     6 +---
    1 7  # SOCKS5
    2 8   
    3 9  ## s5效果
    skipped 78 lines
  • ■ ■ ■ ■ ■
    docs/app/WEBSHELL.md docs/tech/02.应用层/01.WEBSHELL.md
    1  -# 动态WebShell隐匿连接
     1 +---
     2 +title: 动态WebShell隐匿连接
     3 +date: 2022-08-30 18:59:24
     4 +permalink: /tech/app/webshell/
     5 +article: false
     6 +---
    2 7   
    3 8  原理基于云函数提供的IP随机性,在应用层做了更多的操作。
    4 9   
    skipped 13 lines
  • ■ ■ ■ ■ ■ ■
    package.json
     1 +{
     2 + "name": "SeaMoon",
     3 + "version": "1.0.1",
     4 + "main": "index.js",
     5 + "license": "MIT",
     6 + "repository": "https://github.com/DVKunion/SeaMoon",
     7 + "author": "DVKunion",
     8 + "scripts": {
     9 + "dev": "vuepress dev docs",
     10 + "build": "vuepress build docs",
     11 + "updateTheme": "yarn remove vuepress-theme-vdoing && rm -rf node_modules && yarn && yarn add vuepress-theme-vdoing -D",
     12 + "editFm": "node utils/editFrontmatter.js"
     13 + },
     14 + "devDependencies": {
     15 + "vuepress": "^1.9.7",
     16 + "vuepress-theme-vdoing": "^1.12.8"
     17 + }
     18 +}
     19 + 
  • ■ ■ ■ ■ ■
    pkg/server/websocket.go
    skipped 24 lines
    25 25   
    26 26  func (ws *WebsocketServer) Close() error {
    27 27   // ws need send close message first to avoid err : close 1006 (abnormal closure): unexpected EOF
     28 + // todo: panic - concurrent write to websocket connection
    28 29   err := ws.wConn.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(websocket.CloseNormalClosure, "close"))
    29 30   if err != nil {
    30 31   return err
    skipped 25 lines
  • yarn.lock
    Diff is too large to be displayed.
Please wait...
Page is in error, reload to recover