sliver


免责声明

本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关.


项目地址

  • https://github.com/BishopFox/sliver

使用文档

  • https://github.com/BishopFox/sliver/wiki

相关文章


安装

官方一条命令版

# 安装
curl https://sliver.sh/install|sudo bash

# 连接(默认连接本地服务器)
sliver

# 如果默认连接本地失败,可能是服务没有开启,手动开启再连接即可
systemctl start sliver
sliver

使用

连接服务器后会进去到类似 pupy 的命令行交互界面,使用方法其实差不多

sliver 自 1.5 版本开始,支持2种操作模式 Session Mode/Beacon Mode

Beacon Mode 实现了一种异步通信方式,在这种方式中,木马程序定期检查服务器检索任务、执行它们并返回结果。

Session Mode 木马程序将根据底层 C2 协议使用持久连接或使用长轮询创建交互式实时会话。

生成 shell (http)

Session Mode

Beacon Mode

启动监听器

示例

比如我服务器的外网 ip 为 1.14.5.14 ,监听器在 1919 端口,生成一个 windows 的木马

生成 shell (mtls)

启动监听器

进入 shell

当有主机上线后,控制台会有log提示,我们可以运行 sessions 查看可控制的机器列表

使用 use 后面跟 session id 指定要控制的目标主机

选中 sessions 后,我们可用2种控制模式

interactive

交互式会话,在 sliver 中某些命令,例如 shell portfwd 仅适用于交互式会话

shell

socks5

  • https://github.com/BishopFox/sliver/wiki/Reverse-SOCKS

  • https://github.com/BishopFox/sliver/tree/master/client/command/socks

开启 socks5 代理

关闭 socks5 代理


多人运动

  • https://github.com/BishopFox/sliver/wiki/Multiplayer-Mode

服务端

用户端

GUI

  • https://github.com/BishopFox/sliver-gui

使用和命令行 client 端一样,从服务端下载 cfg 文件导入即可