mirror of
https://github.com/OJ/gobuster.git
synced 2026-10-11 21:59:56 +00:00
remove show ips option
This commit is contained in:
@@ -26,7 +26,6 @@ func getFlags() []cli.Flag {
|
||||
var flags []cli.Flag
|
||||
flags = append(flags, []cli.Flag{
|
||||
&cli.StringFlag{Name: "domain", Aliases: []string{"do"}, Usage: "The target domain", Required: true},
|
||||
&cli.BoolFlag{Name: "show-ips", Aliases: []string{"i"}, Value: false, Usage: "Show IP addresses of found domains"},
|
||||
&cli.BoolFlag{Name: "check-cname", Aliases: []string{"c"}, Value: false, Usage: "Also check CNAME records"},
|
||||
&cli.DurationFlag{Name: "timeout", Aliases: []string{"to"}, Value: 1 * time.Second, Usage: "DNS resolver timeout"},
|
||||
&cli.BoolFlag{Name: "wildcard", Aliases: []string{"wc"}, Value: false, Usage: "Force continued operation when wildcard found"},
|
||||
@@ -42,7 +41,6 @@ func run(c *cli.Context) error {
|
||||
pluginOpts := gobusterdns.NewOptions()
|
||||
|
||||
pluginOpts.Domain = c.String("domain")
|
||||
pluginOpts.ShowIPs = c.Bool("show-ips")
|
||||
pluginOpts.CheckCNAME = c.Bool("check-cname")
|
||||
pluginOpts.Timeout = c.Duration("timeout")
|
||||
pluginOpts.WildcardForced = c.Bool("wildcard")
|
||||
|
||||
@@ -139,9 +139,7 @@ func (d *GobusterDNS) ProcessWord(ctx context.Context, word string, progress *li
|
||||
Subdomain: strings.TrimSuffix(subdomain, "."),
|
||||
}
|
||||
|
||||
if d.options.ShowIPs {
|
||||
result.IPs = ips
|
||||
}
|
||||
result.IPs = ips
|
||||
if d.options.CheckCNAME {
|
||||
cname, err := d.dnsLookupCname(ctx, subdomain)
|
||||
if err == nil {
|
||||
@@ -204,12 +202,6 @@ func (d *GobusterDNS) GetConfigString() (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if o.ShowIPs {
|
||||
if _, err := fmt.Fprintf(tw, "[+] Show IPs:\ttrue\n"); err != nil {
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
|
||||
if o.WildcardForced {
|
||||
if _, err := fmt.Fprintf(tw, "[+] Wildcard forced:\ttrue\n"); err != nil {
|
||||
return "", err
|
||||
|
||||
@@ -7,7 +7,6 @@ import (
|
||||
// OptionsDNS holds all options for the dns plugin
|
||||
type OptionsDNS struct {
|
||||
Domain string
|
||||
ShowIPs bool
|
||||
CheckCNAME bool
|
||||
WildcardForced bool
|
||||
Resolver string
|
||||
|
||||
@@ -31,7 +31,7 @@ func (r Result) ResultToString() (string, error) {
|
||||
for i := range r.IPs {
|
||||
ips[i] = r.IPs[i].String()
|
||||
}
|
||||
green(buf, " IPs: %s", strings.Join(ips, ","))
|
||||
green(buf, " %s", strings.Join(ips, ","))
|
||||
}
|
||||
|
||||
if r.CNAME != "" {
|
||||
|
||||
Reference in New Issue
Block a user