Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
hotfix pr 13
  • Loading branch information
incogbyte authored Oct 5, 2024
1 parent a431327 commit b89a1c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ func main() {
shodanKey := flag.String("s", "", "> Shodan api key")
verbose := flag.Bool("v", false, "> Show all output")
fileName := flag.String("o", "", "> Save domains into a file")
inputFile := flag.String("F", "", "> File containing domains to find subdomains")
inputFile := flag.String("f", "", "> File containing domains to find subdomains")
flag.Parse()

if *domain == "" && *inputFile == "" {
fmt.Printf("[*] Usage: %s -d target.com -s MYShodaNKey [-F input_file]\n", os.Args[0])
fmt.Printf("[*] Usage: %s -d target.com -s shodanKey [-f input_file]\n", os.Args[0])
fmt.Printf("[*] Author: %s\n", Author)
os.Exit(1)
}
Expand All @@ -31,12 +31,10 @@ func main() {
var domains []string

if *domain != "" {
// Use domain from command-line argument (-d)
domains = append(domains, *domain)
}

if *inputFile != "" {
// Read domains from file specified by -F flag
fileDomains, err := readDomainsFromFile(*inputFile)
if err != nil {
log.Fatalf("Failed to read domains from file: %v", err)
Expand Down

0 comments on commit b89a1c0

Please sign in to comment.