Skip to content

Commit

Permalink
Use agent mode by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Feb 6, 2019
1 parent c82440c commit 5b0db27
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ var rootCmd = &cobra.Command{
Short: "A DNS (over-HTTPS) C2",
Long: `A DNS (over-HTTPS) C2
Version: ` + Version + `
By @leonjza from @sensepost`,
By @leonjza from @sensepost`,
Run: func(cmd *cobra.Command, args []string) {

// by default, start in agent mode
if len(args) == 0 {
agentCmd.Run(cmd, args)
os.Exit(0)
}
},
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down

0 comments on commit 5b0db27

Please sign in to comment.