chanstego

package module
v0.0.0-...-52a1051 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

ChanStego

This library provides channel steganography implementation for Go. See godoc and examples for more details.

GoDoc pipeline

Documentation

Overview

chanstego package implements channel steganography using various network protocols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpTosStegoConn

type IpTosStegoConn struct {
	StegoConn
	// contains filtered or unexported fields
}

func NewIpTosStegoConn

func NewIpTosStegoConn(inQueueId uint16, outQueueId uint16) (*IpTosStegoConn, error)

func (*IpTosStegoConn) Accept

func (c *IpTosStegoConn) Accept() error

func (*IpTosStegoConn) Close

func (c *IpTosStegoConn) Close() error

func (*IpTosStegoConn) Discover

func (c *IpTosStegoConn) Discover() error

func (*IpTosStegoConn) GetBindIp

func (c *IpTosStegoConn) GetBindIp() net.IP

func (*IpTosStegoConn) LocalAddr

func (c *IpTosStegoConn) LocalAddr() net.Addr

func (*IpTosStegoConn) Read

func (c *IpTosStegoConn) Read(b []byte) (n int, err error)

func (*IpTosStegoConn) RemoteAddr

func (c *IpTosStegoConn) RemoteAddr() net.Addr

func (*IpTosStegoConn) SetDeadline

func (c *IpTosStegoConn) SetDeadline(t time.Time) error

func (*IpTosStegoConn) SetReadDeadline

func (c *IpTosStegoConn) SetReadDeadline(t time.Time) error

func (*IpTosStegoConn) SetWriteDeadline

func (c *IpTosStegoConn) SetWriteDeadline(t time.Time) error

func (*IpTosStegoConn) Write

func (c *IpTosStegoConn) Write(b []byte) (n int, err error)

type IpTosStegoListener

type IpTosStegoListener struct {
	StegoListener
	// contains filtered or unexported fields
}

func (*IpTosStegoListener) Accept

func (l *IpTosStegoListener) Accept() (net.Conn, error)

func (*IpTosStegoListener) Addr

func (l *IpTosStegoListener) Addr() net.Addr

func (*IpTosStegoListener) Close

func (l *IpTosStegoListener) Close() error

type StegoAddr

type StegoAddr struct {
	net.Addr
	StegoType string
}

StegoAddr struct implements net.Addr interface for stego connection

func (*StegoAddr) Network

func (a *StegoAddr) Network() string

func (*StegoAddr) String

func (a *StegoAddr) String() string

type StegoConn

type StegoConn interface {
	net.Conn
	// Discover another endpoint of channel steganography connection
	Discover() error
	// Accepts discovering channel steganography connection
	Accept() error
	// Returns ip address of binded endpoint of channel steganography connection
	GetBindIp() net.IP
}

StegoConn interface is common interface for channel steganography connection. Implements net.Conn interface.

func Dial

func Dial(stegoType string, inQueueId uint16, outQueueId uint16) (StegoConn, error)

Dial connects to netfilter queues for ingoing and outgoing packets and returns new channel steganography connection.

Known stego type is only "IP.TOS".

You can compare usage as Dial function in net package

Example:

Dial("IP.TOS", 10, 20)

type StegoListener

type StegoListener interface {
	net.Listener
}

func Listen

func Listen(stegoType string, inQueueId uint16, outQueueId uint16) (StegoListener, error)

func NewIpTosStegoListener

func NewIpTosStegoListener(inQueueId uint16, outQueueId uint16) StegoListener

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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