Skip to content

Commit

Permalink
update help msg
Browse files Browse the repository at this point in the history
  • Loading branch information
JKme committed Sep 9, 2021
1 parent 67cb58b commit 91cf61d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cli/cmd/crack.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func parseCrackOptions() (*model.GlobalOptions, *model.CrackOptions, error) {
func init() {
crackCli = &cobra.Command{
Use: "crack",
Short: fmt.Sprintf("-x ALL will load plugins: [%s]\nAnother plugins: [%s]", strings.Join(Plugins.CrackKeys, ","), strings.Join(Plugins.CrackFuncExclude, ",")),
Long: fmt.Sprintf("-x ALL will load plugins: [%s]\nAnother plugins: [%s]", strings.Join(Plugins.CrackKeys, ","), strings.Join(Plugins.CrackFuncExclude, ",")),
Short: "crack service password",
Run: runCrack,
Example: `cube crack -u root -p root -i 192.168.1.1 -x ssh
cube crack -u root -p root -i 192.168.1.1 -x ssh --port 2222
Expand Down
3 changes: 2 additions & 1 deletion cli/cmd/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func parseProbeOptions() (*model.GlobalOptions, *model.ProbeOptions, error) {
func init() {
probeCli = &cobra.Command{
Use: "probe",
Short: fmt.Sprintf("-x ALL will load plugins: [%s]\nAnother plugins: [%s]", strings.Join(Plugins.ProbeKeys, ","), strings.Join(Plugins.ProbeFuncExclude, ",")),
Long: fmt.Sprintf("-x ALL will load plugins: [%s]\nAnother plugins: [%s]", strings.Join(Plugins.ProbeKeys, ","), strings.Join(Plugins.ProbeFuncExclude, ",")),
Short: "probe pentest env",
Run: runProbe,
Example: `cube probe -i 192.168.1.1 -x oxid
cube probe -i 192.168.1.1 -x oxid,zookeeper,ms17010
Expand Down
3 changes: 2 additions & 1 deletion cli/cmd/sqlcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func parseSqlcmdOptions() (*model.GlobalOptions, *model.SqlcmdOptions, error) {
func init() {
sqlCli = &cobra.Command{
Use: "sqlcmd",
Short: fmt.Sprintf("Avaliable plugins: [%s]", strings.Join(Plugins.SqlcmdKeys, ",")),
Short: "exec sql or cmd",
Long: fmt.Sprintf("Avaliable plugins: [%s]", strings.Join(Plugins.SqlcmdKeys, ",")),
Run: runSqlcmd,
Example: `cube sqlcmd -x ssh://192.168.0.0:2200 -uroot -proot -e "whoami"
`,
Expand Down

0 comments on commit 91cf61d

Please sign in to comment.