INNER CODE UNIT · Go

ParseConfig

intigriti/misconfig-mapper · internal/config/config.go:33

func ParseConfig() (*Config, error) {
	var (
		targetFlag         = flag.String("target", "", "Specify your target company/organization name: \"intigriti\" (files are also accepted). If the target is a domain, add -as-domain")
		asDomainFlag       = flag.String("as-domain", "false", "Treat the target as if its a domain. This flag cannot be used with -permutations.")
		serviceFlag        = flag.String("service", "0", "Specify the service ID you'd like to check for. For example, \"0\" for Atlassian Jira Open Signups. Use comma seperated values for multiple (i.e. \"0,1\" for two services). Use \"*\" to check for all services.")
		skipChecksFlag     = flag.String("skip-misconfiguration-checks", "false", "Only check for existing instances (and skip checks for potential security misconfigurations).")
		permutationsFlag   = flag.String("permutations", "true", "Enable permutations and look for several other keywords of your target. This flag cannot be used with -as-domain.")
		requestHeadersFlag = flag.String("headers", "", "Specify request headers to send with requests (separate each header with a double semi-colon: \"User-Agent: xyz;; Cookie: xyz...;;\")")
		delayFlag          = flag.Int("delay", 0, "Specify a delay between each request sent in milliseconds to enforce a rate limit.")
		timeoutFlag        = flag.Int("timeout", 7000, "Specify a timeout for each request sent in milliseconds.")
		maxRedirectsFlag   = flag.Int("max-redirects", 5, "Specify the max amount of redirects to follow.")
		skipSSL            = flag.Bool("skip-ssl", false, "Skip SSL/TLS verification (exercise caution!)")
		listServicesFlag   = flag.Bool("list-services", false, "Print all services with their associated IDs")
		listTemplatesFlag  = flag.Bool("list-templates", false, "Print all services with their associated IDs (alias for -list-services)")
		templatesPath      = flag.String("templates", "./templates", "Specify the templates folder location")
		updateServicesFlag = flag.Bool("update-templates", false, "Pull the latest templates & update your current services.json file")
		jsonLinesFlag      = flag.Bool("output-json", false, "Format output in JSON")
		verbosityFlag      = flag.Int("verbose", 2, "Set output verbosity level. Levels: 0 (=silent, only display vulnerabilities), 1 (=default, suppress non-vulnerable results), 2 (=verbose, log all messages)")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…