360 Secure SkillHub
360 安全技能中心

Drive File Relay

把本机文件复制到 Google Drive 桌面版的挂载目录,供手机端从 Drive 下载;复制后比对源与目标的 SHA256,并报告源路径、目标路径、大小与哈希。依赖 Windows PowerShell 脚本,但该脚本在包内缺失;不创建共享链接,也不发送消息。

分类:自动化
neo1307
neo1307
热度 21.69
最近更新 2026-05-11 17:44:07

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add neo1307/neo1307-drive-file-relay
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
必须出网
Metadata
name
drive-file-relay
description
Copy (relay) a local file from this machine into Google Drive for desktop (GoogleDriveFS) so it can be downloaded from a phone when the phone is not on the same LAN. Use when the user says they are on the phone, cannot access the PC, and needs an APK/ZIP/PDF/any file moved into Drive; also use when you must verify size+SHA256 after copy.

Drive File Relay (Google Drive for desktop)

Workflow

  1. Preflight
  • Confirm source path exists.
  • Detect Drive mount:
    • Prefer G:\Drive'ım\ (TR) and G:\My Drive\ (EN).
    • If not found, list filesystem drives and look for a drive containing .shortcut-targets-by-id.
  1. Copy + verify (no partial success)
  • Create destination folder if missing.
  • Copy file.
  • Compute SHA256 of source and destination and ensure they match.
  • Report:
    • src path
    • dst path
    • size bytes + MB
    • sha256
  1. User instruction
  • Tell the user where to find it on the phone: Google Drive → My Drive/Drive'ım → <folder>.

Script

Run (PowerShell):

  • powershell -ExecutionPolicy Bypass -File scripts/drive_relay.ps1 -Src "<path>" -DstFolder "ArgusShare" -DstName "<optional>"

Notes

  • Do not attempt provider messaging via curl/Telegram Bot API.
  • This skill does not create share links; it only ensures the file is present in the user’s Drive.