├── .gitignore ├── .github ├── ISSUE_TEMPLATE │ ├── bug--使用遇到的问题.md │ └── feat--增加主机来源.md └── workflows │ ├── github_windows_2019.yml │ └── github_linux_ubuntu.yml ├── check.sh ├── check.ps1 ├── action.yml ├── README.md └── README_EN.md /.gitignore: -------------------------------------------------------------------------------- 1 | .idea -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug--使用遇到的问题.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 'bug: 使用遇到的问题' 3 | about: 在使用中出现的问题 4 | title: "[bug] 问题请求" 5 | labels: bug 6 | assignees: DVKunion 7 | 8 | --- 9 | 10 | ** 问题描述 ** 11 | 12 | ** 问题截图 ** 13 | 14 | ** 版本类型 ** 15 | -------------------------------------------------------------------------------- /check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 要监听的进程名 4 | PROCESS_NAME="collie" 5 | 6 | # 循环监听进程状态 7 | while true 8 | do 9 | # 检查进程状态 10 | if pgrep "$PROCESS_NAME" >/dev/null 2>&1; then 11 | echo "Process $PROCESS_NAME is running" 12 | else 13 | echo "Process $PROCESS_NAME is not running, exiting script" 14 | exit 0 15 | fi 16 | # 等待 3 秒后再次检查进程状态 17 | sleep 3 18 | done -------------------------------------------------------------------------------- /check.ps1: -------------------------------------------------------------------------------- 1 | # 要运行的进程名 2 | $processName = "collie" 3 | 4 | # 循环监听进程状态 5 | while ($true) { 6 | # 检查进程状态 7 | if (Get-Process $processName -ErrorAction SilentlyContinue) { 8 | Write-Host "Process $processName is running" 9 | } else { 10 | Write-Host "Process $processName is not running, exiting script" 11 | exit 0 12 | } 13 | # 等待 3 秒后再次检查进程状态 14 | Start-Sleep -Seconds 3 15 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feat--增加主机来源.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 'feat: 增加主机来源' 3 | about: 增添其他的可白嫖的来源 4 | title: "[NEW] 新增主机来源" 5 | labels: enhancement 6 | assignees: DVKunion 7 | 8 | --- 9 | 10 | **提交之前请确认** 11 | 12 | - [ ] 是否已存在该资源 13 | - [ ] *主机免费 14 | - [ ] 是否道德限制(比如国内大部分云厂商的 CloudShell 查的很死) 15 | - [ ] 是否需要注册 16 | 17 | **具体信息** 18 | 19 | - [ ] 主机地址 20 | - [ ] 获取接口 21 | - [ ] 注册接口 22 | - [ ] 主机最大时长 23 | - [ ] 是否有公网IP 24 | - [ ] 支持的操作系统 25 | 26 | **能否直接提供PR** 27 | 28 | > 如果可以,请直接在 pr 中链接该 issue。 29 | -------------------------------------------------------------------------------- /.github/workflows/github_windows_2019.yml: -------------------------------------------------------------------------------- 1 | # entry 2 | name: example 3 | on: 4 | workflow_dispatch: 5 | inputs: 6 | token: 7 | description: 'chaitin rivers token' 8 | required: true 9 | type: 10 | description: 'your host type' 11 | required: true 12 | 13 | jobs: 14 | runner: 15 | runs-on: windows-2019 16 | steps: 17 | - uses: actions/checkout@v3 18 | - name: collie 19 | if: ${{ inputs.token != '' && inputs.type != '' }} 20 | uses: dvkunion/Trickster@main 21 | with: 22 | token: ${{ inputs.token }} 23 | host_source: "github" 24 | host_type: "windows" 25 | -------------------------------------------------------------------------------- /.github/workflows/github_linux_ubuntu.yml: -------------------------------------------------------------------------------- 1 | # entry 2 | name: example 3 | on: 4 | workflow_dispatch: 5 | inputs: 6 | token: 7 | description: 'chaitin rivers token' 8 | required: true 9 | type: 10 | description: 'your host type' 11 | required: true 12 | 13 | jobs: 14 | runner: 15 | runs-on: ubuntu-latest # 选择你想要的主机系统如:ubuntu:20.04 16 | steps: 17 | - uses: actions/checkout@v3 18 | - name: collie 19 | if: ${{ inputs.token != '' && inputs.type != '' }} 20 | uses: dvkunion/Trickster@main 21 | with: 22 | token: ${{ inputs.token }} 23 | host_source: "github" 24 | host_type: "linux" 25 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'DVKUnion/CollieTrickster' 2 | description: 'Use Collie to get an free host' 3 | author: 'DVK' 4 | branding: 5 | color: gray-dark 6 | icon: heart 7 | inputs: 8 | global: 9 | description: 'access collie via global endpoint' 10 | default: true 11 | token: 12 | description: 'your collie token' 13 | default: '' 14 | host_type: 15 | description: 'your host type like: linux/windows' 16 | default: 'linux' 17 | 18 | runs: 19 | using: 'composite' 20 | steps: 21 | - name: register-linux 22 | if: ${{ inputs.host_type == 'linux'}} 23 | run: | 24 | if [ "${{ inputs.global }}" == "true" ] ;then curl -kfsSL 'http://collie-agent-hk.chaitin.com:1443/api/v1/host/install_script?os_type=linux' | sudo bash -s -- --token=${{ inputs.token }};else curl -kfsSL 'http://collie-agent.chaitin.com:1443/api/v1/host/install_script?os_type=linux' | sudo bash -s -- --token=${{ inputs.token }}; fi 25 | sleep 300 26 | curl -kfsSL 'https://dvkunion.oss-cn-shanghai.aliyuncs.com/CollieTrickster/check.sh' | sudo bash -s 27 | shell: bash 28 | - name: register-windows 29 | if: ${{ inputs.host_type == 'windows'}} 30 | run: | 31 | Invoke-WebRequest -Uri 'http://collie-agent.chaitin.com:1443/api/v1/lighter/installer?arch=x86_64&os_type=windows&token=${{ inputs.token }}' -OutFile "install.exe" 32 | Start-Process .\install.exe 33 | Set-ExecutionPolicy RemoteSigned -Force 34 | Invoke-WebRequest -Uri 'https://dvkunion.oss-cn-shanghai.aliyuncs.com/Trickster/check.ps1' -OutFile "check.ps1" 35 | .\check.ps1 36 | shell: powershell -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

