Skip to content

Commit 98da5e6

Browse files
committed
Supports all keyword for the mode
1 parent 10118b8 commit 98da5e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cmd/enum/smtp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var smtpCmd = &cobra.Command{
3636
func init() {
3737

3838
smtpCmd.Flags().StringVarP(&smtpOptions.Domain, "domain", "d", "", "Targeted domain ")
39-
smtpCmd.Flags().StringVarP(&smtpOptions.Mode, "mode", "m", "", "RCPT, VRFY, EXPN (default: all)")
39+
smtpCmd.Flags().StringVarP(&smtpOptions.Mode, "mode", "m", "", "RCPT, VRFY, EXPN, ALL (default: all)")
4040
smtpCmd.Flags().StringVarP(&smtpOptions.Users, "user", "u", "", "Username or file containing the usernames")
4141
smtpCmd.Flags().StringVarP(&smtpOptions.Target, "target", "t", "", "Host pointing to the SMTP service. If not specified, the first SMTP server in the MX record will be targeted.")
4242
smtpCmd.Flags().IntVar(&smtpOptions.Thread, "thread", 2, "Number of threads")

src/modules/smtp/userEnum.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ func UserEnum(optionsInterface *interface{}, username string) bool {
8787
options.Log.Fatal("The command EXPN is not implemented. No need to pursue using this method.")
8888
}
8989
}
90-
case "":
90+
case "", "all":
9191

9292
optionsCopy := *options
9393
options.connectionsPool <- smtpConnection
9494
// Execute the 3 enumeration methods
9595
optionsCopy.all = true
9696
// RCPT request
97-
options.Log.Debug("No enumeration method specify. Executing enumeration with RCPT, VRFY and EXPN")
97+
options.Log.Debug("No enumeration method specify. Executing enumeration with RCPT, VRFY, EXPN and ALL")
9898
options.Log.Debug("Enumerate with RCPT")
9999
optionsCopy.Mode = "rcpt"
100100
newOptionsInterface := reflect.ValueOf(&optionsCopy).Interface()

0 commit comments

Comments
 (0)