360 Secure SkillHub
360 安全技能中心

Paste Rs

通过 Python 脚本或 curl 将 stdin、内联文本或本地文件上传到 paste.rs,默认先保存本地 .md 文件并对 token、apiKey、password、Authorization 等敏感信息自动脱敏,返回可分享的 https://paste.rs/XXXX.md 链接,支持 --no-redact 与 --outdir。

分类:自动化
banghasan
banghasan
热度 51.54
最近更新 2026-05-11 15:54:25

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add banghasan/paste-rs
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
paste-rs
description
Paste text, Markdown, or HTML snippets to https://paste.rs and return a shareable URL. Use when the user asks to "paste"/"upload" text to paste.rs, share logs/config snippets safely as a link, or quickly publish command output without sending long messages.

paste.rs

Quick start (preferred)

Use the bundled script (it saves a local .md file first, then uploads):

# paste from stdin
some_command | python3 skills/paste-rs/scripts/paste_rs.py

# paste a file
python3 skills/paste-rs/scripts/paste_rs.py --file ./notes.md

# paste an inline snippet
python3 skills/paste-rs/scripts/paste_rs.py --text '<h1>Hello</h1>'

# choose where the .md file is saved (default: /tmp)
python3 skills/paste-rs/scripts/paste_rs.py --outdir ./tmp-pastes --text 'hello'

Output:

  • stdout: URL https://paste.rs/XXXX.md
  • stderr: path saved: /tmp/paste-rs-YYYYMMDD-HHMMSS.md

Curl one-liners (fallback)

# stdin
some_command | curl -fsS https://paste.rs -d @-

# file
curl -fsS https://paste.rs -d @./file.txt

Safety notes

  • Treat the pasted content as public.
  • Script scripts/paste_rs.py melakukan redact otomatis by default untuk pola rahasia umum (token/apiKey/botToken/password/Authorization).
  • Kalau memang butuh raw (tidak disarankan), pakai --no-redact.

Resources

  • scripts/paste_rs.py: deterministic uploader (stdin / --text / --file)
  • references/paste-rs-api.md: minimal API reference