• Stars
    star
    128
  • Rank 272,430 (Top 6 %)
  • Language
    TypeScript
  • Created about 1 year ago
  • Updated 26 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

牧云社区版

🐑 牧云主机安全平台

欢迎使用牧云主机安全平台!我们致力于帮助用户更轻松地管理他们的云主机。

🕹️ 使用牧云插件

我们提供了两种使用牧云插件的方式,分别是通过牧云主机管理助手和独立 CLI 工具使用。

🌐 通过牧云主机管理助手使用

你可以在 官网 安装牧云主机管理助手,安装后即可使用其中的牧云插件。使用过程中遇到的问题欢迎来这里发 Issue.

💻 通过独立 CLI 工具使用

通过 cargo 安装 (🔥推荐)

Arch Linux:

# Install openssl-dev first
sudo pacman -S pkg-config openssl
cargo +nightly install collie-app-cli

Debian and Ubuntu:

sudo apt install pkg-config libssl-dev
cargo +nightly install collie-app-cli

CentOS:

yum install pkg-config openssl-devel
cargo +nightly install collie-app-cli

Fedora:

sudo dnf install pkg-config openssl-devel
cargo +nightly install collie-app-cli

Alpine Linux:

apk add pkgconfig openssl-dev
cargo +nightly install collie-app-cli

macOS (Homebrew):

brew install openssl@3
cargo +nightly install collie-app-cli

macOS (MacPorts):

sudo port install openssl
cargo +nightly install collie-app-cli

macOS (pkgsrc):

sudo pkgin install openssl
cargo +nightly install collie-app-cli

手工安装

  1. Release 下载 合你系统的 CLI 工具
  2. 复制到你的 bin 目录

🔨 牧云插件快速开发指南

首先你需要参考上一节安装 CLI 工具

创建模版应用

collie-app-cli new <your_new_app>

修改你的应用

cd <your_new_app>
# edit your template app

详细参见:

  1. 应用结构说明
  2. manifest.yaml 说明
  3. 应用生命周期说明

查看渲染结果

collie-app-cli up --dry

渲染结果在 .render

实际测试

启动应用:

collie-app-cli up

停止应用:

collie-app-cli down

应用结构说明

redis
├── config                  # 可选的自定义文件夹(嵌套文件夹,最大 10 层)
│   └── redis.conf          # 可选的自定义文件
├── docker-compose.yaml     # 必要的 docker compose 描述文件
├── favicon.png             # 必要的 应用图标
├── manifest.yaml           # 必要的 应用核心 manifest 文件
└── scripts                 # 必要的 脚本文件目录
    ├── init.sh             # 必要的 安装后的自定义初始化脚本(无需可留空)
    ├── uninstall.sh        # 必要的 卸载后的自定义卸载脚本(无需可留空)
    └── upgrade.sh          # 必要的 升级后的自定义卸载脚本(无需可留空)

Manifest

metadata:
  name: redis                               # 插件名字
  desc: fast kv database.                   # 插件描述
  tags:                                     # 插件标签
    - web
  version: 0.1.0                            # 插件版本
  homepage: https://example.com             # 插件主页
  author:                                   # 作者信息
    name: your_name
    mail: [email protected]
  resource:                                 # 该插件所需要的资源
    limit:                                  # 最低资源限制
      cpu: 1                                # 所需的 CPU 核心数量
      memory: 1024M                         # 所需的内存,支持后缀,如 M,G,Mib,MiB,GiB 等
      disk: 1G                              # 所需的磁盘,支持后缀,如 M,G,Mib,MiB,GiB 等
    recommend:
      cpu: 2
      memory: 2048M
      disk: 2G

templates:                                  # 需要渲染的模版列表,路径时相对于插件目录的
  - docker-compose.yaml
  - config/custom.conf

ports:
  web:                                      # 用于在模版中使用的名字 访问该变量的语法 {{ports.web.ip}}:{{ports.web.port}}
    ip: 0.0.0.0                             # 端口绑定的 IP
    port: 80                                # 端口绑定的 端口
    desc: web                               # 描述信息,会在牧云主机助手创建应用时显示

