dolon

package module
v0.0.0-...-79a8e0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 16 Imported by: 0

README

Dolon

Go Report Card

Background

Dolon is one of the most notorious spies in Greek mythology, and that's what this project is all about. Using gopacket the dolon binary captures a complete HTTP stream and then it can either send the complete HttpStream data as a protobuf to clients via GRPC or it can print the request portion as a curl command.

Usage

Running go get -u github.com/kai5263499/dolon/... downloads and builds the dolon and grpc client commands.

References

Documentation

Overview

Package dolon is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Curlify

func Curlify(httpSession *types.HttpSession) string

Curlify takes an HttpSession and returns a curl command that approxiamtes the http request

Types

type MockSource

type MockSource struct {
	// contains filtered or unexported fields
}

MockSource is a mock of Source interface

func NewMockSource

func NewMockSource(ctrl *gomock.Controller) *MockSource

NewMockSource creates a new mock instance

func (*MockSource) Device

func (m *MockSource) Device(arg0, arg1 string) error

Device mocks base method

func (*MockSource) EXPECT

func (m *MockSource) EXPECT() *MockSourceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSource) Pcap

func (m *MockSource) Pcap(arg0, arg1 string) error

Pcap mocks base method

func (*MockSource) TcpSessionChan

func (m *MockSource) TcpSessionChan() chan *types.TcpSession

TcpSessionChan mocks base method

type MockSourceMockRecorder

type MockSourceMockRecorder struct {
	// contains filtered or unexported fields
}

MockSourceMockRecorder is the mock recorder for MockSource

func (*MockSourceMockRecorder) Device

func (mr *MockSourceMockRecorder) Device(arg0, arg1 interface{}) *gomock.Call

Device indicates an expected call of Device

func (*MockSourceMockRecorder) Pcap

func (mr *MockSourceMockRecorder) Pcap(arg0, arg1 interface{}) *gomock.Call

Pcap indicates an expected call of Pcap

func (*MockSourceMockRecorder) TcpSessionChan

func (mr *MockSourceMockRecorder) TcpSessionChan() *gomock.Call

TcpSessionChan indicates an expected call of TcpSessionChan

type PacketProcessor

type PacketProcessor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor() *PacketProcessor

func (*PacketProcessor) HttpSessionChan

func (p *PacketProcessor) HttpSessionChan() chan *types.HttpSession

func (*PacketProcessor) StartProcessingTcpSessions

func (p *PacketProcessor) StartProcessingTcpSessions(source interfaces.Source)

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource() *Source

func (*Source) Device

func (s *Source) Device(captureDevice, bpfFilter string) error

func (*Source) Pcap

func (s *Source) Pcap(pcapFile string, bpfFilter string) error

func (*Source) TcpSessionChan

func (s *Source) TcpSessionChan() chan *types.TcpSession

TcpSessionChan returns a channel of type.TcpSession

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL