Skip to content

Commit

Permalink
Merge pull request #585 from chavacava/patch-1
Browse files Browse the repository at this point in the history
fix #584
  • Loading branch information
Mzack9999 authored Apr 19, 2022
2 parents eee268a + d52480f commit c09dd7f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ func (r *Runner) process(t string, wg *sizedwaitgroup.SizedWaitGroup, hp *httpx.
for _, wantedProtocol := range wantedProtocols {
for _, method := range scanopts.Methods {
wg.Add()
go func(port int, method, protocol string) {
go func(port int, target, method, protocol string) {
defer wg.Done()
h, _ := urlutil.ChangePort(target, fmt.Sprint(port))
result := r.analyze(hp, protocol, h, method, t, scanopts)
Expand All @@ -735,7 +735,7 @@ func (r *Runner) process(t string, wg *sizedwaitgroup.SizedWaitGroup, hp *httpx.
r.process(tt, wg, hp, protocol, scanopts, output)
}
}
}(port, method, wantedProtocol)
}(port, target, method, wantedProtocol)
}
}
}
Expand Down
34 changes: 34 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: httpx
summary: httpx is a fast and multi-purpose HTTP toolkit
description: |
httpx is a fast and multi-purpose HTTP toolkit allow to run multiple probers using retryablehttp library, it is designed to maintain the result reliability with increased threads.
version: 'v1.2.1'
icon: static/httpx-logo.png
license: MIT
base: core18
grade: stable
confinement: strict
architectures:
- build-on: [s390x, ppc64el, arm64, armhf and amd64]
run-on: [s390x, ppc64el, arm64, armhf and amd64]

apps:
httpx:
command: bin/httpx
plugs:
- home
- network
- removable-media
- dot-httpx

#plugs:
# dot-httpx:
# interface: personal-files
# write:
# - $HOME/.config/httpx

parts:
httpx:
source: https://github.com/projectdiscovery/httpx.git
plugin: go
go-channel: latest/stable

0 comments on commit c09dd7f

Please sign in to comment.