variables:
  password:                                 # 用于在模版中使用的名字 访问该变量的语法 {{variables.password.value}}
    name: 服务密码                           # 描述性的名字,如 XX 密码
    desc: 用于访问服务时用的密码,请注意复杂度  # 提示性的描述信息,如 请注意密码复杂度
    value: wPMihYE                          # 默认的值,可以在创建应用时通过 UI 覆盖

应用生命周期说明

生命周期

More Repositories

1

xray

一款完善的安全评估工具,支持常见 web 安全问题扫描和自定义 poc | 使用之前务必先阅读文档
Vue
9,727
star
2

SafeLine

一款足够简单、足够好用、足够强的免费 WAF。基于业界领先的语义引擎检测技术,作为反向代理接入,保护你的网站不受黑客攻击。 A free WAF that is sufficiently simple, effective, and powerful. Utilizing industry-leading semantic engine detection technology, it operates as a reverse proxy to protect your website from hacker attacks.
C++
8,603
star
3

passionfruit

[WIP] Crappy iOS app analyzer
Vue
1,657
star
4

veinmind-tools

veinmind-tools 是由长亭科技自研,基于 veinmind-sdk 打造的容器安全工具集
Go
1,470
star
5

rad

1,382
star
6

xpoc

为供应链漏洞扫描设计的快速应急响应工具 [快速应急] [漏洞扫描] [端口扫描] [xray2.0进行时] A fast emergency response tool designed for supply chain vulnerability scanning.
855
star
7

cloudwalker

CloudWalker Platform
Go
664
star
8

blazehttp

可用于安全测试的非标准HTTP协议解析库
Go
358
star
9

sqlchop

[DEPRECATED]A novel SQL injection detection engine built on top of SQL tokenizing and syntax analysis.
249
star
10

strapdown-zeta

Instant and elegant Markdown documents in the browser, Git powered markdown wiki server, mathjax and theme support, and many more features!
JavaScript
166
star
11

libveinmind

一个由长亭自研,直观而可扩展的容器安全 SDK
Go
115
star
12

Real-World-CTF-6th-Challenges

attachments and (some) writeups/source code for RWCTF 6th
100
star
13

pro

A crappy tool used in our private PS4 jailbreak
Python
99
star
14

xtools

JavaScript
92
star
15

yanshi

A regular language recognizer generater like Ragel, enhanced with features to approximate context-free grammars and substring grammars
C++
91
star
16

Real-World-CTF-3rd-Challenge-Attachments

Challenge attachments for RWCTF 3rd.
90
star
17

safeline-open-platform

Lua
87
star
18

log4j2-vaccine

log4j2-vaccine
Java
85
star
19

django-pg-partitioning

A Django extension that supports PostgreSQL 11 time ranges and list partitioning.
Python
77
star
20

mimicry

Mimicry is a dynamic deception tool that actively deceives an attacker during exploitation and post-exploitation.
Dockerfile
55
star
21

Real-World-CTF-5th-Challenges

attachments and (some) writeups/source code for RWCTF 5th
Python
52
star
22

lua-resty-t1k

Lua implementation of the T1K protocol for Chaitin/SafeLine WAF
Perl
45
star
23

Real-World-CTF-3rd-Forum-Attachments

attachments for forum of RealWorld CTF 3rd
C
40
star
24

sqlchop-http-proxy

SQLChop reverse http proxy module
JavaScript
32
star
25

Real-World-CTF-4th-Challenge-Attachments

26
star
26

Real-World-CTF-2019-Quals-Attachment

23
star
27

systracer

SysTracer: Linux 系统活动跟踪器
Go
22
star
28

gamma

16
star
29

xray_document

HTML
15
star
30

duty.html

A single page for daily duty assignment
HTML
12
star
31

querystring

Parse and stringify URL query strings
TypeScript
12
star
32

veinmind-action

基于 veinmind-tools 实现的 Github Action
Dockerfile
8
star
33

collie-app-cli

本地使用 Collie 应用或开发 Collie 应用的 CLI 工具
Rust
7
star
34

telewriter

Another jQuery typing animation script.
JavaScript
7
star
35

veinmind-jenkins

Groovy
3
star
36

veinmind-common-go

Go
2
star
37

browserslist-config-monster

JavaScript
2
star
38

veinmind-orb

1
star
39

xray-docs

MDX
1
star