website

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: GPL-3.0 Imports: 10 Imported by: 6

README

Website

This package manages static content that can be hosted on HTTP(S) C2 domains to make them look more legit.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContent

func AddContent(websiteName string, path string, contentType string, content []byte) error

AddContent - Add website content for a path

func AddWebsite added in v1.2.0

func AddWebsite(websiteName string) (*models.Website, error)

AddWebsite - Add website with no content

func GetContent

func GetContent(websiteName string, path string) (string, []byte, error)

GetContent - Get static content for a given path

func MapContent

func MapContent(websiteName string, eagerLoadContents bool) (*clientpb.Website, error)

MapContent - List the content of a specific site, returns map of path->json(content-type/size)

func Names

func Names() ([]string, error)

Names - List all websites

func RemoveContent

func RemoveContent(websiteName string, path string) error

RemoveContent - Remove website content for a path

Types

This section is empty.

Jump to

Keyboard shortcuts

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