暂不开源避风头

This commit is contained in:
cmliu
2024-11-28 03:58:52 +08:00
parent 2842cffeb1
commit 49942c3044
3 changed files with 0 additions and 77 deletions

View File

@@ -1,72 +0,0 @@
name: Obfuscate and Commit
on:
push:
paths:
- '_worker.src.js'
workflow_dispatch:
jobs:
obfuscate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install dependencies
run: npm install -g javascript-obfuscator
- name: Prepare files for obfuscation
run: |
if grep -q "Obfuscate-cmliu" _worker.src.js; then
echo "检测到 Obfuscate 准备分段处理"
line_number=$(awk '/Obfuscate-cmliu/ {print NR; exit}' _worker.src.js)
echo "Obfuscate 分段处理行号为: $line_number"
head -n $line_number _worker.src.js > src.js
tail -n +$((line_number + 1)) _worker.src.js > obf.js
else
echo "未检测到 Obfuscate 执行全文件混淆"
cp _worker.src.js obf.js
fi
- name: Obfuscate code
run: |
javascript-obfuscator obf.js --output _worker.js \
--compact true \
--control-flow-flattening true \
--control-flow-flattening-threshold 1 \
--dead-code-injection true \
--dead-code-injection-threshold 1 \
--string-array true \
--string-array-encoding 'rc4' \
--string-array-threshold 1 \
--transform-object-keys true \
--unicode-escape-sequence true
- name: Concatenate src.js if exists
run: |
if [ -f src.js ]; then
cat src.js _worker.js > temp && mv temp _worker.js
fi
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add _worker.js
git commit -m "Obfuscate _worker.js" || echo "No changes to commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

View File

@@ -156,8 +156,6 @@ Telegram交流群[@CMLiussss](https://t.me/CMLiussss)**感谢[Alice Networ
| RPROXYIP | `false` |❌| 设为 true 即可强制获取订阅器分配的ProxyIP(需订阅器支持)| [Video](https://www.youtube.com/watch?v=s91zjpw3-P8&t=1816s) |
| URL302 | `https://t.me/CMLiussss` |❌| 主页302跳转(支持多url, url之间使用`,``换行`作间隔, 小白别用) | |
| URL | `https://blog.cmliussss.com` |❌| 主页反代伪装(支持多url, url之间使用`,``换行`作间隔, 乱设容易触发反诈) | |
| CFEMAIL | `admin@gmail.com` |❌| CF账户邮箱(与`CFKEY`都填上后, 订阅信息将显示请求使用量, 小白别用) | |
| CFKEY | `c6a944b5c956b6c18c2352880952bced8b85e` |❌| CF账户Global API Key(与`CFEMAIL`都填上后, 订阅信息将显示请求使用量, 小白别用) | |
| CFPORTS | `2053`,`2096`,`8443` |❌| CF账户标准端口列表 | |
**注意: 填入`KEY`后将不再启用`UUID`!请二选一使用!!!**
@@ -170,8 +168,6 @@ Telegram交流群[@CMLiussss](https://t.me/CMLiussss)**感谢[Alice Networ
**注意: 填入`SUB`后将不再启用`ADD*`类变量生成的订阅内容!请二选一使用!!!**
**注意: 同时填入`CFEMAIL`和`CFKEY`才会启用显示请求使用量但是不推荐使用没必要给一个Worker项目这么高的权限后果自负**
## 实用小技巧
**该项目部署的订阅可通过添加`sub`键值快速更换优选订阅生成器!**

File diff suppressed because one or more lines are too long