🃏Trickster - 白嫖临时主机

2 | 3 |

中文文档 | English

4 | 5 |

Trickster 简介

6 | 7 | > Collie Trickster 正式更名 Trickster 8 | > 我们的目标就是 **免费** 获取 **可使用的** 各类机器 9 | > 不装了,👴摊牌了,👴就是想要白嫖机器 10 | 11 | ![](https://dvkunion.oss-cn-shanghai.aliyuncs.com/Trickster/686a83148700e41b5a11f68c3d606fdb1804f934.jpg) 12 | 13 | 遇到反弹 shell 时,发现 vps 又过期了? 14 | 15 | 想测试一些不好的东西,手头又没有虚拟机?自己开虚拟机还需要做快照做防护? 16 | 17 | 此时好想要一台临时可用的主机,用完就丢掉不需要后续的管理。 18 | 19 | Trickster 基于 Github Action 触发器,让你一个 curl 请求打过来,立刻获取一个临时的主机。 20 | 21 | ## 🧑‍🤝‍🧑 友情提示 22 | 23 | **# 关于风险** 24 | 25 | > 智者说过,天下没有免费的午餐,免费的往往可能是最贵的。 26 | > 此项目属于利用各种资源和方式,尽最大可能薅一点点羊毛。 27 | > 账户是属于你个人的宝贵资产,富哥和号宝党可以忽略此项目。 28 | 29 | ## 🎮 快速开始 30 | 31 | ### 主要步骤 32 | 33 | 1. 注册百川-使用牧云主机管理助手 34 | ![](https://dvkunion.oss-cn-shanghai.aliyuncs.com/Trickster/ac7ea656b4324c73801181ebd0b525d9.png) 35 | 2. 点击绑定主机 36 | ![](https://dvkunion.oss-cn-shanghai.aliyuncs.com/Trickster/1afd640a149d4fce965c2c2c5ced1c23.png) 37 | 3. 获取百川 token 38 | url 的结尾参数即为你的 百川token。 39 | 4. fork 本仓库到你自己的账户下 40 | 方便你自己触发 CI 实现自动化。 41 | 5. 生成 github token 42 | 参考 [Github Token](https://github.com/settings/tokens/) ,生成一个 token 作为认证用; 43 | 6. 请求接口 44 | 45 | 此处提供一个curl请求示例,发送该请求即可快速上线一台主机。 46 | 47 | ```shell 48 | curl \ 49 | -X POST \ 50 | -H "Accept: application/vnd.github+json" \ 51 | -H "Authorization: Bearer "\ 52 | -H "X-GitHub-Api-Version: 2022-11-28" \ 53 | https://api.github.com/repos///actions/workflows//dispatches \ 54 | -d '{"ref":"main","inputs":{"token":"","type": "linux"}' 55 | ``` 56 | 57 | 其中: 58 | + : github配置的token认证 59 | + : 你github账户名称 60 | + : 要执行的脚本,为`.github/workflows/` 目录下的文件,如: `github_linux_ubuntu.yaml` 表示此次请求上线的是来自github的linux类型ubuntu主机 61 | + : 你fork的仓库名,一般直接fork的就写`Trickster`即可。 62 | + : 长亭牧云主机助手生成的那个Token。 63 | 64 | 这样,每发起一次请求,就会执行一次CI。成功上线一台主机。 65 | 66 | > url为 `https://api.github.com/repos///actions/workflows/.yml/dispatches` 时 67 | > 触发的对象为 //actions/workflows/ 68 | > 同时在http请求里, 替换请求体的json参数: `'{"ref":"main","inputs":{"token":""}'` 69 | 70 | 7. 主机助手绑定通知,即可在主机上线时收到消息 71 | 72 | 73 | ## 💻 目前主机列表 74 | 75 | 76 | ## 🎈 更有趣的玩法 77 | 78 | 如果你有什么更加有趣的想法或建议,欢迎提交 Issue/Pr 79 | 80 | ## ⌨️ 分享你的资源 81 | 82 | 如果你有更好的白嫖主机方案,并希望分享给更多的小伙伴,欢迎提交 ISSUE 83 | 84 | 如果你具备一定的 CI 开发能力,也欢迎直接提交 PR, 在 `.github/workflows` 中直接加入对应的ci资源。 85 | 86 | ## ✨ 动动小手支持一下 87 | 88 | 都看到这了,点一个star吧~ 89 | -------------------------------------------------------------------------------- /README_EN.md: -------------------------------------------------------------------------------- 1 |

🃏Trickster - Temporary host for white prostitution

2 | 3 |

Get An Free foreign hosts through GitHub Action [doge]

4 | 5 |

Chinese Documents | English

6 | 7 |

Collie-Trickster introduction

8 | 9 | >Collie Trickster officially changed her name to Trickster 10 | >Our goal is to **free** access **usable** machines of various types 11 | >It's not installed anymore, 👴 Showdown, 👴 I just want to use machines for free 12 | 13 | ![](https://dvkunion.oss-cn-shanghai.aliyuncs.com/Trickster/686a83148700e41b5a11f68c3d606fdb1804f934.jpg) 14 | 15 | When encountering a rebound shell, do you find that VPS has expired again? 16 | 17 | Want to test something bad, but don't have a virtual machine at hand? Do I need to take a snapshot to protect myself when running a virtual machine? 18 | 19 | I really want a temporarily available host at this time, so I can discard it without the need for further management. 20 | 21 | Trickster is based on the Collie management platform and Github Action trigger, allowing you to make a curl request and immediately obtain a temporary host. 22 | 23 | ## 🧑‍🤝‍🧑 Friendly reminder 24 | 25 | **# About Risk** 26 | 27 | >The wise once said, there is no free lunch in the world, and what is free is often the most expensive. 28 | >This project involves utilizing various resources and methods to gather as much wool as possible. 29 | >Your account is a valuable asset that belongs to you personally. Rich Brother and Hao Bao Party can ignore this item. 30 | 31 | ## 🎮 Quick Start 32 | 33 | ### Main steps 34 | 35 | 1. Assistant to manage the pasture cloud manager registered in glaciers 36 | ![]( https://dvkunion.oss-cn-shanghai.aliyuncs.com/Trickster/ac7ea656b4324c73801181ebd0b525d9.png ) 37 | 2. Point abduction of the main machinery 38 | ![]( https://dvkunion.oss-cn-shanghai.aliyuncs.com/Trickster/1afd640a149d4fce965c2c2c5ced1c23.png ) 39 | 3. Acquisition of glaciers 40 | The end parameter of url is your glacier sign. 41 | 4. fork into your own accounts 42 | You can automatically contact the CI yourself. 43 | 5. Production of github token 44 | Reference [Github Token]( https://github.com/settings/tokens/ (b) The creation of a sign as a witness; 45 | 6. Request for interviews 46 | 47 | Here is an example of a curl request that can be sent to quickly launch a host. 48 | 49 | ```shell 50 | curl \ 51 | -X POST \ 52 | -H "Accept: application/vnd.github+json" \ 53 | -H "Authorization: Bearer "\ 54 | -H "X-GitHub-Api-Version: 2022-11-28" \ 55 | https://api.github.com/repos///actions/workflows//dispatches \ 56 | -d '{"ref":"main","inputs":{"token":"","type": "linux"}' 57 | ``` 58 | 59 | Among them: 60 | + : Token authentication for github configuration 61 | + : Your GitHub account name 62 | + : The script to be executed is a file in the directory '. github/workflows/', such as' github '_ Linux_ Ubuntu. yaml ` indicates that this request is for a Linux type ubuntu host from GitHub to be launched 63 | + : The warehouse name of your fork, usually just write 'Trickster' directly for the fork. 64 | +