Documentation ¶
Index ¶
- Constants
- Variables
- func CheckConfig(fileName string)
- func CleanUp()
- func ConfigureAutologin()
- func ConfirmPrint(toPrint string)
- func CreateFQs(numFqs int)
- func FillConstants()
- func GenPhocusApp() *cli.App
- func GenReadMe()
- func GetInfo(infoType string)
- func InstallFont()
- func InstallService()
- func LaunchConfigGui()
- func LaunchIDPrompt()
- func ParseFlags(c *cli.Context)
- func ReadScoringData() error
- func RunningPermsCheck()
- func ScoreImage()
- func SetVerbose(val bool)
- func WriteConfig(sourceFile, destFile string)
- func WriteDesktopFiles()
Constants ¶
const ( FAIL = "FAIL" GREEN = "green" RED = "red" )
const ( AeacusVersion = "1.6.0" ScoringConf = "scoring.conf" ScoringData = "scoring.dat" LinuxDir = "/opt/aeacus/" WindowsDir = "C:\\aeacus\\" )
Variables ¶
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 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 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.