-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1120 from projectdiscovery/dev
httpx v1.3.0
- Loading branch information
Showing
18 changed files
with
556 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Base | ||
FROM golang:1.20.2-alpine AS builder | ||
FROM golang:1.20.3-alpine AS builder | ||
|
||
RUN apk add --no-cache git build-base gcc musl-dev | ||
WORKDIR /app | ||
COPY . /app | ||
RUN go mod download | ||
RUN go build ./cmd/httpx | ||
|
||
FROM alpine:3.17.2 | ||
FROM alpine:3.17.3 | ||
RUN apk -U upgrade --no-cache \ | ||
&& apk add --no-cache bind-tools ca-certificates | ||
&& apk add --no-cache bind-tools ca-certificates chromium | ||
COPY --from=builder /app/httpx /usr/local/bin/ | ||
|
||
ENTRYPOINT ["httpx"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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() | ||
} |
Oops, something went wrong.