mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
00d0977963
* Adding Screenshot support * adding headless body * moving example into compilable file * updating docs * enabling store response with screenshot * fixing output dir path * fixing mod * using native leakless * splitting response+screenshot folders * better handling json output * readme update * rel => abs path * Added chromium into docker * “Wipe them out. All of them.” – Darth Sidious * utils bump * go mod tidy --------- Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io> Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
33 lines
747 B
Go
33 lines
747 B
Go
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()
|
|
}
|