marauder

package
v0.0.0-...-eede89d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawConsole

func DrawConsole(config Config, fileName string, userName string, hostName string, dir string, outStr string)

func Exec

func Exec() (string, string)

func FileName

func FileName(config Config, content string) string

func LoadFontFace

func LoadFontFace(fontBytes []byte, points float64) (font.Face, error)

func ShellLine

func ShellLine(userName string, hostName string, dir string) string

func WriteFile

func WriteFile(config Config, fileName string, content string)

Types

type Config

type Config struct {
	UserName string `yaml:"userName", envconfig:"MARAUDER_USER_NAME"`
	HostName string `yaml:"hostName", envconfig:"MARAUDER_HOST_NAME"`
	OutDir   string `yaml:"outDir", envconfig:"MARAUDER_OUT_DIR"`
	Dir      string
	Colors   struct {
		Button1    string `yaml:"button1" envconfig:"MARAUDER_COLOR_BUTTON1"`
		Button2    string `yaml:"button2" envconfig:"MARAUDER_COLOR_BUTTON2"`
		Button3    string `yaml:"button3" envconfig:"MARAUDER_COLOR_BUTTON3"`
		Background string `yaml:"background" envconfig:"MARAUDER_COLOR_BACKGROUND"`
		Title      string `yaml:"title" envconfig:"MARAUDER_COLOR_TITLE"`
		UserName   string `yaml:"userName" envconfig:"MARAUDER_COLOR_USERNAME"`
		At         string `yaml:"at" envconfig:"MARAUDER_COLOR_AT"`
		HostName   string `yaml:"hostName" envconfig:"MARAUDER_COLOR_HOSTNAME"`
		Dollar     string `yaml:"dollar" envconfig:"MARAUDER_COLOR_DOLLAR"`
		Command    string `yaml:"command" envconfig:"MARAUDER_COLOR_COMMAND"`
		Terminal   string `yaml:"terminal" envconfig:"MARAUDER_COLOR_TERMINAL"`
	} `yaml:"colors"`
	DatePrefix     bool    `yaml:"datePrefix", envconfig:"MARAUDER_DATE_PREFIX"`
	LineLimit      uint16  `yaml:"lineLimit", envconfig:"MARAUDER_LINE_LIMIT"`
	FontSize       float64 `yaml:"fontSize", envconfig:"MARAUDER_FONT_SIZE"`
	TerminalMargin float64 `yaml:"terminalMargin", envconfig:"MARAUDER_MARGIN"`
	TextMargin     float64 `yaml:"textMargin", envconfig:"MARAUDER_MARGIN"`
}

func (*Config) Load

func (c *Config) Load()

Jump to

Keyboard shortcuts

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