mirror of
https://gitcode.com/GitHub_Trending/ds/dsh-purge.git
synced 2026-11-20 07:59:06 +08:00
chore: 仓库迁到 HunYiSage/dsh-purge;README 改为团队维护口吻
- 代码与文档中的旧账号地址全部换新(自更新 REPO、演练台标签查询、 package.json 仓库与安装地址、README 徽章与安装命令) - 三份 README 的「作者说几句 / A note from the author / 作者より」 改为团队说明,写明由维护团队接手、原作者署名保留 - 署名要求、许可证、免责声明、演练台法律声明、欢迎页文案的责任主体 统一为维护团队 - 联系方式统一为团队频道 t.me/LLM_PoJia - NOTICE 增加维护团队行;LICENSE-COMMERCIAL 联系方式改为团队渠道; package.json 增加 author 字段 - README 版本号同步当前 1.1.90;适配范围改为「1.1.81 及更高版本」 - 本次仅改文档与地址,不升版本、不发行
This commit is contained in:
@@ -186,7 +186,7 @@
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2026 YuJunZhiXue
|
||||
Copyright 2026 HunYiSage
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
你个人本机自用:不另外收费,遵守 LICENSE 即可。
|
||||
你拿去卖、卖课、白标、给第三方当产品:先写信给我。
|
||||
|
||||
邮件 [dsh-purge maintainers](mailto:dsh-purge maintainers),或 GitHub [@YuJunZhiXue](https://github.com/YuJunZhiXue)。
|
||||
邮件 [dsh-purge maintainers](mailto:dsh-purge maintainers),或通过项目仓库 [HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge) 与团队频道 [t.me/LLM_PoJia](https://t.me/LLM_PoJia) 联系。
|
||||
标题:`dsh-purge 商业许可`。写清用途、是否再分发、大致规模。没有自动收银台,谈妥再签。
|
||||
|
||||
授权不转让项目名称,也不让你对外自称官方。
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
dsh-purge
|
||||
Copyright 2026 YuJunZhiXue
|
||||
Copyright 2026 HunYiSage
|
||||
|
||||
Source: https://github.com/YuJunZhiXue/dsh-purge
|
||||
Source: https://github.com/HunYiSage/dsh-purge
|
||||
Maintained by the dsh-purge maintainers team.
|
||||
|
||||
This product is licensed under the Apache License, Version 2.0.
|
||||
Derivative works must retain this NOTICE and attribution.
|
||||
|
||||
+39
-35
@@ -4,15 +4,15 @@
|
||||
|
||||
<h1 align="center">⚔️ DeepSeek Harness サイバーセキュリティ レッドチームツール (dsh-purge)</h1>
|
||||
|
||||
<p align="center"><strong>バージョン 1.1.81</strong></p>
|
||||
<p align="center"><strong>バージョン 1.1.90</strong></p>
|
||||
|
||||
<p align="center">
|
||||
<em>DeepSeek Harness のジェイルブレイク: すべてのモデルに対応し、モデルごとにプロンプトを切り替え。デフォルトプロンプトは 小码酱 用。ぜひ Star ⭐ を。これをベースに開発する場合は「要帰属表示」をご覧ください。</em>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/YuJunZhiXue/dsh-purge/stargazers"><img src="https://img.shields.io/github/stars/YuJunZhiXue/dsh-purge?logo=github&label=Stars" alt="GitHub stars"></a>
|
||||
<a href="https://github.com/YuJunZhiXue/dsh-purge/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat" alt="Apache-2.0"></a>
|
||||
<a href="https://github.com/HunYiSage/dsh-purge/stargazers"><img src="https://img.shields.io/github/stars/HunYiSage/dsh-purge?logo=github&label=Stars" alt="GitHub stars"></a>
|
||||
<a href="https://github.com/HunYiSage/dsh-purge/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat" alt="Apache-2.0"></a>
|
||||
<a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="awesome · DSH plugin"></a>
|
||||
<a href="https://deepseek.stream/plugins/dsh-purge"><img src="https://img.shields.io/badge/Hub-dsh--purge-1a73e8" alt="DeepSeek Harness Hub"></a>
|
||||
<a href="https://www.deepseek.com/harness/"><img src="https://img.shields.io/badge/dsh-0.2.0--rc.2%20%2F%200.2.1--rc.2-blue" alt="DSH"></a>
|
||||
@@ -29,19 +29,23 @@
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">中文</a> | <a href="README.ja.md">日本語</a>
|
||||
</p>
|
||||
|
||||
## 作者より
|
||||
## 運営チームより
|
||||
|
||||
このオープンソースの成果物を、公然と売りさばく人たちがいました。その後、作者は呼び出されて話をすることになりました。あとは言わずもがな。行間を読んでください。
|
||||
dsh-purge は当初、原作者が個人で開発したプロジェクトです。現在は **dsh-purge 運営チーム** が引き継ぎ、コード、ドキュメント、リリース、セキュリティ対応を担当しています。過去のコミット、Issue、Release はすべて保持され、リンクも変更されません。原作者のクレジットと出所の記録も引き続き保持します。
|
||||
|
||||
今後、**公開インターネットは閉じます**。オープンソース版では **ローカルのラボ IP のみ** を許可します(ループバックと RFC1918)。ドメインは先に名前解決され(hosts も含む)、すべての応答がプライベートまたはループバックでなければなりません。`.lab` を公開 IP に向ける hosts トリック、名前解決の失敗、公開 IP が混じった応答はブロックされます。**ゲームチートは禁止です**(エイムボット、ウォールハック、メモリ改ざん、アンチチート回避)。プロンプトとセッションゲートの両方で阻止します。このビルドにはスキルライブラリやナレッジベースは同梱されません。
|
||||
プロジェクトの境界は変わりません。
|
||||
|
||||
**オリジナルビルドの転売は禁止です。** 課金、スキン変更、グループでの売り込みは許可されません。フォークは自由ですが、**帰属表示が必須** で、出所を明記してください: [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge)。出所を隠したり、自分のものとして偽ったりすれば、あなたは向こう側です。
|
||||
- **オープンソース版はローカルラボ専用です。** 攻撃タスクはループバックおよび RFC1918 のプライベートアドレスのみを対象とします。ドメインは先に名前解決され(hosts を含む)、解決されたすべてのアドレスがプライベートまたはループバックである必要があります。ラボ名を公開アドレスに向ける hosts 設定、名前解決の失敗、公開アドレスが混在する応答は拒否されます。
|
||||
- **ゲームチートは禁止です。** エイムボット、ウォールハック、メモリ改ざん、アンチチート回避を含み、プロンプト層とセッションゲートの両方で阻止します。
|
||||
- オープンソース版にはスキルライブラリとナレッジベースは含まれません。
|
||||
|
||||
作者の個人チャンネル: [t.me/LLM_PoJia](https://t.me/LLM_PoJia)。メモや更新情報はそこに出ます。
|
||||
**オリジナルビルドの転売は禁止です。** 有料転売、ストア掲載のための再スキン、商用製品としての配布は許可されません。フォークおよび派生作品は、出所リポジトリ [HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge) を明記することを条件に許可されます。帰属表示の削除、出所の隠蔽、自作としての提示は、運営チームとして追及します。
|
||||
|
||||
運営チームのチャンネル: [t.me/LLM_PoJia](https://t.me/LLM_PoJia)。お知らせと更新情報の配信に使用します。
|
||||
|
||||
## 目次
|
||||
|
||||
- [作者より](#作者より)
|
||||
- [運営チームより](#運営チームより)
|
||||
- [これは何か](#これは何か)
|
||||
- [要帰属表示](#要帰属表示)
|
||||
- [ライセンス](#ライセンス)
|
||||
@@ -57,7 +61,7 @@
|
||||
|
||||
## これは何か
|
||||
|
||||
**dsh-purge** は、お使いのマシンにすでにインストールされている公式 [DeepSeek Harness](https://www.deepseek.com/harness/) 向けのサイバーセキュリティ レッドチームプラグインです。**1.1.81** は **DSH 0.2.1-rc.2** を対象とします(0.2.0 も動作します)。**DSH 0.2.1-rc.3 以降の新しい RC は非対応です。** 公式 **Web**(`dsh web`)と公式 **デスクトップ EXE** の両方に対応します。インストールと Apply はそれぞれ別々に行います。
|
||||
**dsh-purge** は、お使いのマシンにすでにインストールされている公式 [DeepSeek Harness](https://www.deepseek.com/harness/) 向けのサイバーセキュリティ レッドチームプラグインです。**1.1.90** は **DSH 0.2.1-rc.2** を対象とします(0.2.0 も動作します)。**DSH 0.2.1-rc.3 以降の新しい RC は非対応です。** 公式 **Web**(`dsh web`)と公式 **デスクトップ EXE** の両方に対応します。インストールと Apply はそれぞれ別々に行います。
|
||||
|
||||
Harness は単にプロンプトを転送するだけではありません。プロンプトの書き換え、承認ゲート、サンドボックスポリシー、セッション移行を実行時に行います。「モデルは答えるか」だけを問うと、ホスト層のブロックをモデルの拒否と取り違えてしまいます。このプラグインは、あなた自身のインストール環境でこの 2 つの層を分離し、制御された評価や、どのデフォルトポリシーが過度に厳しいかを確認するために使います。
|
||||
|
||||
@@ -79,15 +83,15 @@ Harness は単にプロンプトを転送するだけではありません。プ
|
||||
|
||||
## 要帰属表示
|
||||
|
||||
**オリジナルビルドの転売は禁止です。** 有料での転売、スキン変更したストア掲載、グループでの売り込みは禁止です。
|
||||
**オリジナルビルドの転売は禁止です。** 有料転売、ストア掲載のための再スキン、商用製品としての配布は許可されません。
|
||||
|
||||
**フォークは帰属表示が必須** で、出所のリポジトリを明記してください: [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge)。名前、アイデア、コード、プロンプトを借用する場合も同様です。
|
||||
**フォークは帰属表示が必須** で、出所のリポジトリを明記してください: [HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge)。名前、アイデア、コード、プロンプトを借用する場合も同様です。
|
||||
|
||||
出所を隠す、自分のものとして偽る、オリジナルを転売する行為は追及します。
|
||||
帰属表示の削除、出所の隠蔽、オリジナルの転売は、運営チームとして追及します。
|
||||
|
||||
## ライセンス
|
||||
|
||||
本リポジトリは [Apache License 2.0](./LICENSE) です。フォークおよび再配布では著作権表示と [NOTICE](./NOTICE) を保持し、[YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge) を明記してください。オリジナルの転売は禁止です。
|
||||
本リポジトリは [Apache License 2.0](./LICENSE) です。フォークおよび再配布では著作権表示と [NOTICE](./NOTICE) を保持し、[HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge) を明記してください。オリジナルの転売は禁止です。
|
||||
|
||||
---
|
||||
|
||||
@@ -101,7 +105,7 @@ Harness は単にプロンプトを転送するだけではありません。プ
|
||||
|
||||
**免責事項:** 本プロジェクトは非営利のオープンソースプロジェクトです。適用される法律および利用するプラットフォームの規則に従い、学習と研究のみを目的としています。違法または非準拠の目的に使用しないでください。生じた結果は利用者が負います。
|
||||
|
||||
**ゼロトレランス声明:** 本プロジェクトはいかなる違法行為にも反対し、禁止します。作者は、未認可のネットワーク攻撃、エクスプロイトの使用、データの窃取、コンピュータ情報システムへの不正侵入、違法または禁止されたコンテンツの生成を支援、奨励、幇助しません。**本プロジェクトを犯罪に使用した者は、法律上すべての責任を単独で負います。作者は一切の責任を負いません。**
|
||||
**ゼロトレランス声明:** 本プロジェクトはいかなる違法行為にも反対し、禁止します。運営チームは、未認可のネットワーク攻撃、エクスプロイトの使用、データの窃取、コンピュータ情報システムへの不正侵入、違法または禁止されたコンテンツの生成を支援、奨励、幇助しません。**本プロジェクトを犯罪に使用した者は、法律上すべての責任を単独で負います。運営チームは一切の責任を負いません。**
|
||||
|
||||
1. **本リポジトリに違法な素材は含まれません。** 公開されているコード、ドキュメント、パッチ、デフォルトプロンプトは、マルウェア、バックドア、未認可のペンテストキット、ランサムウェア、クレデンシャルスタッフィングスクリプト、公開インターネットや第三者システムを狙う攻撃ペイロードでは **ありません**。本プロジェクトは違法コンテンツを提供せず、犯罪を扇動・組織・幇助しません。
|
||||
2. **ローカルの公式 Harness のみ。** セキュリティ評価用パッチとプロンプトインジェクションは、**ユーザーのマシンにすでにインストールされた公式 DeepSeek Harness**(`@deepseek-ai` パッケージ、ローカルプロファイル / `$DSH_HOME`)に対してのみ動作します。対象はユーザー自身の公式ローカルソフトウェアであり、**他人のウェブサイト、サーバー、アカウント、情報システムではありません**。
|
||||
@@ -118,10 +122,10 @@ Harness は単にプロンプトを転送するだけではありません。プ
|
||||
- 公的・私的なコンピュータ情報システムへの未認可の侵入または攻撃;恐喝、破壊、クレデンシャルスタッフィング、悪意あるペイロードの拡散;
|
||||
- 国家安全保障への脅威、テロ、暴力、ポルノ、賭博、詐欺、プライバシーや知的財産権の侵害を含む、法律が禁じるあらゆるコンテンツの誘発・生成・拡散;
|
||||
- モデル提供者の利用規約および利用許諾ポリシーへの違反。
|
||||
7. **利用者がすべての責任を負います。** 本プロジェクトは Apache-2.0 の下で現状のまま提供されます。作者は完全性、安全性、適合性について一切保証しません。**利用者は、ダウンロード、デプロイ、実行、改変、配布、およびそれに伴うすべての入力と出力について、民事・行政・刑事上のすべての責任を独立して負います。** 作者および貢献者は、悪用について直接・間接・連帯のいかなる責任も負いません。
|
||||
7. **利用者がすべての責任を負います。** 本プロジェクトは Apache-2.0 の下で現状のまま提供されます。運営チームは完全性、安全性、適合性について一切保証しません。**利用者は、ダウンロード、デプロイ、実行、改変、配布、およびそれに伴うすべての入力と出力について、民事・行政・刑事上のすべての責任を独立して負います。** 運営チームおよび貢献者は、悪用について直接・間接・連帯のいかなる責任も負いません。
|
||||
8. **違反時にライセンスは終了します。** 本プロジェクトを違法な攻撃、悪意ある活動、その他の違反に使用した者は、違反の瞬間からオープンソースライセンスが **自動的かつ取り消し不能に終了** します。使用を直ちに停止し、すべての複製と派生物を永久に破棄し、法的制裁を受け入れなければなりません。
|
||||
9. **無関係。** 本プロジェクトは独立したオープンソースのセキュリティ評価研究プロジェクトです。DeepSeek またはその関連会社との間に、雇用、商業、認可、推奨のいかなる関係もありません。ここでの「公式」は、評価対象がユーザーのマシン上の公式 DeepSeek Harness パッケージであることだけを意味します。DeepSeek が本プラグインを開発・承認・保証したことを **意味しません**。
|
||||
10. **帰属表示は必須です。** 本プロジェクトの名前、アイデア、コード、プロンプトを借用する場合は、作者をクレジットし本リポジトリを明記しなければなりません。帰属表示の不履行は追及します。[要帰属表示](#要帰属表示) を参照してください。
|
||||
10. **帰属表示は必須です。** 本プロジェクトの名前、アイデア、コード、プロンプトを借用する場合は、運営チームをクレジットし本リポジトリを明記しなければなりません。帰属表示の不履行は追及します。[要帰属表示](#要帰属表示) を参照してください。
|
||||
|
||||
</font>
|
||||
|
||||
@@ -131,11 +135,11 @@ Harness は単にプロンプトを転送するだけではありません。プ
|
||||
|
||||
## 対応ホスト
|
||||
|
||||
**1.1.81 は DSH 0.2.1-rc.2 を対象とします。** 0.2.0 も動作します。0.1.x には適用しないでください。
|
||||
**1.1.81 以降が DSH 0.2.1-rc.2 を対象とします。** 0.2.0 も動作します。0.1.x には適用しないでください。
|
||||
|
||||
- **dsh 0.2.1-rc.2**(公式デスクトップ / 公式 `dsh web`): **1.1.81** を使用。`{{cwd}}` / `[cwd]` クラッシュ、patch #40 のマッチ、削除された `toolFilter`、ホスト `dsh-tools` の解決、hostFs の fd、デスクトップヘルパーの自己終了、`file:` アーカイブ更新、Ctrl+Enter ステアを修正。
|
||||
- **dsh 0.2.1-rc.2**(公式デスクトップ / 公式 `dsh web`): **1.1.81** 以降を使用。`{{cwd}}` / `[cwd]` クラッシュ、patch #40 のマッチ、削除された `toolFilter`、ホスト `dsh-tools` の解決、hostFs の fd、デスクトップヘルパーの自己終了、`file:` アーカイブ更新、Ctrl+Enter ステアを修正。
|
||||
- **dsh 0.2.0-rc.2**: **1.1.40** 以降を使用。このラインもインストールできます。
|
||||
- **dsh 0.1.7**(rc.1 / rc.2 を含む): **1.1.39** 以前を使用 — [Releases](https://github.com/YuJunZhiXue/dsh-purge/releases) で該当タグを選択。
|
||||
- **dsh 0.1.7**(rc.1 / rc.2 を含む): **1.1.39** 以前を使用 — [Releases](https://github.com/HunYiSage/dsh-purge/releases) で該当タグを選択。
|
||||
- **dsh 0.2.1-rc.3 / rc.4 以降は非対応です。** マッチしないパッチは pending または skipped のままで、盲目的な書き換えはしません。**0.2.1-rc.2** に留まってください。
|
||||
|
||||
マッチしないパッチは pending または skipped のままで、盲目的な書き換えはしません。
|
||||
@@ -152,10 +156,10 @@ PATH に `dsh` があれば、コマンド 1 つ、再起動 1 回、クリッ
|
||||
|
||||
```sh
|
||||
# 公式 `dsh web`
|
||||
dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
|
||||
# 公式デスクトップ EXE
|
||||
dsh plugin --profile desktop add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile desktop add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
1. インストールしたホストを **完全に終了して再起動** します。Web: `dsh web` を停止して起動し直す。デスクトップ: トレイアイコンも終了してから exe を開く。
|
||||
@@ -180,14 +184,14 @@ pnpm のみ(`dsh` 不要): リポジトリのルートではなく、実際
|
||||
|
||||
```sh
|
||||
cd "$DSH_HOME/profiles/web" # desktop: profiles/desktop
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
Windows PowerShell:
|
||||
|
||||
```powershell
|
||||
cd "$env:USERPROFILE\.dsh\profiles\web" # desktop: profiles\desktop
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
`pnpm add` と `dsh plugin add` はパッケージを取得します。`postinstall` が `dsh-purge` を `dsh.profile.bundles` に書き込み、プロファイルの `cordis.patch.yml` に body `insert` を追加します。その insert がないとホストはプラグインを読み込まず、ボタンも現れません。
|
||||
@@ -197,9 +201,9 @@ pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/mas
|
||||
- pnpm 11/12 はビルドを許可しないとインストールスクリプトをスキップします(`ERR_PNPM_IGNORED_BUILDS`):
|
||||
|
||||
```sh
|
||||
pnpm add --allow-build=dsh-purge --allow-build=dsh-purge@https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add --allow-build=dsh-purge --allow-build=dsh-purge@https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
# すでにインストール済みで警告のみの場合 — 完全な指定子が必要です(名前だけだと "set this to true or false" が残ります):
|
||||
pnpm approve-builds dsh-purge@https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm approve-builds dsh-purge@https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
# bundles / insert がまだ無い場合:
|
||||
node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
```
|
||||
@@ -208,7 +212,7 @@ node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
- デスクトップクライアントではボタンをクリックすることもできます(`dsh://` ディープリンク。同じ tarball をダウンロードします)。
|
||||
|
||||
<p align="center">
|
||||
<a href="dsh://plugin/install?id=dsh-purge&name=dsh-purge&version=1.1.81&repo=YuJunZhiXue%2Fdsh-purge&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fcodeload.github.com%2FYuJunZhiXue%2Fdsh-purge%2Ftar.gz%2Frefs%2Fheads%2Fmaster"><strong>デスクトップクライアントでインストール</strong></a>
|
||||
<a href="dsh://plugin/install?id=dsh-purge&name=dsh-purge&version=1.1.90&repo=HunYiSage%2Fdsh-purge&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fcodeload.github.com%2FHunYiSage%2Fdsh-purge%2Ftar.gz%2Frefs%2Fheads%2Fmaster"><strong>デスクトップクライアントでインストール</strong></a>
|
||||
</p>
|
||||
|
||||
**ステップ 3 — ホストを再起動する。** プラグインをプロファイルに追加しただけでは、`@deepseek-ai` にパッチは当たりません。インストールしたホストを完全に終了して再起動します(Web: `dsh web` を停止して起動し直す。デスクトップ: トレイアイコンも終了してから exe を開く)。
|
||||
@@ -226,7 +230,7 @@ node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
|
||||
```sh
|
||||
dsh plugin --profile desktop remove dsh-purge
|
||||
dsh plugin --profile desktop add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile desktop add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
pnpm のみ:
|
||||
@@ -234,7 +238,7 @@ pnpm のみ:
|
||||
```sh
|
||||
cd "$DSH_HOME/profiles/desktop"
|
||||
pnpm remove dsh-purge
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
Web では `desktop` を `web` に置き換えます。
|
||||
@@ -255,13 +259,13 @@ DeepSeek Harness プラグイン `dsh-purge` を Web プロファイルのみに
|
||||
`dsh` が PATH にある場合:
|
||||
|
||||
```sh
|
||||
dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
`dsh` が無く pnpm がある場合は、`$DSH_HOME/profiles/web`(多くは `~/.dsh/profiles/web`)に `cd` して実行:
|
||||
|
||||
```sh
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
このディレクトリがすでにクローンで `dsh` がある場合は `dsh plugin --profile web add .` を使う。`dsh` も pnpm も無ければ、ユーザーに伝えて停止する。
|
||||
@@ -299,10 +303,10 @@ $cands | Select-Object -Unique | Where-Object { $_ -and (Test-Path (Join-Path $_
|
||||
**2. プラグインを `$DSH_HOME/plugins/dsh-purge` に置く**(フォルダ名は `dsh-purge`、`package.json` の `"name"` も `dsh-purge`)。
|
||||
|
||||
```sh
|
||||
git clone https://github.com/YuJunZhiXue/dsh-purge.git "$DSH_HOME/plugins/dsh-purge"
|
||||
git clone https://github.com/HunYiSage/dsh-purge.git "$DSH_HOME/plugins/dsh-purge"
|
||||
```
|
||||
|
||||
git が無い場合: [master.tar.gz](https://github.com/YuJunZhiXue/dsh-purge/archive/refs/heads/master.tar.gz) をダウンロードし、展開して `dsh-purge-master` → `dsh-purge` にリネームし、`plugins` 以下に置きます。すでにクローンがある場合は、いくつかの `.js` ファイルではなくツリー全体をコピーしてください。
|
||||
git が無い場合: [master.tar.gz](https://github.com/HunYiSage/dsh-purge/archive/refs/heads/master.tar.gz) をダウンロードし、展開して `dsh-purge-master` → `dsh-purge` にリネームし、`plugins` 以下に置きます。すでにクローンがある場合は、いくつかの `.js` ファイルではなくツリー全体をコピーしてください。
|
||||
|
||||
**3. そのプロファイルの `package.json` だけを編集する — まずバックアップ。** Web → `$DSH_HOME/profiles/web/package.json`; desktop → `$DSH_HOME/profiles/desktop/package.json`。既存の依存関係と bundle をすべて残したまま、**2 つだけ** 追加します:
|
||||
|
||||
@@ -581,14 +585,14 @@ Community Desktop はメンテナンスされていません。
|
||||
|
||||
## リリース
|
||||
|
||||
作者の個人チャンネル: [t.me/LLM_PoJia](https://t.me/LLM_PoJia)。メモや更新情報はそこに出ます。GitHub [Releases](https://github.com/YuJunZhiXue/dsh-purge/releases) には古いパッケージもあります。オリジナルの転売は禁止、フォークは帰属表示が必須です。
|
||||
運営チームのチャンネル: [t.me/LLM_PoJia](https://t.me/LLM_PoJia)。お知らせと更新情報の配信に使用します。GitHub [Releases](https://github.com/HunYiSage/dsh-purge/releases) には過去のパッケージもあります。オリジナルビルドの転売は禁止です。フォークは帰属表示が必須です。
|
||||
|
||||
## 備考
|
||||
|
||||
- 対象範囲は、ローカルの `@deepseek-ai/*` パッケージ内のレンダリング済みコピー、デフォルト、ランタイムロジック、および harness ホーム以下のオーバーライドファイルとルールセットです。
|
||||
- アップグレード後、マッチしないオリジナルは skipped と表示されます。Apply はなお完了し、それらのファイルは変更されません。
|
||||
- `@deepseek-ai` 外のサードパーティプラグインの *ソースリポジトリ* には手を付けません(CMD サイレンスは、インストール済みの doctor / market / liangshen / mnemon を実行時に **ベストエフォートで** パッチすることがあります)。
|
||||
- GitHub tarball からインストールしてください(名前は npm にありません。プラグインマーケットはスキップ)。`dsh` あり: `dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master`。pnpm のみ: `$DSH_HOME/profiles/web` 内でその URL を `pnpm add`。EXE には `desktop` を使用。このリポジトリからは `add .`。
|
||||
- GitHub tarball からインストールしてください(名前は npm にありません。プラグインマーケットはスキップ)。`dsh` あり: `dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master`。pnpm のみ: `$DSH_HOME/profiles/web` 内でその URL を `pnpm add`。EXE には `desktop` を使用。このリポジトリからは `add .`。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
|
||||
<h1 align="center">⚔️ DeepSeek Harness cybersecurity red-team tool (dsh-purge)</h1>
|
||||
|
||||
<p align="center"><strong>Version 1.1.81</strong></p>
|
||||
<p align="center"><strong>Version 1.1.90</strong></p>
|
||||
|
||||
<p align="center">
|
||||
<em>DeepSeek Harness jailbreak: every model, swap prompts per model. Default prompt for 小码酱. Please star ⭐ If you build on this, see Attribution required.</em>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/YuJunZhiXue/dsh-purge/stargazers"><img src="https://img.shields.io/github/stars/YuJunZhiXue/dsh-purge?logo=github&label=Stars" alt="GitHub stars"></a>
|
||||
<a href="https://github.com/YuJunZhiXue/dsh-purge/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat" alt="Apache-2.0"></a>
|
||||
<a href="https://github.com/HunYiSage/dsh-purge/stargazers"><img src="https://img.shields.io/github/stars/HunYiSage/dsh-purge?logo=github&label=Stars" alt="GitHub stars"></a>
|
||||
<a href="https://github.com/HunYiSage/dsh-purge/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat" alt="Apache-2.0"></a>
|
||||
<a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="awesome · DSH plugin"></a>
|
||||
<a href="https://deepseek.stream/plugins/dsh-purge"><img src="https://img.shields.io/badge/Hub-dsh--purge-1a73e8" alt="DeepSeek Harness Hub"></a>
|
||||
<a href="https://www.deepseek.com/harness/"><img src="https://img.shields.io/badge/dsh-0.2.0--rc.2%20%2F%200.2.1--rc.2-blue" alt="DSH"></a>
|
||||
@@ -29,19 +29,23 @@
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">中文</a> | <a href="README.ja.md">日本語</a>
|
||||
</p>
|
||||
|
||||
## A note from the author
|
||||
## A note from the maintainers
|
||||
|
||||
People have been selling this open-source work in the open. After that, the author was asked to come in and talk. No need to spell out the rest. Read between the lines.
|
||||
dsh-purge was originally developed by its author as an independent project. It is now maintained by the **dsh-purge maintainers team**, which handles the codebase, documentation, releases, and security response. All historical commits, issues, and releases are preserved and links remain unchanged; the original author's credit and source record are retained.
|
||||
|
||||
From now on the **public internet is closed**. The open-source build only allows **local lab IPs**: loopback and RFC1918. Domains are resolved first (including hosts); every answer must be private or loopback. A hosts trick that points `.lab` at a public IP, a failed lookup, or a mixed public answer is blocked. **Game cheats are forbidden** (aimbot, wallhack, memory edits against a game, anti-cheat bypass); the prompt and the session gate both stop them. This build does not ship the skill library or the knowledge base.
|
||||
The project's boundaries remain unchanged:
|
||||
|
||||
**The original build may not be resold.** Charging for it, skinning it, or hawking it in groups is not allowed. Forks are fine, but **you must attribute** and name the source: [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge). Hide the source or pass it off as your own, and you are on the other side.
|
||||
- **The open-source build is local-lab only.** Attack tasks are limited to loopback and RFC1918 private addresses. Domains are resolved first (including hosts); every resolved address must be private or loopback. Entries that point a lab name at a public address, failed lookups, or answers that include public addresses are rejected.
|
||||
- **Game cheats are prohibited**, including aimbots, wallhacks, memory modification, and anti-cheat bypass; both the prompt layer and the session gate enforce this.
|
||||
- The open-source build does not include the skill library or knowledge base.
|
||||
|
||||
The author's personal channel: [t.me/LLM_PoJia](https://t.me/LLM_PoJia). Notes and updates show up there.
|
||||
**Resale of the original build is prohibited.** Paid resale, re-skinning for store listings, and distribution as a commercial product are not permitted. Forks and derivative work are allowed provided they credit the source repository: [HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge). Removing the attribution, concealing the source, or presenting the project as one's own will be pursued by the maintainers.
|
||||
|
||||
Team channel: [t.me/LLM_PoJia](https://t.me/LLM_PoJia), used for announcements and updates.
|
||||
|
||||
## Contents
|
||||
|
||||
- [A note from the author](#a-note-from-the-author)
|
||||
- [A note from the maintainers](#a-note-from-the-maintainers)
|
||||
- [What this is](#what-this-is)
|
||||
- [Attribution required](#attribution-required)
|
||||
- [License](#license)
|
||||
@@ -57,7 +61,7 @@ The author's personal channel: [t.me/LLM_PoJia](https://t.me/LLM_PoJia). Notes a
|
||||
|
||||
## What this is
|
||||
|
||||
**dsh-purge** is a cybersecurity red-team plugin for the official [DeepSeek Harness](https://www.deepseek.com/harness/) already installed on your machine. **1.1.81** targets **DSH 0.2.1-rc.2** (0.2.0 still works). **DSH 0.2.1-rc.3 and newer RCs are not supported.** Official **Web** (`dsh web`) and the official **desktop EXE** are both supported. Install and Apply them separately.
|
||||
**dsh-purge** is a cybersecurity red-team plugin for the official [DeepSeek Harness](https://www.deepseek.com/harness/) already installed on your machine. **1.1.90** targets **DSH 0.2.1-rc.2** (0.2.0 still works). **DSH 0.2.1-rc.3 and newer RCs are not supported.** Official **Web** (`dsh web`) and the official **desktop EXE** are both supported. Install and Apply them separately.
|
||||
|
||||
Harness does more than forward a prompt. It rewrites prompts, approval gates, sandbox policy, and session migration at runtime. Asking only “will the model answer” treats a host-layer block as a model refusal. This plugin separates those two layers on your own install, for controlled evaluation and for seeing which default policy is too tight.
|
||||
|
||||
@@ -75,19 +79,19 @@ It only touches the official `@deepseek-ai` packages and local config on the use
|
||||
|
||||
---
|
||||
|
||||
## The original may not be resold. Forks must attribute.
|
||||
## Resale of the original is prohibited. Forks must attribute.
|
||||
|
||||
## Attribution required
|
||||
|
||||
**The original build may not be resold.** No paid resale, no skinned store listing, no hawking it in groups.
|
||||
**Resale of the original build is prohibited.** Paid resale, re-skinning for store listings, and distribution as a commercial product are not permitted.
|
||||
|
||||
**Forks must attribute** and name the source repository: [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge). Same if you borrow the name, ideas, code, or prompts.
|
||||
**Forks must attribute** and name the source repository: [HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge). Same if you borrow the name, ideas, code, or prompts.
|
||||
|
||||
Hiding the source, passing it off as your own, or reselling the original will be pursued.
|
||||
Removing attribution, concealing the source, or reselling the original will be pursued by the maintainers.
|
||||
|
||||
## License
|
||||
|
||||
This repo is [Apache License 2.0](./LICENSE). Forks and redistributions must keep the copyright notice and [NOTICE](./NOTICE), and name [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge). The original may not be resold.
|
||||
This repo is [Apache License 2.0](./LICENSE). Forks and redistributions must keep the copyright notice and [NOTICE](./NOTICE), and name [HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge). Resale of the original is prohibited.
|
||||
|
||||
---
|
||||
|
||||
@@ -101,7 +105,7 @@ This repo is [Apache License 2.0](./LICENSE). Forks and redistributions must kee
|
||||
|
||||
**Disclaimer:** This is a non-profit open-source project. It follows applicable laws and the rules of the platforms it uses, and is intended only for learning and research. Do not use it for any illegal or non-compliant purpose; the user bears any resulting consequences.
|
||||
|
||||
**Zero-tolerance statement:** This project opposes and forbids any illegal activity. The authors do not support, encourage, or assist unauthorized network attacks, exploit use, data theft, unlawful intrusion into computer information systems, or generation of illegal or prohibited content. **Anyone who uses this project for crime is solely responsible under the law. The authors have no liability.**
|
||||
**Zero-tolerance statement:** This project opposes and forbids any illegal activity. The maintainers do not support, encourage, or assist unauthorized network attacks, exploit use, data theft, unlawful intrusion into computer information systems, or generation of illegal or prohibited content. **Anyone who uses this project for crime is solely responsible under the law. The maintainers have no liability.**
|
||||
|
||||
1. **This repository contains no illegal material.** The published code, docs, patches, and default prompt are **not** malware, backdoors, unauthorized pentest kits, ransomware, credential-stuffing scripts, or attack payloads aimed at the public internet or third-party systems. The project does not supply illegal content and does not incite, organize, or assist crime.
|
||||
2. **Local official Harness only.** Security-eval patches and prompt injection run only on the **official DeepSeek Harness already installed on the user's machine** (`@deepseek-ai` packages, local profile / `$DSH_HOME`). The target is the user's own official local software, **not** someone else's website, server, account, or information system.
|
||||
@@ -118,10 +122,10 @@ This repo is [Apache License 2.0](./LICENSE). Forks and redistributions must kee
|
||||
- Unauthorized intrusion or attacks on public or private computer information systems; extortion, sabotage, credential stuffing, or spreading malicious payloads;
|
||||
- Inducing, generating, or spreading any content the law forbids, including threats to national security, terrorism, violence, pornography, gambling, fraud, and privacy or intellectual-property infringement;
|
||||
- Violating the model provider's terms of service and acceptable-use policy.
|
||||
7. **The user bears all responsibility.** The project is provided under Apache-2.0 as-is. The authors make no warranty of completeness, security, or fitness. **Users independently bear all civil, administrative, and criminal liability** for download, deploy, run, modify, distribute, and all resulting inputs and outputs. Authors and contributors bear no direct, indirect, or joint liability for abuse.
|
||||
7. **The user bears all responsibility.** The project is provided under Apache-2.0 as-is. The maintainers make no warranty of completeness, security, or fitness. **Users independently bear all civil, administrative, and criminal liability** for download, deploy, run, modify, distribute, and all resulting inputs and outputs. The maintainers and contributors bear no direct, indirect, or joint liability for abuse.
|
||||
8. **The license ends on breach.** Anyone who uses this project for illegal attacks, malicious activity, or other violations has their open-source license **automatically and irrevocably terminated** from the moment of the violation. They must stop using the project, permanently destroy all copies and derivatives, and accept legal sanctions.
|
||||
9. **No affiliation.** This is an independent open-source security-eval research project. It has no employment, commercial, authorization, or endorsement relationship with DeepSeek or its affiliates. "Official" here only means the eval target is the official DeepSeek Harness package on the user's machine. It does **not** mean DeepSeek developed, approved, or warrants this plugin.
|
||||
10. **Attribution is required.** If you borrow this project's name, ideas, code, or prompts, you must credit the author and name this repository. Failure to attribute will be pursued. See [Attribution required](#attribution-required).
|
||||
10. **Attribution is required.** If you borrow this project's name, ideas, code, or prompts, you must credit the maintainers and name this repository. Failure to attribute will be pursued. See [Attribution required](#attribution-required).
|
||||
|
||||
</font>
|
||||
|
||||
@@ -131,11 +135,11 @@ This repo is [Apache License 2.0](./LICENSE). Forks and redistributions must kee
|
||||
|
||||
## Supported hosts
|
||||
|
||||
**1.1.81 targets DSH 0.2.1-rc.2.** 0.2.0 still works. Do not apply it to 0.1.x.
|
||||
**1.1.81 and newer target DSH 0.2.1-rc.2.** 0.2.0 still works. Do not apply it to 0.1.x.
|
||||
|
||||
- **dsh 0.2.1-rc.2** (official desktop / official `dsh web`): use **1.1.81**. Fixes `{{cwd}}` / `[cwd]` crash, patch #40 match, dropped `toolFilter`, host `dsh-tools` resolve, hostFs fd, desktop helper self-kill, `file:` archive update, Ctrl+Enter steer.
|
||||
- **dsh 0.2.1-rc.2** (official desktop / official `dsh web`): use **1.1.81** or newer. Fixes `{{cwd}}` / `[cwd]` crash, patch #40 match, dropped `toolFilter`, host `dsh-tools` resolve, hostFs fd, desktop helper self-kill, `file:` archive update, Ctrl+Enter steer.
|
||||
- **dsh 0.2.0-rc.2**: use **1.1.40** or newer; this line also installs.
|
||||
- **dsh 0.1.7** (incl. rc.1 / rc.2): use **1.1.39** or older — pick the tag on [Releases](https://github.com/YuJunZhiXue/dsh-purge/releases).
|
||||
- **dsh 0.1.7** (incl. rc.1 / rc.2): use **1.1.39** or older — pick the tag on [Releases](https://github.com/HunYiSage/dsh-purge/releases).
|
||||
- **dsh 0.2.1-rc.3 / rc.4 and newer are not supported.** Unmatched patches stay pending or skipped; nothing is rewritten blindly. Stay on **0.2.1-rc.2**.
|
||||
|
||||
Unmatched patches stay pending or skipped; nothing is rewritten blindly.
|
||||
@@ -152,10 +156,10 @@ Have `dsh` on PATH? One command, one restart, one click. Run the line for the ho
|
||||
|
||||
```sh
|
||||
# Official `dsh web`
|
||||
dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
|
||||
# Official desktop EXE
|
||||
dsh plugin --profile desktop add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile desktop add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
1. **Fully quit and reopen** the host you installed into. Web: stop `dsh web` and start it again. Desktop: quit the tray icon too, then open the exe.
|
||||
@@ -180,14 +184,14 @@ pnpm only (no `dsh` required): run this inside the profile you actually use, not
|
||||
|
||||
```sh
|
||||
cd "$DSH_HOME/profiles/web" # desktop: profiles/desktop
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
Windows PowerShell:
|
||||
|
||||
```powershell
|
||||
cd "$env:USERPROFILE\.dsh\profiles\web" # desktop: profiles\desktop
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
`pnpm add` and `dsh plugin add` fetch the package; `postinstall` writes `dsh-purge` into `dsh.profile.bundles` and adds a body `insert` in the profile `cordis.patch.yml`. Without that insert the host never loads the plugin and no button appears.
|
||||
@@ -197,9 +201,9 @@ pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/mas
|
||||
- pnpm 11/12 skips install scripts (`ERR_PNPM_IGNORED_BUILDS`) unless you allow the build:
|
||||
|
||||
```sh
|
||||
pnpm add --allow-build=dsh-purge --allow-build=dsh-purge@https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add --allow-build=dsh-purge --allow-build=dsh-purge@https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
# Already installed, warning only — the full specifier is required (name-only leaves "set this to true or false"):
|
||||
pnpm approve-builds dsh-purge@https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm approve-builds dsh-purge@https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
# If bundles / insert are still missing:
|
||||
node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
```
|
||||
@@ -208,7 +212,7 @@ node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
- On the desktop client you can also click the button (`dsh://` deep link; it still downloads the same tarball).
|
||||
|
||||
<p align="center">
|
||||
<a href="dsh://plugin/install?id=dsh-purge&name=dsh-purge&version=1.1.81&repo=YuJunZhiXue%2Fdsh-purge&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fcodeload.github.com%2FYuJunZhiXue%2Fdsh-purge%2Ftar.gz%2Frefs%2Fheads%2Fmaster"><strong>Install in desktop client</strong></a>
|
||||
<a href="dsh://plugin/install?id=dsh-purge&name=dsh-purge&version=1.1.90&repo=HunYiSage%2Fdsh-purge&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fcodeload.github.com%2FHunYiSage%2Fdsh-purge%2Ftar.gz%2Frefs%2Fheads%2Fmaster"><strong>Install in desktop client</strong></a>
|
||||
</p>
|
||||
|
||||
**Step 3 — Restart the host.** Adding the plugin to a profile does **not** patch `@deepseek-ai` by itself. Fully quit and reopen the host you just installed into (Web: stop `dsh web` and start again; Desktop: quit the tray icon too, then open the exe).
|
||||
@@ -226,7 +230,7 @@ node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
|
||||
```sh
|
||||
dsh plugin --profile desktop remove dsh-purge
|
||||
dsh plugin --profile desktop add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile desktop add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
pnpm only:
|
||||
@@ -234,7 +238,7 @@ pnpm only:
|
||||
```sh
|
||||
cd "$DSH_HOME/profiles/desktop"
|
||||
pnpm remove dsh-purge
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
Swap `desktop` for `web` on Web.
|
||||
@@ -255,13 +259,13 @@ Install the DeepSeek Harness plugin `dsh-purge` into the Web profile only. Do no
|
||||
If `dsh` is on PATH:
|
||||
|
||||
```sh
|
||||
dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
If `dsh` is missing and pnpm is available, `cd` into `$DSH_HOME/profiles/web` (often `~/.dsh/profiles/web`) and run:
|
||||
|
||||
```sh
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
If this directory is already a clone and `dsh` exists, use `dsh plugin --profile web add .`. If neither `dsh` nor pnpm is available, tell the user and stop.
|
||||
@@ -299,10 +303,10 @@ $cands | Select-Object -Unique | Where-Object { $_ -and (Test-Path (Join-Path $_
|
||||
**2. Put the plugin at `$DSH_HOME/plugins/dsh-purge`** (folder must be named `dsh-purge`, with a `package.json` whose `"name"` is `dsh-purge`).
|
||||
|
||||
```sh
|
||||
git clone https://github.com/YuJunZhiXue/dsh-purge.git "$DSH_HOME/plugins/dsh-purge"
|
||||
git clone https://github.com/HunYiSage/dsh-purge.git "$DSH_HOME/plugins/dsh-purge"
|
||||
```
|
||||
|
||||
Without git: download [master.tar.gz](https://github.com/YuJunZhiXue/dsh-purge/archive/refs/heads/master.tar.gz), extract, rename `dsh-purge-master` → `dsh-purge`, and place it under `plugins`. If you already have a clone, copy the whole tree — not a few `.js` files.
|
||||
Without git: download [master.tar.gz](https://github.com/HunYiSage/dsh-purge/archive/refs/heads/master.tar.gz), extract, rename `dsh-purge-master` → `dsh-purge`, and place it under `plugins`. If you already have a clone, copy the whole tree — not a few `.js` files.
|
||||
|
||||
**3. Edit only that profile's `package.json` — back it up first.** Web → `$DSH_HOME/profiles/web/package.json`; desktop → `$DSH_HOME/profiles/desktop/package.json`. Add **only two things**, keeping every existing dependency and bundle:
|
||||
|
||||
@@ -581,14 +585,14 @@ If nothing is found, set `DSH_BASE` / `DSH_DESKTOP_INSTALL`. No files are change
|
||||
|
||||
## Releases
|
||||
|
||||
The author's personal channel: [t.me/LLM_PoJia](https://t.me/LLM_PoJia). Notes and updates show up there. GitHub [Releases](https://github.com/YuJunZhiXue/dsh-purge/releases) still has older packages. The original may not be resold; forks must attribute.
|
||||
Team channel: [t.me/LLM_PoJia](https://t.me/LLM_PoJia), used for announcements and updates. GitHub [Releases](https://github.com/HunYiSage/dsh-purge/releases) still hosts older packages. Resale of the original build is prohibited; forks must attribute.
|
||||
|
||||
## Notes
|
||||
|
||||
- Scope is rendered copy, defaults, and runtime logic inside local `@deepseek-ai/*` packages, plus override files and rule sets under the harness home.
|
||||
- After an upgrade, unmatched originals show as skipped. Apply still completes, and those files are left unchanged.
|
||||
- Third-party plugin *source repos* outside `@deepseek-ai` are left alone (CMD silence may **best-effort** patch installed doctor / market / liangshen / mnemon at runtime).
|
||||
- Install from the GitHub tarball (the name is not on npm; skip the plugin market). With `dsh`: `dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master`. pnpm only: `pnpm add` that URL inside `$DSH_HOME/profiles/web`. Use `desktop` for the EXE. From this repo, `add .`.
|
||||
- Install from the GitHub tarball (the name is not on npm; skip the plugin market). With `dsh`: `dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master`. pnpm only: `pnpm add` that URL inside `$DSH_HOME/profiles/web`. Use `desktop` for the EXE. From this repo, `add .`.
|
||||
|
||||
---
|
||||
|
||||
|
||||
+39
-35
@@ -4,15 +4,15 @@
|
||||
|
||||
<h1 align="center">⚔️ DeepSeek Harness 网络安全红队工具(dsh-purge)</h1>
|
||||
|
||||
<p align="center"><strong>Version 1.1.81</strong></p>
|
||||
<p align="center"><strong>Version 1.1.90</strong></p>
|
||||
|
||||
<p align="center">
|
||||
<em>DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐ 如要二开,请查看署名要求部分</em>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/YuJunZhiXue/dsh-purge/stargazers"><img src="https://img.shields.io/github/stars/YuJunZhiXue/dsh-purge?logo=github&label=Stars" alt="GitHub stars"></a>
|
||||
<a href="https://github.com/YuJunZhiXue/dsh-purge/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat" alt="Apache-2.0"></a>
|
||||
<a href="https://github.com/HunYiSage/dsh-purge/stargazers"><img src="https://img.shields.io/github/stars/HunYiSage/dsh-purge?logo=github&label=Stars" alt="GitHub stars"></a>
|
||||
<a href="https://github.com/HunYiSage/dsh-purge/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat" alt="Apache-2.0"></a>
|
||||
<a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="awesome · DSH plugin"></a>
|
||||
<a href="https://deepseek.stream/plugins/dsh-purge"><img src="https://img.shields.io/badge/Hub-dsh--purge-1a73e8" alt="DeepSeek Harness Hub"></a>
|
||||
<a href="https://www.deepseek.com/harness/"><img src="https://img.shields.io/badge/dsh-0.2.0--rc.2%20%2F%200.2.1--rc.2-blue" alt="DSH"></a>
|
||||
@@ -29,19 +29,23 @@
|
||||
<a href="README.md">English</a> | <a href="README.zh-CN.md">中文</a> | <a href="README.ja.md">日本語</a>
|
||||
</p>
|
||||
|
||||
## 作者说几句
|
||||
## 团队说明
|
||||
|
||||
市面上有人把这份开源明目张胆挂出去卖。后面作者这边被找去谈过话——经过不必写,你们自己品。
|
||||
dsh-purge 最初由原作者独立开发。项目现已由 **dsh-purge 维护团队**接管,代码、文档、版本发布与安全响应均由团队负责;历史提交、Issue 与 Release 保持完整,链接不变,原作者的署名与来源记录继续保留。
|
||||
|
||||
从今往后,**公网一律不许碰**。开源版攻击任务只认**本地靶场 IP**:本机回环和 RFC1918 私网。域名会先按系统解析(含 hosts),解析到的每一个地址都必须是私网或回环;hosts 把 `.lab` 指到公网、解析失败、混有公网地址,一律拦。不是本地靶场就别跑,也跑不过去。**禁止制作外挂**(自瞄、透视、改内存打游戏、过反作弊),提示词和会话门口一起拦。开源版不下发技能库和知识库。
|
||||
团队接手后,项目边界维持不变:
|
||||
|
||||
**原版不允许倒卖。** 收费、当货挂群,一律不行。二开可以,但**必须署名**,写明来源仓库:[YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge)。不署名、隐瞒来源、改头换面据为己有,作者一律当对家。
|
||||
- **开源版仅面向本地靶场。** 攻击任务只允许本机回环与 RFC1918 私网目标。域名先按系统解析(含 hosts),解析结果必须全部为私网或回环地址;指向公网的 hosts 记录、解析失败,或混有公网地址的解析结果一律拒绝。
|
||||
- **禁止制作游戏外挂。** 包括自瞄、透视、内存修改与反作弊绕过,提示词与会话入口双重拦截。
|
||||
- 开源版不包含技能库与知识库。
|
||||
|
||||
作者个人频道:[t.me/LLM_PoJia](https://t.me/LLM_PoJia)。有话、有更新,会发在那里。
|
||||
**原版禁止倒卖。** 不得付费转售、换皮上架,或以商品形式分销。允许二次开发,但必须署名并注明来源仓库:[HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge)。未署名、隐瞒来源,或改头换面据为己有的,维护团队将依法追究责任。
|
||||
|
||||
团队频道:[t.me/LLM_PoJia](https://t.me/LLM_PoJia),用于发布通知与更新。
|
||||
|
||||
## 目录
|
||||
|
||||
- [作者说几句](#作者说几句)
|
||||
- [团队说明](#团队说明)
|
||||
- [介绍](#介绍)
|
||||
- [署名要求](#署名要求)
|
||||
- [许可证](#许可证)
|
||||
@@ -57,7 +61,7 @@
|
||||
|
||||
## 介绍
|
||||
|
||||
**dsh-purge** 是装在本机官方 [DeepSeek Harness](https://www.deepseek.com/harness/) 上的网络安全红队评测插件。当前 **1.1.81** 已适配 **DSH 0.2.1-rc.2**(0.2.0 仍可用)。**不支持 DSH 0.2.1-rc.3 及更新的 rc。** 官方 **Web**(`dsh web`)和官方 **桌面端**(EXE)都支持,两边分开装、分开应用。
|
||||
**dsh-purge** 是装在本机官方 [DeepSeek Harness](https://www.deepseek.com/harness/) 上的网络安全红队评测插件。当前 **1.1.90** 已适配 **DSH 0.2.1-rc.2**(0.2.0 仍可用)。**不支持 DSH 0.2.1-rc.3 及更新的 rc。** 官方 **Web**(`dsh web`)和官方 **桌面端**(EXE)都支持,两边分开装、分开应用。
|
||||
|
||||
Harness 不只是把问题交给模型。它还会在运行时改提示词、审批门、沙箱和会话格式。只看「模型答不答」,会把宿主拦截误当成模型拒绝。这个插件在你自己的安装里把这两层分开,用来做受控评测,也用来看默认策略该不该收紧。
|
||||
|
||||
@@ -77,19 +81,19 @@ Harness 不只是把问题交给模型。它还会在运行时改提示词、审
|
||||
|
||||
---
|
||||
|
||||
## 📌 原版不允许倒卖。二开必须署名。
|
||||
## 📌 原版禁止倒卖。二开必须署名。
|
||||
|
||||
## 署名要求
|
||||
|
||||
**原版不允许倒卖。** 不得收费转卖、换皮上架、当货挂群。
|
||||
**原版禁止倒卖。** 不得付费转售、换皮上架,或以商品形式分销。
|
||||
|
||||
**二开必须署名**,并写明来源仓库:[YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge)。借用本项目的名称、思路、代码或提示词,同样必须署名。
|
||||
**二开必须署名**,并写明来源仓库:[HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge)。借用本项目的名称、思路、代码或提示词,同样必须署名。
|
||||
|
||||
不署名、隐瞒来源、改头换面据为己有,或把原版拿去倒卖,作者将依法追究责任。
|
||||
不署名、隐瞒来源、改头换面据为己有,或把原版拿去倒卖,维护团队将依法追究责任。
|
||||
|
||||
## 许可证
|
||||
|
||||
本仓库使用 [Apache License 2.0](./LICENSE)。二开、再分发必须保留版权声明和 [NOTICE](./NOTICE),写明来源 [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge)。原版不允许倒卖。
|
||||
本仓库使用 [Apache License 2.0](./LICENSE)。二开、再分发必须保留版权声明和 [NOTICE](./NOTICE),写明来源 [HunYiSage/dsh-purge](https://github.com/HunYiSage/dsh-purge)。原版禁止倒卖。
|
||||
|
||||
---
|
||||
|
||||
@@ -103,7 +107,7 @@ Harness 不只是把问题交给模型。它还会在运行时改提示词、审
|
||||
|
||||
**免责声明:** 本项目为非营利开源项目,遵守国家法律法规及所在平台的相关规范,仅供学习与研究使用。不得将本项目用于任何违法违规用途;由此产生的后果由使用者自行承担。
|
||||
|
||||
**【零容忍严正申明】**:本项目坚决反对并严禁任何形式的违法犯罪行为!本项目开发者绝不支持、不鼓励、不协助任何未授权网络攻击、漏洞利用、数据窃取、非法侵入计算机信息系统或生成违法违禁内容的活动。**任何将本项目用于违法犯罪的行为,均与开发者无关,由行为人依法独立承担全部法律责任。**
|
||||
**【零容忍严正申明】**:本项目坚决反对并严禁任何形式的违法犯罪行为!本维护团队绝不支持、不鼓励、不协助任何未授权网络攻击、漏洞利用、数据窃取、非法侵入计算机信息系统或生成违法违禁内容的活动。**任何将本项目用于违法犯罪的行为,均与本维护团队无关,由行为人依法独立承担全部法律责任。**
|
||||
|
||||
1. **本仓库不含违法内容**:`dsh-purge` 发布的代码、文档、补丁与默认提示词**不是**木马、后门、未授权渗透工具、勒索软件、撞库脚本,也**不是**针对公网或第三方系统的攻击载荷。项目本身不提供违法内容,也不教唆、组织、协助实施违法犯罪。
|
||||
2. **只作用于本机官方 Harness**:安全评测补丁、提示词注入全部发生在使用者**本机已安装的官方 DeepSeek Harness**(`@deepseek-ai` 包、本机 profile / `$DSH_HOME`)上。对象是使用者自己的官方本地软件,**不是**他人的网站、服务器、账号或信息系统。
|
||||
@@ -120,7 +124,7 @@ Harness 不只是把问题交给模型。它还会在运行时改提示词、审
|
||||
- 未经授权渗透、攻击公私机构计算机信息系统,实施勒索、破坏、撞库或传播恶意载荷;
|
||||
- 诱导、生成或传播危害国家安全、恐怖主义、暴力血腥、涉黄涉赌、诈骗、侵犯公民隐私或知识产权等任何法律明令禁止的违法违禁内容;
|
||||
- 违反相关大模型提供商的《服务条款》与《滥用政策》。
|
||||
7. **使用者独立承担全部责任**:本项目依据 Apache-2.0“按现状”提供,开发者不对软件的完整性、安全性与适用性作任何明示或暗示的保证。**使用者应对自身的所有下载、部署、运行、修改、传播行为以及由此产生的全部输入与输出后果承担独立、完全的民事、行政及刑事法律责任**。项目作者与贡献团队绝不承担任何因使用者滥用导致的直接、间接或连带责任。
|
||||
7. **使用者独立承担全部责任**:本项目依据 Apache-2.0“按现状”提供,维护团队不对软件的完整性、安全性与适用性作任何明示或暗示的保证。**使用者应对自身的所有下载、部署、运行、修改、传播行为以及由此产生的全部输入与输出后果承担独立、完全的民事、行政及刑事法律责任**。维护团队与所有贡献者绝不承担任何因使用者滥用导致的直接、间接或连带责任。
|
||||
8. **违约即终止授权**:任何将本项目用于非法攻击、恶意活动或违规行为的个人或实体,其开源软件使用许可将自违法违规行为发生之日起**自动且不可撤销地立即终止**。该主体须立即停止使用并永久销毁本项目的所有代码、脚本与衍生数据,并依法承担相应法律制裁。
|
||||
9. **第三方独立性声明**:本项目属于完全独立的开源安全评测研究项目,与 DeepSeek 官方或其关联主体无任何隶属、商业合作、授权或官方背书关系。文中「官方」仅指评测对象为使用者本机安装的官方 DeepSeek Harness 软件包,**不代表** DeepSeek 官方开发、认可或担保本插件。
|
||||
10. **必须署名**:借用本项目的名称、思路、代码或提示词,必须署名并标明本仓库。不署名将依法追究责任。详见 [署名要求](#署名要求)。
|
||||
@@ -133,11 +137,11 @@ Harness 不只是把问题交给模型。它还会在运行时改提示词、审
|
||||
|
||||
## 适配范围
|
||||
|
||||
**1.1.81 已适配 DSH 0.2.1-rc.2**,0.2.0 仍可用。不要拿它去打 0.1.x。
|
||||
**1.1.81 及更高版本适配 DSH 0.2.1-rc.2**,0.2.0 仍可用。不要拿它去打 0.1.x。
|
||||
|
||||
- **dsh 0.2.1-rc.2**(官方桌面 / 官方 `dsh web`):用 **1.1.81**。已修 `{{cwd}}` / `[cwd]` 整轮失败、补丁 #40 命中、`toolFilter` 废弃、`dsh-tools` 解析、hostFs fd、桌面换包自杀、`file:` 归档更新、Ctrl+Enter 插话。
|
||||
- **dsh 0.2.1-rc.2**(官方桌面 / 官方 `dsh web`):用 **1.1.81** 或更高。已修 `{{cwd}}` / `[cwd]` 整轮失败、补丁 #40 命中、`toolFilter` 废弃、`dsh-tools` 解析、hostFs fd、桌面换包自杀、`file:` 归档更新、Ctrl+Enter 插话。
|
||||
- **dsh 0.2.0-rc.2**:用 **1.1.40** 及以上;本页这档也能装。
|
||||
- **dsh 0.1.7**(含 rc.1 / rc.2):用 **1.1.39** 及更早 —— 在 [Releases](https://github.com/YuJunZhiXue/dsh-purge/releases) 里选对应标签。
|
||||
- **dsh 0.1.7**(含 rc.1 / rc.2):用 **1.1.39** 及更早 —— 在 [Releases](https://github.com/HunYiSage/dsh-purge/releases) 里选对应标签。
|
||||
- **不支持 dsh 0.2.1-rc.3 / rc.4 及更新。** 宿主对不上时补丁会显示待应用或跳过,不会乱改文件。请退回 **0.2.1-rc.2** 再用本插件。
|
||||
|
||||
对不上的补丁会显示待应用或跳过,不会乱改文件。
|
||||
@@ -154,10 +158,10 @@ PATH 里有 `dsh`?一条命令、一次重启、一次点击。跑你正在打
|
||||
|
||||
```sh
|
||||
# 官方 `dsh web`
|
||||
dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
|
||||
# 官方桌面 EXE
|
||||
dsh plugin --profile desktop add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile desktop add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
1. **完全退出再打开**刚装的那个宿主。Web:停掉 `dsh web` 再开。桌面:托盘也要退出,再开 exe。
|
||||
@@ -182,14 +186,14 @@ dsh plugin --profile desktop add https://codeload.github.com/YuJunZhiXue/dsh-pur
|
||||
|
||||
```sh
|
||||
cd "$DSH_HOME/profiles/web" # 桌面改 profiles/desktop
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
Windows PowerShell:
|
||||
|
||||
```powershell
|
||||
cd "$env:USERPROFILE\.dsh\profiles\web" # 桌面改 profiles\desktop
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
`pnpm add` 和 `dsh plugin add` 都会拉包;`postinstall` 再把 `dsh-purge` 写进 `dsh.profile.bundles`,并在 profile 的 `cordis.patch.yml` 补上本体 `insert`(没有这一行,宿主不加载插件,界面也没有按钮)。
|
||||
@@ -199,9 +203,9 @@ pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/mas
|
||||
- pnpm 11/12 默认拦安装脚本(`ERR_PNPM_IGNORED_BUILDS`),要带上允许构建:
|
||||
|
||||
```sh
|
||||
pnpm add --allow-build=dsh-purge --allow-build=dsh-purge@https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add --allow-build=dsh-purge --allow-build=dsh-purge@https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
# 已经装上但只有警告时,必须带完整 specifier(只写 dsh-purge 会留下 set this to true or false):
|
||||
pnpm approve-builds dsh-purge@https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm approve-builds dsh-purge@https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
# bundles / insert 还没写上时再补:
|
||||
node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
```
|
||||
@@ -210,7 +214,7 @@ node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
- 桌面客户端也可以点按钮(`dsh://` 唤起,下的仍是同一份压缩包)。
|
||||
|
||||
<p align="center">
|
||||
<a href="dsh://plugin/install?id=dsh-purge&name=dsh-purge&version=1.1.81&repo=YuJunZhiXue%2Fdsh-purge&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fcodeload.github.com%2FYuJunZhiXue%2Fdsh-purge%2Ftar.gz%2Frefs%2Fheads%2Fmaster"><strong>唤起客户端一键安装</strong></a>
|
||||
<a href="dsh://plugin/install?id=dsh-purge&name=dsh-purge&version=1.1.90&repo=HunYiSage%2Fdsh-purge&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fcodeload.github.com%2FHunYiSage%2Fdsh-purge%2Ftar.gz%2Frefs%2Fheads%2Fmaster"><strong>唤起客户端一键安装</strong></a>
|
||||
</p>
|
||||
|
||||
**第 3 步 —— 重启宿主。** 只把插件写进 profile **还不会**改 `@deepseek-ai`。完全退出再打开刚装的那个宿主(Web:停掉 `dsh web` 再开;桌面:托盘也要退出,再开 exe)。
|
||||
@@ -228,7 +232,7 @@ node node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
|
||||
|
||||
```sh
|
||||
dsh plugin --profile desktop remove dsh-purge
|
||||
dsh plugin --profile desktop add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile desktop add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
只有 pnpm 时:
|
||||
@@ -236,7 +240,7 @@ dsh plugin --profile desktop add https://codeload.github.com/YuJunZhiXue/dsh-pur
|
||||
```sh
|
||||
cd "$DSH_HOME/profiles/desktop"
|
||||
pnpm remove dsh-purge
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
Web 端把 `desktop` 换成 `web`。
|
||||
@@ -257,13 +261,13 @@ Web 端把 `desktop` 换成 `web`。
|
||||
有 `dsh`:
|
||||
|
||||
```sh
|
||||
dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
没有 `dsh`、只有 pnpm:找到 `$DSH_HOME/profiles/web`(常见 `~/.dsh/profiles/web`),在该目录执行:
|
||||
|
||||
```sh
|
||||
pnpm add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master
|
||||
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master
|
||||
```
|
||||
|
||||
当前目录已是本仓库且有 `dsh` 时改用 `dsh plugin --profile web add .`。`dsh` 和 pnpm 都没有再告诉用户后停止。
|
||||
@@ -301,10 +305,10 @@ $cands | Select-Object -Unique | Where-Object { $_ -and (Test-Path (Join-Path $_
|
||||
**2. 把插件放到 `$DSH_HOME/plugins/dsh-purge`**(目录名必须是 `dsh-purge`,其 `package.json` 里 `"name"` 也必须是 `dsh-purge`)。
|
||||
|
||||
```sh
|
||||
git clone https://github.com/YuJunZhiXue/dsh-purge.git "$DSH_HOME/plugins/dsh-purge"
|
||||
git clone https://github.com/HunYiSage/dsh-purge.git "$DSH_HOME/plugins/dsh-purge"
|
||||
```
|
||||
|
||||
没有 git:下载 [master.tar.gz](https://github.com/YuJunZhiXue/dsh-purge/archive/refs/heads/master.tar.gz),解压后把 `dsh-purge-master` 改名为 `dsh-purge`,整夹放到 `plugins` 下。已有本仓库副本就复制整个目录,不要只拷几个 `.js`。
|
||||
没有 git:下载 [master.tar.gz](https://github.com/HunYiSage/dsh-purge/archive/refs/heads/master.tar.gz),解压后把 `dsh-purge-master` 改名为 `dsh-purge`,整夹放到 `plugins` 下。已有本仓库副本就复制整个目录,不要只拷几个 `.js`。
|
||||
|
||||
**3. 只改对应 profile 的 `package.json`,先备份。** Web → `$DSH_HOME/profiles/web/package.json`;桌面 → `$DSH_HOME/profiles/desktop/package.json`。**只追加两处**,原有依赖和 bundle 全部留着:
|
||||
|
||||
@@ -589,14 +593,14 @@ flowchart TD
|
||||
|
||||
## 更新
|
||||
|
||||
作者个人频道:[t.me/LLM_PoJia](https://t.me/LLM_PoJia)。有话、有更新会发在那里。GitHub [Releases](https://github.com/YuJunZhiXue/dsh-purge/releases) 仍可下历史包。原版不允许倒卖;二开必须署名。
|
||||
团队频道:[t.me/LLM_PoJia](https://t.me/LLM_PoJia)。有话、有更新会发在那里。GitHub [Releases](https://github.com/HunYiSage/dsh-purge/releases) 仍可下历史包。原版不允许倒卖;二开必须署名。
|
||||
|
||||
## 说明
|
||||
|
||||
- 改动范围是本机 `@deepseek-ai/*` 包里的渲染文案、默认策略和执行逻辑,以及用户目录下的覆盖文件与规则集。
|
||||
- 升级后原文对不上会显示跳过,这次应用仍算完成,不会乱改。
|
||||
- 不改动非 `@deepseek-ai` 的第三方插件源仓库(启动时的 CMD 无感会**尽力**修补已装的 doctor / market / 梁神 / mnemon,属运行时补丁)。
|
||||
- 安装走 GitHub 压缩包(npm 仓库没有这个名字,也不要走插件市场)。有 `dsh`:`dsh plugin --profile web add https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master`。只有 pnpm:在 `$DSH_HOME/profiles/web` 里 `pnpm add` 同一地址。桌面把 `web` 换成 `desktop`。当前目录已是本仓库时 `add .`。
|
||||
- 安装走 GitHub 压缩包(npm 仓库没有这个名字,也不要走插件市场)。有 `dsh`:`dsh plugin --profile web add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master`。只有 pnpm:在 `$DSH_HOME/profiles/web` 里 `pnpm add` 同一地址。桌面把 `web` 换成 `desktop`。当前目录已是本仓库时 `add .`。
|
||||
|
||||
---
|
||||
|
||||
|
||||
+1
-1
@@ -359,7 +359,7 @@ async function updatePreflight(ctx) {
|
||||
function githubRepoOf(homepage) {
|
||||
const m = String(homepage || '').match(/github\.com[/:]+([A-Za-z0-9._-]+)\/([A-Za-z0-9._-]+?)(?:\.git)?(?:[/#?].*)?$/i)
|
||||
if (m) return `${m[1]}/${m[2]}`
|
||||
return 'YuJunZhiXue/dsh-purge'
|
||||
return 'HunYiSage/dsh-purge'
|
||||
}
|
||||
|
||||
/** 简陋 JSON 抓取(10 秒超时,30xx 不自动跳转——api.github.com 不会跳)。 */
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import { atomicWriteSync, findDshHome } from "./core.js";
|
||||
import { ensureAllProfileInstall } from "./profile-insert.js";
|
||||
import { extractZipArchive } from "./zip-extract.js";
|
||||
|
||||
const REPO = "YuJunZhiXue/dsh-purge";
|
||||
const REPO = "HunYiSage/dsh-purge";
|
||||
const STABLE_REF = "master";
|
||||
const BETA_REF = "beta";
|
||||
const PLUGIN_ROOT = path.resolve(fileURLToPath(new URL(".", import.meta.url)), "..");
|
||||
|
||||
+7
-6
@@ -2,6 +2,7 @@
|
||||
"name": "dsh-purge",
|
||||
"version": "1.1.90",
|
||||
"description": "DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐ 如要二开,请查看署名要求部分",
|
||||
"author": "dsh-purge maintainers",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"exports": {
|
||||
@@ -56,11 +57,11 @@
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/YuJunZhiXue/dsh-purge.git"
|
||||
"url": "git+https://github.com/HunYiSage/dsh-purge.git"
|
||||
},
|
||||
"homepage": "https://github.com/YuJunZhiXue/dsh-purge#readme",
|
||||
"homepage": "https://github.com/HunYiSage/dsh-purge#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/YuJunZhiXue/dsh-purge/issues"
|
||||
"url": "https://github.com/HunYiSage/dsh-purge/issues"
|
||||
},
|
||||
"dsh": {
|
||||
"bundle": {
|
||||
@@ -79,9 +80,9 @@
|
||||
},
|
||||
"install": {
|
||||
"preferred": "tarball",
|
||||
"tarball": "https://codeload.github.com/YuJunZhiXue/dsh-purge/tar.gz/refs/heads/master",
|
||||
"zip": "https://codeload.github.com/YuJunZhiXue/dsh-purge/zip/refs/heads/master",
|
||||
"git": "https://github.com/YuJunZhiXue/dsh-purge.git"
|
||||
"tarball": "https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master",
|
||||
"zip": "https://codeload.github.com/HunYiSage/dsh-purge/zip/refs/heads/master",
|
||||
"git": "https://github.com/HunYiSage/dsh-purge.git"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
|
||||
+8
-8
@@ -1110,32 +1110,32 @@
|
||||
|
||||
## 涓枃
|
||||
|
||||
- **淇 [#43](https://github.com/YuJunZhiXue/dsh-purge/issues/43)**锛氫笉鍐嶆妸 `profiles/*/cordis.patch.yml`锛堢敤鎴?patch 灞傦級绾冲叆 `backupAll`/`revertAll`锛涘崌绾ц嚜鎰堟椂涓嶄細鐢ㄦ棫 bak 瑕嗙洊鐢ㄦ埛鍚庢潵杩藉姞鐨?`insert`銆?- 鍚姩/杩樺師鏃朵富鍔ㄤ涪鎺夊巻鍙蹭笂璇缓鐨?`cordis.patch.yml.dshpurge.bak`锛屼繚鐣欏綋鍓嶇敤鎴锋枃浠躲€?- 鏂板 `npm run test:profile-patch`銆?
|
||||
- **淇 [#43](https://github.com/HunYiSage/dsh-purge/issues/43)**锛氫笉鍐嶆妸 `profiles/*/cordis.patch.yml`锛堢敤鎴?patch 灞傦級绾冲叆 `backupAll`/`revertAll`锛涘崌绾ц嚜鎰堟椂涓嶄細鐢ㄦ棫 bak 瑕嗙洊鐢ㄦ埛鍚庢潵杩藉姞鐨?`insert`銆?- 鍚姩/杩樺師鏃朵富鍔ㄤ涪鎺夊巻鍙蹭笂璇缓鐨?`cordis.patch.yml.dshpurge.bak`锛屼繚鐣欏綋鍓嶇敤鎴锋枃浠躲€?- 鏂板 `npm run test:profile-patch`銆?
|
||||
## English
|
||||
|
||||
- **Fix [#43](https://github.com/YuJunZhiXue/dsh-purge/issues/43)**: stop including `profiles/*/cordis.patch.yml` (user patch layer) in `backupAll`/`revertAll`, so upgrade reapply no longer restores an old bak over later user `insert`s.
|
||||
- **Fix [#43](https://github.com/HunYiSage/dsh-purge/issues/43)**: stop including `profiles/*/cordis.patch.yml` (user patch layer) in `backupAll`/`revertAll`, so upgrade reapply no longer restores an old bak over later user `insert`s.
|
||||
- Drop stale `cordis.patch.yml.dshpurge.bak` without restoring; keep the live user file.
|
||||
- Add `npm run test:profile-patch`.
|
||||
# 1.1.24
|
||||
|
||||
## 涓枃
|
||||
|
||||
- **淇 [#40](https://github.com/YuJunZhiXue/dsh-purge/issues/40)**锛歚pathLooksDesktop` 涓嶅啀浠呭嚟璺緞閲岀殑 `deepseek-harness` 瀛愪覆鎶婃簮鐮佺増鍒ゆ垚妗岄潰绔紱闇€甯?`resources/` / `.exe` / `.app` 绛夊畨瑁呭舰鎬併€?- **淇 [#41](https://github.com/YuJunZhiXue/dsh-purge/issues/41)**锛氭簮鐮侀儴缃茬殑 `apps/cli`锛坱sdown 鏋勫缓浜х墿锛夌姝?hide-console 娉ㄥ叆锛沗revertAll` 鍦ㄦ棤 `.dshpurge.bak` 鏃跺彧璺宠繃銆佺粷涓嶅垹闄ょ洰鏍囨枃浠躲€?- 鏂板 `npm run test:surface` 鍥炲綊銆?
|
||||
- **淇 [#40](https://github.com/HunYiSage/dsh-purge/issues/40)**锛歚pathLooksDesktop` 涓嶅啀浠呭嚟璺緞閲岀殑 `deepseek-harness` 瀛愪覆鎶婃簮鐮佺増鍒ゆ垚妗岄潰绔紱闇€甯?`resources/` / `.exe` / `.app` 绛夊畨瑁呭舰鎬併€?- **淇 [#41](https://github.com/HunYiSage/dsh-purge/issues/41)**锛氭簮鐮侀儴缃茬殑 `apps/cli`锛坱sdown 鏋勫缓浜х墿锛夌姝?hide-console 娉ㄥ叆锛沗revertAll` 鍦ㄦ棤 `.dshpurge.bak` 鏃跺彧璺宠繃銆佺粷涓嶅垹闄ょ洰鏍囨枃浠躲€?- 鏂板 `npm run test:surface` 鍥炲綊銆?
|
||||
## English
|
||||
|
||||
- **Fix [#40](https://github.com/YuJunZhiXue/dsh-purge/issues/40)**: `pathLooksDesktop` no longer treats source trees as desktop just because the path contains `deepseek-harness`; require install shapes (`resources/`, `.exe`, `.app`).
|
||||
- **Fix [#41](https://github.com/YuJunZhiXue/dsh-purge/issues/41)**: skip hide-console injection into source `apps/cli` build output; `revertAll` never deletes targets when `.dshpurge.bak` is missing.
|
||||
- **Fix [#40](https://github.com/HunYiSage/dsh-purge/issues/40)**: `pathLooksDesktop` no longer treats source trees as desktop just because the path contains `deepseek-harness`; require install shapes (`resources/`, `.exe`, `.app`).
|
||||
- **Fix [#41](https://github.com/HunYiSage/dsh-purge/issues/41)**: skip hide-console injection into source `apps/cli` build output; `revertAll` never deletes targets when `.dshpurge.bak` is missing.
|
||||
- Add `npm run test:surface`.
|
||||
# 1.1.23
|
||||
|
||||
## 涓枃
|
||||
|
||||
- **淇 [#38](https://github.com/YuJunZhiXue/dsh-purge/issues/38)**锛歚#1`/`#2`/`#3` 鎻愮ず璇嶈ˉ涓佹瘡娆?`apply` 鍙犲姞绾?+841 瀛楃銆佹案涓嶆敹鏁涖€?- **鍘熷洜**锛氭浛鎹骇鐗╀粛浠ュ墠涓€鐗堟枃鏈负鍓嶇紑锛屼笖鏈 `skipIfMarked`锛宍autoApplyOnStart` 姣忚疆閮戒細鍐嶅啓涓€灞傘€?- **淇**锛氫负 `#1`/`#2`/`#3` 琛?`skipIfMarked: true`锛圼#42](https://github.com/YuJunZhiXue/dsh-purge/pull/42)锛夛紝骞跺姞 `npm run test:idempotence` 鍥炲綊銆?- 宸茶啫鑳€鐨勫涓绘枃浠朵笉浼氳嚜鍔ㄧ缉鍥烇紝闇€杩樺師 `.dshpurge.bak` 鎴栭噸瑁?dsh 鍚庡啀 apply銆?
|
||||
- **淇 [#38](https://github.com/HunYiSage/dsh-purge/issues/38)**锛歚#1`/`#2`/`#3` 鎻愮ず璇嶈ˉ涓佹瘡娆?`apply` 鍙犲姞绾?+841 瀛楃銆佹案涓嶆敹鏁涖€?- **鍘熷洜**锛氭浛鎹骇鐗╀粛浠ュ墠涓€鐗堟枃鏈负鍓嶇紑锛屼笖鏈 `skipIfMarked`锛宍autoApplyOnStart` 姣忚疆閮戒細鍐嶅啓涓€灞傘€?- **淇**锛氫负 `#1`/`#2`/`#3` 琛?`skipIfMarked: true`锛圼#42](https://github.com/HunYiSage/dsh-purge/pull/42)锛夛紝骞跺姞 `npm run test:idempotence` 鍥炲綊銆?- 宸茶啫鑳€鐨勫涓绘枃浠朵笉浼氳嚜鍔ㄧ缉鍥烇紝闇€杩樺師 `.dshpurge.bak` 鎴栭噸瑁?dsh 鍚庡啀 apply銆?
|
||||
## English
|
||||
|
||||
- **Fix [#38](https://github.com/YuJunZhiXue/dsh-purge/issues/38)**: prompt patches `#1`/`#2`/`#3` grew by ~+841 chars on every `apply` and never converged.
|
||||
- **Fix [#38](https://github.com/HunYiSage/dsh-purge/issues/38)**: prompt patches `#1`/`#2`/`#3` grew by ~+841 chars on every `apply` and never converged.
|
||||
- **Cause**: replacement text still starts with the previous pattern, and `skipIfMarked` was missing, so `autoApplyOnStart` rewrote every boot.
|
||||
- **Fix**: set `skipIfMarked: true` on `#1`/`#2`/`#3` ([#42](https://github.com/YuJunZhiXue/dsh-purge/pull/42)); add `npm run test:idempotence`.
|
||||
- **Fix**: set `skipIfMarked: true` on `#1`/`#2`/`#3` ([#42](https://github.com/HunYiSage/dsh-purge/pull/42)); add `npm run test:idempotence`.
|
||||
- Already-bloated host files are not auto-shrunk 鈥?restore `.dshpurge.bak` or reinstall dsh, then apply again.
|
||||
|
||||
# 1.1.22
|
||||
|
||||
Reference in New Issue
Block a user