Giter Site home page Giter Site logo

sliver-parser's Introduction

sliver-parser

Parser for PCAPs containing Sliver TCP and Named Pipe Pivots

Preparation

Install protoc, refer to the Google documentation for your distro: https://grpc.io/docs/protoc-installation/

Before executing the script, the Python protobuf files need to be compiled using the protobuf compiler.

Assuming the current working directory is the root of this project:

protoc -I=protofiles/ --python_out=protofiles/ protofiles/*.proto

This is entirely due to my lack of understanding how this exactly works, but after the protoc command we need to patch the sliver_pb2.py file and change the following line:

import common_pb2.py as common__pb2

to:

from protofiles import common_pb2 as common__pb2

Install the Python packages:

python -m pip install -r requirements.txt

Usage

Only tested using Python version 3.8.5

Parsing a PCAP with Sliver named pipe traffic:

python3 sliver_parser.py --pcap sliver_named_pipe_pivot.pcapng --named-pipe --sliver-output sliver_output.txt

Parsing a PCAP with Sliver TCP-Pivot traffic:

python3 sliver_parser.py --pcap sliver_tcp_pivot.pcapng --tcp-pivot --sliver-output sliver_output.txt

Notes

There's probably a lot of pitfalls with this script, the TCP-Pivot parsing is very slow in its current state when a lot of data is being transferred between the C2 and the implant. The project was made to play around with Sliver and to get to know its inner workings a little bit better.

sliver-parser's People

Contributors

sud0woodo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.