mirror of
https://github.com/projectdiscovery/subfinder
synced 2026-06-21 14:05:24 +00:00
6867e076f1
Keeps module path as github.com/projectdiscovery/subfinder/v2 to preserve import compatibility. Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
24 lines
587 B
Go
24 lines
587 B
Go
package main
|
|
|
|
import (
|
|
"github.com/projectdiscovery/subfinder/v2/pkg/runner"
|
|
// Attempts to increase the OS file descriptors - Fail silently
|
|
_ "github.com/projectdiscovery/fdmax/autofdmax"
|
|
"github.com/projectdiscovery/gologger"
|
|
)
|
|
|
|
func main() {
|
|
// Parse the command line flags and read config files
|
|
options := runner.ParseOptions()
|
|
|
|
newRunner, err := runner.NewRunner(options)
|
|
if err != nil {
|
|
gologger.Fatal().Msgf("Could not create runner: %s\n", err)
|
|
}
|
|
|
|
err = newRunner.RunEnumeration()
|
|
if err != nil {
|
|
gologger.Fatal().Msgf("Could not run enumeration: %s\n", err)
|
|
}
|
|
}
|