Sliver

Refer

Setup

Auto install

Start silver server

Config authen

Connect with client

Beacons and Sessions

Trong Sliver thì C2 agent được gọi là implant

Sliver hỡ trợ 2 mode implant là beacons và sessions

Tham khảo: https://sliver.sh/docs?name=Getting+Started

Sliver implants in v1.5 and later support two modes of operation: "beacon mode" and "session mode." Beacon mode implements an asynchronous communication style where the implant periodically checks in with the server retrieves tasks, executes them, and returns the results. In "session mode" the implant will create an interactive real time session using either a persistent connection or using long polling depending on the underlying C2 protocol.

Hiểu đơn giản thì beacon mode giống beacon Cobalt Strike còn session mode thì giống Metasploit

Generate session implant

Start mtls listner

Tương tác với sessions

Exit

Generate beacon implant

Tương tác với beacons

Check tasks

Đổi config beacons

Chuyển beacons thành sessions

Có thể chuyển sesion với protocol khác

  • Beacons thì có thể chuyển thành sesson như session thì không thể chuyển thành beacon

  • Một cố command như shellportfwd thì chỉ hoạt động với sessions

Profiles

Tạo profiles để generate cho nhanh

Profiles session

Profile beacon

Get danh sách các implants

Xóa implants

Stager

Tạo stager đầu tiên cần tạo 1 profile với format shellcode

Tạo listener

Tạo stage-listener cho profile để delivery payload. Nhớ thêm prepend-size

Gen payload để load stager bằng msfvenom. Lưu ý dùng shell custom mới ăn còn dùng meterpreter thì không ăn

Hoặc có thể gen ra format c rồi dùng code sau để load

Compile

Sau khi kích file thì phải đợi 5-10s sau mới có sessions về (đôi khi nó về sesions nhưng không có alert nên cứ check sessions cho chắc)

Execute Assembly

Sliver cho phép thực thi .net assembly tương tự như Cobalt Strike.

Socks and Portfwd

Socks5

Theo cảm nhận của mình thì độ stable không ngon bằng Cobalt Strike lắm

Portfwd

Bind port 9999 tại local với port 445 tại 192.168.17.138

Remove portfw

Pivot

Pivot chỉ dùng được với sesions còn beacons thì không

TCP Pivot

Tạo tcp pivots trên sesons

Gen shell để call về C2

Với ip ở đây sẽ là IP của sessions mà có thể giao tiếp với target.

Up hàng lên máy target rồi kích hoạt ta sẽ có được sesions qua đường tunnel TCP

SMB Pivot

Start namepipe trên session

Gen shell để call về C2

Tương tự trên thì IP cũng là IP của sessions mà có thể giao tiếp với target.

Kết quả:

Stop pivot

Operator

Rename sessions

Upload / Download

Shell

Nhấn Ctrl+D để exit

Execute có output

Make token

Dùng rev2self để clear token

Pass the hash

Dump process

minidump lsa

Side load

Amory

amory là extension package manager của sliver, cho phép ta download thêm package

Install package

Last updated