mirror of
https://github.com/SleepingBag945/dddd.git
synced 2025-06-08 05:57:10 +00:00
33 lines
747 B
Go
Executable File
33 lines
747 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/projectdiscovery/goflags"
|
|
"github.com/projectdiscovery/gologger"
|
|
"github.com/projectdiscovery/gologger/levels"
|
|
"github.com/projectdiscovery/httpx/runner"
|
|
)
|
|
|
|
func main() {
|
|
gologger.DefaultLogger.SetMaxLevel(levels.LevelVerbose) // increase the verbosity (optional)
|
|
|
|
options := runner.Options{
|
|
Methods: "GET",
|
|
InputTargetHost: goflags.StringSlice{"scanme.sh", "projectdiscovery.io"},
|
|
//InputFile: "./targetDomains.txt", // path to file containing the target domains list
|
|
}
|
|
|
|
if err := options.ValidateOptions(); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
httpxRunner, err := runner.New(&options)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
defer httpxRunner.Close()
|
|
|
|
httpxRunner.RunEnumeration()
|
|
}
|