Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
SpotifyC2 — 基于Windows的C2研究工具,使用Spotify播放列表作为命令通道,并利用Telegram传递输出结果,展示了无需Spotify Web API即可实现的云辅助命令通信。 | Kitploit
工具/GitHubGitHub/nirvanaon/spotifyc2
OSINT (开源情报)渗透测试命令与控制威胁情报学习与教育红队
GitHubnirvanaon/spotifyc2

SpotifyC2

基于Windows的C2研究工具,使用Spotify播放列表作为命令通道,并利用Telegram传递输出结果,展示了无需Spotify Web API即可实现的云辅助命令通信。

查看仓库
17925702个月前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

SpotifyC2 — 基于云的指令通道研究

通过 Spotify 播放列表执行命令,并通过 Telegram 接收命令输出。


Spotify

什么是 SpotifyC2?

SpotifyC2 是一个基于 Windows 的网络安全研究项目,演示了如何利用公开可用的云服务作为控制器与客户端之间的通信通道。

客户端不与传统服务器通信,而是定期轮询 Spotify 播放列表,并将播放列表标题解释为命令。命令在本地执行后,生成的输出将发送到配置好的 Telegram Bot。

该项目探索了使用合法 Web 服务构建云辅助指令通道的概念,用于教育性和防御性安全研究。

本项目仅用于网络安全研究、授权实验室环境、检测工程及教育目的。

截图 2026-06-29 232937

Language Platform Networking Communication Output Authentication Polling Architecture Purpose License Status

架构

root@kitploit:~
Operator
    │
    ▼
Spotify Playlist Title
    │
    ▼
Spotify oEmbed API
    │
    ▼
SpotifyC2 Client
    │
Execute Command
    │
Capture stdout
    │
    ▼
Telegram Bot API
    │
    ▼
Operator Receives Output

工作原理

root@kitploit:~
Spotify Playlist
       │
       ▼
Poll Spotify every 20 seconds
       │
       ▼
Read Playlist Title
       │
       ▼
Extract Command
       │
       ▼
Execute with _popen()
       │
       ▼
Capture Command Output
       │
       ▼
URL Encode Response
       │
       ▼
Send Output to Telegram Bot

特性

  • 无需 Spotify API
  • 无需 Spotify OAuth 认证
  • 使用 Spotify 公开的 oEmbed 端点
  • 将 Spotify 播放列表作为指令通道
  • 使用 Telegram Bot 接收指令输出
  • 通过 libcurl 进行 HTTPS 通信
  • 自动轮询指令
  • 动态内存管理
  • 使用 _popen() 执行 Windows 命令
  • 轻量级单文件实现
  • 无需专用 C2 服务器

项目结构

root@kitploit:~
SpotifyC2
│
├── main.c
│
├── GetCommandFromSpotify()
│      Downloads playlist metadata
│      Extracts playlist title
│
├── RunCommand()
│      Executes Windows command
│      Captures stdout
│
├── SendToTelegram()
│      Sends command output
│      Uses Telegram Bot API
│
├── SaveData()
│      libcurl callback
│      Stores downloaded data
│
└── URLEncode()
       Encodes output before transmission

需求

  • Windows
  • Visual Studio 2022
  • Windows SDK
  • libcurl
  • 网络连接
  • Spotify 播放列表
  • Telegram Bot Token
  • Telegram Chat ID

配置

编译前编辑以下常量:

root@kitploit:~
#define PLAYLIST_ID "YOUR_PLAYLIST_ID"

#define TELEGRAM_BOT_TOKEN "YOUR_BOT_TOKEN"

#define TELEGRAM_CHAT_ID "YOUR_CHAT_ID"

#define SLEEP_SECONDS 20

构建

在 Visual Studio 中打开项目。

添加 libcurl 包含路径和库路径。

编译目标:

root@kitploit:~
x64
Release

构建项目。


通信流程

root@kitploit:~
Spotify Playlist
        │
        ▼
Playlist Title
        │
        ▼
Client Polls Spotify
        │
        ▼
Execute Command
        │
        ▼
Collect Output
        │
        ▼
Telegram Bot
        │
        ▼
Operator

研究目标

开发 SpotifyC2 的目的是研究:

  • 云辅助通信通道
  • 第三方服务滥用场景
  • 防御方的检测机会
  • 网络遥测生成
  • HTTPS 流量分析
  • 端点监控
  • 受控环境下的威胁模拟

示例工作流程

  1. 配置 Spotify 播放列表 ID。
  2. 配置 Telegram Bot 凭据。
  3. 启动 SpotifyC2 客户端。
  4. 更新 Spotify 播放列表标题为一条命令。
  5. 客户端获取更新后的标题。
  6. 命令在本地执行。
  7. 捕获标准输出。
  8. 输出发送到配置的 Telegram 聊天中。

注意事项

  • 仅当播放列表标题发生变化时,才会执行命令。
  • 重复的命令会被忽略。
  • 超出 Telegram 消息长度限制的输出将被截断。
  • 通信使用 HTTPS。
  • 客户端以可配置的时间间隔进行轮询。

免责声明

本软件严格用于教育目的、网络安全研究、威胁模拟及授权安全测试。

它旨在帮助研究人员理解基于云的通信技术并开发防御性检测手段。禁止在未经明确授权的系统或网络上部署或使用本软件。


许可证

MIT 许可证


SpotifyC2

一个轻量级的云辅助指令通道研究项目,利用 Spotify 和 Telegram 进行网络安全教育与防御性研究。

下载工具