website

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

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 GetContent

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

GetContent - Get static content for a given path

func ListContent

func ListContent(websiteName string) (*clientpb.Website, error)

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

func ListWebsites

func ListWebsites() ([]string, error)

ListWebsites - List all websites

func RemoveContent

func RemoveContent(website 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