glutton

package module
v0.0.0-...-a8d31a7 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: MIT Imports: 36 Imported by: 0

README

Glutton Build Status

Setup go 1.7+. Install required system packages:

apt-get install libnetfilter-queue-dev libpcap-dev iptables-dev

To change your SSH server default port (i.e. 5001, see rules.yaml) and restart sshd:

sed -i 's/Port 22/Port 5001/' /etc/ssh/sshd_config

Download glutton, and install dependencies using glide:

go get github.com/mushorg/glutton
cd $GOPATH/src/github.com/mushorg/glutton/
curl https://glide.sh/get | sh
glide install
glide update

Build glutton:

make build

To run/test glutton:

bin/server

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedConn

type BufferedConn struct {
	net.Conn // So that most methods are embedded
	// contains filtered or unexported fields
}

BufferedConn provides an interface to peek at a connection

func (BufferedConn) Read

func (b BufferedConn) Read(p []byte) (int, error)

type Client

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

Client is a connection container

type Glutton

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

Glutton struct

func New

func New(iface string, conf *viper.Viper, logger freki.Logger) (*Glutton, error)

New creates a new Glutton instance

func (*Glutton) HandleFTP

func (g *Glutton) HandleFTP(conn net.Conn)

HandleFTP takes a net.Conn and does basic FTP communication

func (*Glutton) HandleHTTP

func (g *Glutton) HandleHTTP(conn net.Conn)

HandleHTTP takes a net.Conn and does basic HTTP communication

func (*Glutton) HandleRDP

func (g *Glutton) HandleRDP(conn net.Conn)

HandleRDP takes a net.Conn and does basic RDP communication

func (*Glutton) HandleRFB

func (g *Glutton) HandleRFB(conn net.Conn)

HandleRFB takes a net.Conn and does basic RFB/VNC communication

func (*Glutton) HandleSIP

func (g *Glutton) HandleSIP(netConn net.Conn)

HandleSIP takes a net.Conn and does basic SIP communication

func (*Glutton) HandleSMB

func (g *Glutton) HandleSMB(conn net.Conn)

HandleSMB takes a net.Conn and does basic SMB communication

func (*Glutton) HandleSMTP

func (g *Glutton) HandleSMTP(conn net.Conn)

HandleSMTP takes a net.Conn and does basic SMTP communication

func (*Glutton) HandleTCP

func (g *Glutton) HandleTCP(conn net.Conn)

HandleTCP takes a net.Conn and peeks at the data send

func (*Glutton) HandleTelnet

func (g *Glutton) HandleTelnet(conn net.Conn)

HandleTelnet handles telnet communication on a connection

func (*Glutton) Init

func (g *Glutton) Init() (err error)

Init initializes freki and handles

func (*Glutton) NewSSHProxy

func (g *Glutton) NewSSHProxy() (err error)

NewSSHProxy creates a new SSH proxy instance

func (*Glutton) Peek

func (g *Glutton) Peek(conn net.Conn, length int) (snip []byte, bufConn BufferedConn, err error)

Peek reads `length` amount of data from the connection

func (*Glutton) Shutdown

func (g *Glutton) Shutdown() (err error)

Shutdown the packet processor

func (*Glutton) Start

func (g *Glutton) Start() (err error)

Start the packet processor

type PixelFormat

type PixelFormat struct {
	Width, Heigth                   uint16
	BPP, Depth                      uint8
	BigEndian, TrueColour           uint8 // flags; 0 or non-zero
	RedMax, GreenMax, BlueMax       uint16
	RedShift, GreenShift, BlueShift uint8
	Padding                         [3]uint8
	ServerNameLength                int32
}

PixelFormat represents a RFB communication unit

Directories

Path Synopsis
protocols
rdp
smb

Jump to

Keyboard shortcuts

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