remove show ips option

This commit is contained in:
firefart
2025-05-22 10:24:35 +02:00
parent 21cfa07a9a
commit 3203caca01
4 changed files with 2 additions and 13 deletions
-2
View File
@@ -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")
+1 -9
View File
@@ -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
-1
View File
@@ -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
+1 -1
View File
@@ -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 != "" {