cmd

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: GPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FAIL  = "FAIL"
	GREEN = "green"
	RED   = "red"
)
View Source
const (
	AeacusVersion = "1.8.3"
	ScoringConf   = "scoring.conf"
	ScoringData   = "scoring.dat"
	LinuxDir      = "/opt/aeacus/"
	WindowsDir    = "C:\\aeacus\\"
)

Variables

View Source
var (
	YesEnabled = false
)

Functions

func CheckConfig

func CheckConfig(fileName string)

CheckConfig parses and checks the validity of the current ScoringConf file.

func CleanUp

func CleanUp()

CleanUp for Linux is primarily focused on removing cached files, history, and other pieces of forensic evidence. It also removes the non-required files in the aeacus directory.

func ConfigureAutologin

func ConfigureAutologin()

ConfigureAutologin configures the auto-login capability for LightDM and GDM3, so that the image automatically logs in to the main user's account on boot.

func ConfirmPrint

func ConfirmPrint(toPrint string)

ConfirmPrint will prompt the user with the given toPrint string, and exit the program if N or n is input.

func CreateFQs

func CreateFQs(numFqs int)

createFQs is a quality of life function that creates Forensic Question files on the Desktop, pre-populated with a template.

func FillConstants

func FillConstants()

FillConstants determines the correct constants, such as DirPath, for the given runtime and environment.

func GenPhocusApp

func GenPhocusApp() *cli.App

GenPhocusApp generates a basic CLI interface that is OS-independent

func GenReadMe

func GenReadMe()

GenReadMe generates a competition ReadMe with some built-in defaults from your ReadMe.conf

func GetInfo

func GetInfo(infoType string)

func InstallFont

func InstallFont()

InstallFont is skipped for Linux Builds

func InstallService

func InstallService()

InstallService for Linux installs and starts the CSSClient init.d service.

func LaunchConfigGui

func LaunchConfigGui()

func LaunchIDPrompt

func LaunchIDPrompt()

func ParseFlags

func ParseFlags(c *cli.Context)

ParseFlags sets the global variable values, for example, verboseEnabled.

func ReadScoringData

func ReadScoringData() error

ReadScoringData is a convenience function around readData and decodeString, which parses the encrypted scoring configuration file.

func RunningPermsCheck

func RunningPermsCheck()

RunningPermsCheck is a convenience function wrapper around adminCheck, which prints an error indicating that admin permissions are needed.

func ScoreImage

func ScoreImage()

ScoreImage is the main function for scoring the image

func SetVerbose added in v1.7.2

func SetVerbose(val bool)

func WriteConfig

func WriteConfig(sourceFile, destFile string)

WriteConfig reads the plaintext configuration from sourceFile, and writes the encrypted configuration into the destFile name passed.

func WriteDesktopFiles

func WriteDesktopFiles()

WriteDesktopFiles creates TeamID.txt and its shortcut, as well as links to the ScoringReport, ReadMe, and other needed files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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