← 返回
开发者工具 中文

Wol Sleep Pc

Send Wake-on-LAN (magic packet) and Sleep-on-LAN (inverted MAC) packets for a specific PC. Use when the user asks to wake, check, or put the PC to sleep on the local LAN. Defaults are zeroed; configure the target IP, MAC, and inverted MAC via command-line flags or a config file.
向指定 PC 发送网络唤醒(魔术包)和休眠(反转 MAC)数据包。当用户请求在局域网内唤醒、检查或休眠该 PC 时使用。默认参数置零,需通过命令行参数或配置文件设置目标 IP、MAC 及反转 MAC。
oblivisheee
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,288
下载
💾 7
安装
1
版本
#latest

概述

wol-sleep-pc

This skill provides two small, well-tested scripts to send Wake-on-LAN (WOL) and Sleep-on-LAN (SOL) magic packets to a target machine on the same LAN. The skill is intentionally configurable and does not ship with any real MAC/IP defaults — defaults are zeroed and must be provided via CLI flags or a local config file.

Files provided:

  • scripts/send_wol.py — Send a standard WOL magic packet.
  • scripts/send_sleep.py — Send a SOL (inverted-MAC) magic packet.
  • README.md — Usage examples and install notes.
  • .gitignore — Ensures local config is not committed.

Quick usage

  • From the repository root:

python3 scripts/send_wol.py --mac 24:4B:FE:CA:90:99 --broadcast 192.168.1.255

  • Send SOL (inverted MAC):

python3 scripts/send_sleep.py --mac 99:90:CA:FE:4B:24 --broadcast 192.168.1.255

Config file (recommended)

  • Path: ~/.config/wol-sleep-pc/config.json
  • Example content:

{

"mac": "24:4B:FE:CA:90:99",

"sleep_mac": "99:90:CA:FE:4B:24",

"broadcast": "192.168.1.255",

"port": 9

}

  • Behavior: scripts load values from this file if present; any CLI flags override the config file values.
  • The repository .gitignore ignores config files so secrets remain local.

Agent usage patterns

  • "wake PC" — run send_wol.py with configured values.
  • "sleep PC" — run send_sleep.py with configured inverted MAC.
  • "send WOL now" / "send SOL now" — immediate send.

Design notes and safety

  • Scripts require Python 3 and permission to send UDP broadcast packets from the runtime host.
  • The skill assumes L2 connectivity to the target LAN; if running from a different network segment, configure the correct broadcast address or run the script from a host on the same LAN.
  • Defaults are intentionally zeroed to avoid leaking sensitive addresses when the skill is published.

Publishing guidance

  • The repo is safe to publish to ClawHub as-is because it contains no real MAC/IP values and ignores local config.
  • Add a LICENSE if you want to publish under a specific license.

When to trigger this skill

  • Trigger when the user explicitly requests waking or sleeping a machine on their LAN, or asks to save or update local WOL/SOL config. The scripts are small and deterministic; prefer executing the scripts rather than re-generating the packet code each time.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 01:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,409
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,585
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,519