statichttp

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package statichttp serves simple HTTP server

Index

Constants

View Source
const (
	// Name of this module
	Name = "static.http"

	// Description of this module
	Description = "Expose a simple HTTP server to serve static resources during the MiTM session"

	// Author of this module
	Author = "Muraena Team"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

FileSystem custom file system handler

func (FileSystem) Open

func (fs FileSystem) Open(path string) (http.File, error)

Open opens file

type StaticHTTP

type StaticHTTP struct {
	session.SessionModule

	Enabled bool

	Protocol      string
	ListeningHost string
	LocalPath     string
	URLPath       string
	// contains filtered or unexported fields
}

StaticHTTP module

func Load

func Load(s *session.Session) (m *StaticHTTP, err error)

Load configures the module by initializing its main structure and variables

func (*StaticHTTP) Author

func (module *StaticHTTP) Author() string

Author returns the module author

func (*StaticHTTP) Description

func (module *StaticHTTP) Description() string

Description returns the module description

func (*StaticHTTP) MakeDestinationURL

func (module *StaticHTTP) MakeDestinationURL(URL *url.URL) (destination string)

func (*StaticHTTP) Name

func (module *StaticHTTP) Name() string

Name returns the module name

func (*StaticHTTP) Prompt added in v0.1.2

func (module *StaticHTTP) Prompt(what string)

Prompt prints module status based on the provided parameters

func (*StaticHTTP) Start

func (module *StaticHTTP) Start() (err error)

Start runs the Static HTTP server module

Jump to

Keyboard shortcuts

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